More corrections to test.sh: language; netstat; reuseaddr; usleep; force IPv4; timeout
[socat.git] / nestlex.h
blobc125acef762780cbda2b7bd9b30d46def7074f8f
1 /* source: nestlex.h */
2 /* Copyright Gerhard Rieger and contributors (see file CHANGES) */
3 /* Published under the GNU General Public License V.2, see file COPYING */
5 #ifndef __nestlex_h_included
6 #define __nestlex_h_included 1
8 extern
9 int nestlex(const char **addr, /* input string; aft points to end token */
10 char **token, /* output token; aft points to first unwritten
11 char (caller might want to set it to \0) */
12 size_t *len, /* remaining bytes in token space (incl. \0) */
13 const char *ends[], /* list of end strings */
14 const char *hquotes[],/* list of strings that quote (hard qu.) */
15 const char *squotes[],/* list of strings that quote softly */
16 const char *nests[],/* list of strings that start nesting;
17 every second one is matching end */
18 bool dropquotes, /* drop the outermost quotes */
19 bool c_esc, /* solve C char escapes: \n \t \0 etc */
20 bool html_esc /* solve HTML char escapes: %0d %08 etc */
23 #endif /* !defined(__nestlex_h_included) */