Skip to content

Commit

Permalink
Fix protected definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
CuppoJava committed Feb 21, 2023
1 parent cea8b5b commit 6eb78d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/macro-plugin.stanza
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ val PLUGIN-INTERFACE = PluginInterface(SExpIO())
;============================================================

;The entry-point for performing macro-expansion.
extern defn macroexpand (input:ptr<byte>) -> ptr<byte> :
protected extern defn macroexpand (input:ptr<byte>) -> ptr<byte> :
return receive(PLUGIN-INTERFACE, input, fn(macroexpand-sexp))

;Expand the given sexpression using the Stanza core
Expand Down Expand Up @@ -76,7 +76,7 @@ defmethod print (o:OutputStream, e:NoSyntaxPackageInPlugin) :
;============================================================

;The entry-point for retrieving the list of all syntax packages.
extern defn list_syntax_packages (input:ptr<byte>) -> ptr<byte> :
protected extern defn list_syntax_packages (input:ptr<byte>) -> ptr<byte> :
return receive(PLUGIN-INTERFACE, input, fn(list-syntax-packages))

;List all supported syntax packages.
Expand All @@ -88,7 +88,7 @@ defn list-syntax-packages (f:False) -> Tuple<Symbol> :
;============================================================

;The entry-point for adding all of the initial compiler flags.
extern defn add_compiler_flags (input:ptr<byte>) -> ptr<byte> :
protected extern defn add_compiler_flags (input:ptr<byte>) -> ptr<byte> :
return receive(PLUGIN-INTERFACE, input, fn(add-compiler-flags))

;Add all the compiler flags.
Expand Down

0 comments on commit 6eb78d2

Please sign in to comment.