|
|
@ -2,8 +2,13 @@
|
|
|
|
@cond IGNORE
|
|
|
|
@cond IGNORE
|
|
|
|
|
|
|
|
|
|
|
|
======================================================
|
|
|
|
======================================================
|
|
|
|
|
|
|
|
Original copyrights (before the fork):
|
|
|
|
SFSEXP: Small, Fast S-Expression Library version 1.2
|
|
|
|
SFSEXP: Small, Fast S-Expression Library version 1.2
|
|
|
|
Written by Matthew Sottile (mjsottile@gmail.com)
|
|
|
|
Written by Matthew Sottile (mjsottile@gmail.com)
|
|
|
|
|
|
|
|
Forked:
|
|
|
|
|
|
|
|
libsexpr: fork of sfsexp (small and fast s-expression lib)
|
|
|
|
|
|
|
|
(c) Matthew Sottile <mjsottile@gmail.com> (original author)
|
|
|
|
|
|
|
|
(c) Alexander Vdolainen <alex@vapaa.xyz> (some extra API additions)
|
|
|
|
======================================================
|
|
|
|
======================================================
|
|
|
|
|
|
|
|
|
|
|
|
Copyright (2003-2006). The Regents of the University of California. This
|
|
|
|
Copyright (2003-2006). The Regents of the University of California. This
|
|
|
@ -44,6 +49,8 @@ LA-CC-04-094
|
|
|
|
#include "sexp_memory.h"
|
|
|
|
#include "sexp_memory.h"
|
|
|
|
#include "sexp_errors.h"
|
|
|
|
#include "sexp_errors.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define CSTRBUFSIZ 512
|
|
|
|
|
|
|
|
|
|
|
|
/* doxygen documentation groups defined here */
|
|
|
|
/* doxygen documentation groups defined here */
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -560,6 +567,15 @@ typedef struct sexp_iowrap {
|
|
|
|
size_t cnt;
|
|
|
|
size_t cnt;
|
|
|
|
} sexp_iowrap_t;
|
|
|
|
} sexp_iowrap_t;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* TODO: doxygen? more doxygen */
|
|
|
|
|
|
|
|
typedef struct sexp_cstrwrap {
|
|
|
|
|
|
|
|
pcont_t *cc;
|
|
|
|
|
|
|
|
const char *seval;
|
|
|
|
|
|
|
|
size_t rl, cnt;
|
|
|
|
|
|
|
|
size_t sln;
|
|
|
|
|
|
|
|
char buf[CSTRBUFSIZ];
|
|
|
|
|
|
|
|
} sexp_cstrwrap_t;
|
|
|
|
|
|
|
|
|
|
|
|
/*========*/
|
|
|
|
/*========*/
|
|
|
|
/* GLOBAL */
|
|
|
|
/* GLOBAL */
|
|
|
|
/*========*/
|
|
|
|
/*========*/
|
|
|
|