28 lines
728 B
C
28 lines
728 B
C
#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 |