From f560c8171b3c347f410aed692168d4bd5ee00513 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 28 Dec 2008 00:34:20 +0000 Subject: *** empty log message *** --- private.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'private.h') diff --git a/private.h b/private.h index 0b85045d..0a219dd5 100644 --- a/private.h +++ b/private.h @@ -1,4 +1,4 @@ -/* $Id: private.h,v 1.44 2008/12/23 05:30:49 kristaps Exp $ */ +/* $Id: private.h,v 1.45 2008/12/28 00:34:20 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -67,16 +67,25 @@ void *mdoc_tokhash_alloc(void); int mdoc_tokhash_find(const void *, const char *); void mdoc_tokhash_free(void *); int mdoc_isdelim(const char *); +int mdoc_iscdelim(char); enum mdoc_sec mdoc_atosec(size_t, const char **); enum mdoc_msec mdoc_atomsec(const char *); enum mdoc_vol mdoc_atovol(const char *); enum mdoc_arch mdoc_atoarch(const char *); time_t mdoc_atotime(const char *); -int mdoc_argv_lookup(int, const char *); -int mdoc_argv_parse(struct mdoc *, int, - int, struct mdoc_arg *, int *, char *); +int mdoc_argv(struct mdoc *, int, + struct mdoc_arg *, int *, char *); void mdoc_argv_free(int, struct mdoc_arg *); +int mdoc_args(struct mdoc *, int, + int *, char *, int, char **); +#define ARGS_ERROR (-1) +#define ARGS_EOLN (0) +#define ARGS_WORD (1) +#define ARGS_PUNCT (2) + +#define ARGS_QUOTED (1 << 0) +#define ARGS_DELIM (1 << 1) int xstrlcat(char *, const char *, size_t); int xstrlcpy(char *, const char *, size_t); -- cgit v1.2.3