Skip to content

Instantly share code, notes, and snippets.

@fracek
Created April 30, 2014 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fracek/11420571 to your computer and use it in GitHub Desktop.
Save fracek/11420571 to your computer and use it in GitHub Desktop.
define C-struct <clist-s>
slot clist_s$first :: <clistcell*>;
slot clist_s$last :: <clistcell*>;
slot clist_s$count :: <C-signed-int>;
pointer-type-name: <_clist-s*>;
end;
//define constant <clist> = <clist-s>;
define C-subtype <clist*> (<_clist-s*>, <sequence>) end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment