Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Created March 23, 2011 00:21
Show Gist options
  • Select an option

  • Save ELLIOTTCABLE/882390 to your computer and use it in GitHub Desktop.

Select an option

Save ELLIOTTCABLE/882390 to your computer and use it in GitHub Desktop.
node Node__phrase (thing content)
node Node__expression (void)
node Node__scope (void)
node Node__allocate (void)
node node__initialize_phrase (node this, thing content)
node node__initialize_expression (node this)
node node__initialize_scope (node this)
void node__insert (node this, node child, node_size idx);
void node__prefix (node this, node child);
void node__affix (node this, node child);
node node__at (node this, node_size idx);
char* node__native (node this);
node node__duplicate (node this);
node node__instantiate (node this);
IF_EXTERNALIZED(static) struct Node * // »
Node = NULL;
void Paws__register_Node(void) { Node = malloc(sizeof( struct Node ));
auto struct Node // »
data = {
.phrase = Node__phrase,
.expression = Node__expression,
.scope = Node__scope,
.allocate = Node__allocate,
.initialize_phrase = node__initialize_phrase,
.initialize_expression = node__initialize_expression,
.initialize_scope = node__initialize_scope,
.insert = node__insert,
.prefix = node__prefix,
.affix = node__affix,
.at = node__at,
.native = node__native,
.duplicate = node__duplicate,
.instantiate = node__instantiate };
memcpy(Element, &data, sizeof( struct Node )); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment