add listen-timeout to function as an accept timeout
[socat/sam.git] / nestlex.h
blobfc2b134b90a308d91f97ce4166695fdc3d1cf4aa
1 /* source: nestlex.h */
2 /* Copyright Gerhard Rieger 2006 */
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) */