From 9cf89b4437df6a7741532dd73fed770cd8eef9f2 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 26 Mar 2015 12:47:19 +0000 Subject: - added el_parse() and friends - refactored execlineb to use them - version: rc for 2.1.1.1 --- src/include/execline/execline.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/include') diff --git a/src/include/execline/execline.h b/src/include/execline/execline.h index 1f1ec68..7691cf1 100644 --- a/src/include/execline/execline.h +++ b/src/include/execline/execline.h @@ -5,12 +5,23 @@ #include #include +#include #include #define EXECLINE_BLOCK_QUOTE_CHAR ' ' #define EXECLINE_BLOCK_END_CHAR '\0' +/* Parsing */ + +typedef int el_chargen_func_t (unsigned char *, void *) ; +typedef el_chargen_func_t *el_chargen_func_t_ref ; + +extern int el_parse (stralloc *, el_chargen_func_t_ref, void *) ; +extern int el_parse_from_string (stralloc *, char const *) ; +extern int el_parse_from_buffer (stralloc *, buffer *) ; + + /* Basics */ extern int el_vardupl (char const *, char const *, unsigned int) gccattr_pure ; -- cgit v1.2.3