summaryrefslogtreecommitdiffstats
path: root/private.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-28 00:34:20 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-28 00:34:20 +0000
commitfcdb2b181c2abba92921b7909898488fbe4c74f7 (patch)
treeaaacf836b3b4440b7a1e10fdac28db76f316e779 /private.h
parentb05d33f5306dfb39354bbb61d90e28aa7b902d3b (diff)
downloadmandoc-fcdb2b181c2abba92921b7909898488fbe4c74f7.tar.gz
*** empty log message ***
Diffstat (limited to 'private.h')
-rw-r--r--private.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/private.h b/private.h
index b924c82a..e8524f1e 100644
--- a/private.h
+++ b/private.h
@@ -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);