Browse Source

ajout rest

master
Gabriel Pariat 3 years ago
parent
commit
ad0dcf0a87
  1. 1
      implementations/c/src/lisp.h
  2. 2
      implementations/c/src/symbol.c

1
implementations/c/src/lisp.h

@ -114,6 +114,7 @@ extern Pointer T;
extern Pointer STANDARD_INPUT; extern Pointer STANDARD_INPUT;
extern Pointer STANDARD_OUTPUT; extern Pointer STANDARD_OUTPUT;
extern Pointer BODY; extern Pointer BODY;
extern Pointer REST;
/** UTILS **/ /** UTILS **/
void init(void); void init(void);

2
implementations/c/src/symbol.c

@ -7,6 +7,7 @@ Pointer STANDARD_INPUT;
Pointer STANDARD_OUTPUT; Pointer STANDARD_OUTPUT;
Pointer UNDEFINED; Pointer UNDEFINED;
Pointer BODY; Pointer BODY;
Pointer REST;
static Pointer SYMBOLS; static Pointer SYMBOLS;
@ -55,5 +56,6 @@ void symbol_init(void) {
STANDARD_OUTPUT = symbol1("*standard-output*"); STANDARD_OUTPUT = symbol1("*standard-output*");
UNDEFINED = symbol1("undefined"); UNDEFINED = symbol1("undefined");
BODY = symbol1("&body"); BODY = symbol1("&body");
REST = symbol1("&rest");
} }

Loading…
Cancel
Save