Added a structure for the cstr wrapper;

master
Alexander Vdolainen 5 years ago
parent 2201d30118
commit 9a055e83f3

@ -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 */
/** /**
@ -552,7 +559,7 @@ typedef struct sexp_iowrap {
* Buffer to read data into before parsing. * Buffer to read data into before parsing.
*/ */
char buf[BUFSIZ]; char buf[BUFSIZ];
/** /**
* Byte count for last read. If it is -1, there was an error. Otherwise, * Byte count for last read. If it is -1, there was an error. Otherwise,
* it will be a value from 0 to BUFSIZ. * it will be a value from 0 to BUFSIZ.
@ -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 */
/*========*/ /*========*/

Loading…
Cancel
Save