nntrac-embed.h (728B)
1 #ifndef NNTRAC_EMBED_H 2 #define NNTRAC_EMBED_H 3 4 /* Embeddable header for nntrac runtime */ 5 /* Created by Luxferre in 2023, released into public domain */ 6 7 #include <stdlib.h> 8 #include <string.h> 9 10 /* required definitions */ 11 12 enum NNT_MARKERS { /* various markers: 248 to 255 never occur in UTF-8 */ 13 NNT_AFST=-8, /* active function start */ 14 NNT_NFST, /* neutral function start */ 15 NNT_EOF, /* end of function */ 16 NNT_ADEL, /* argument delimiter */ 17 NNT_SEGGAP /* segment gap character */ 18 }; 19 static const char NNT_ADEL_S[2] = {NNT_ADEL, 0}; 20 21 /* available API function prototypes */ 22 23 void nnt_init(); 24 void nnt_regprimitive(const char *, void *); 25 void nnt_proc(char *, unsigned int); 26 void nnt_finish(); 27 28 #endif