mirror of
https://repo.or.cz/socat.git
synced 2025-07-13 15:13:23 +00:00
socat V1.6.0.0 (initial GIT commit)
This commit is contained in:
commit
b819572f5e
170 changed files with 59193 additions and 0 deletions
23
nestlex.h
Normal file
23
nestlex.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/* $Id: nestlex.h,v 1.3 2006/06/23 17:04:39 gerhard Exp $ */
|
||||
/* Copyright Gerhard Rieger 2006 */
|
||||
/* Published under the GNU General Public License V.2, see file COPYING */
|
||||
|
||||
#ifndef __nestlex_h_included
|
||||
#define __nestlex_h_included 1
|
||||
|
||||
extern
|
||||
int nestlex(const char **addr, /* input string; aft points to end token */
|
||||
char **token, /* output token; aft points to first unwritten
|
||||
char (caller might want to set it to \0) */
|
||||
size_t *len, /* remaining bytes in token space (incl. \0) */
|
||||
const char *ends[], /* list of end strings */
|
||||
const char *hquotes[],/* list of strings that quote (hard qu.) */
|
||||
const char *squotes[],/* list of strings that quote softly */
|
||||
const char *nests[],/* list of strings that start nesting;
|
||||
every second one is matching end */
|
||||
bool dropquotes, /* drop the outermost quotes */
|
||||
bool c_esc, /* solve C char escapes: \n \t \0 etc */
|
||||
bool html_esc /* solve HTML char escapes: %0d %08 etc */
|
||||
);
|
||||
|
||||
#endif /* !defined(__nestlex_h_included) */
|
Loading…
Add table
Add a link
Reference in a new issue