~luxferre/nntrac

d795c09bf93375306d76ea8aa65da6f316d9ef95 — Luxferre 3 months ago a65f47e master
First embed hdr version
1 files changed, 28 insertions(+), 0 deletions(-)

A nntrac-embed.h
A nntrac-embed.h => nntrac-embed.h +28 -0
@@ 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