nntrac

No-nonsense TRAC T-64 reimplementation under 1000 SLOC of ANSI C
git clone git://git.luxferre.top/nntrac.git
Log | Files | Refs | README | LICENSE

commit d795c09bf93375306d76ea8aa65da6f316d9ef95
parent a65f47ed06c288eacd75fb747b5f8b28d5eda884
Author: Luxferre <lux@ferre>
Date:   Thu, 31 Aug 2023 09:46:02 +0300

First embed hdr version

Diffstat:
Anntrac-embed.h | 29+++++++++++++++++++++++++++++
1 file changed, 29 insertions(+), 0 deletions(-)

diff --git a/nntrac-embed.h b/nntrac-embed.h @@ -0,0 +1,28 @@ +#ifndef NNTRAC_EMBED_H +#define NNTRAC_EMBED_H + +/* Embeddable header for nntrac runtime */ +/* Created by Luxferre in 2023, released into public domain */ + +#include <stdlib.h> +#include <string.h> + +/* required definitions */ + +enum NNT_MARKERS { /* various markers: 248 to 255 never occur in UTF-8 */ + NNT_AFST=-8, /* active function start */ + NNT_NFST, /* neutral function start */ + NNT_EOF, /* end of function */ + NNT_ADEL, /* argument delimiter */ + NNT_SEGGAP /* segment gap character */ +}; +static const char NNT_ADEL_S[2] = {NNT_ADEL, 0}; + +/* available API function prototypes */ + +void nnt_init(); +void nnt_regprimitive(const char *, void *); +void nnt_proc(char *, unsigned int); +void nnt_finish(); + +#endif +\ No newline at end of file