summaryrefslogtreecommitdiffstatshomepage
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
commitf560c8171b3c347f410aed692168d4bd5ee00513 (patch)
tree49547698c8b614eaa9dc414e660bef7172edf3e3 /private.h
parent990c4d95f389f1f47a9a5fa56c6009c6b2d7d2ff (diff)
downloadmandoc-f560c8171b3c347f410aed692168d4bd5ee00513.tar.gz
mandoc-f560c8171b3c347f410aed692168d4bd5ee00513.tar.zst
mandoc-f560c8171b3c347f410aed692168d4bd5ee00513.zip
*** empty log message ***
Diffstat (limited to 'private.h')
-rw-r--r--private.h17
1 files changed, 13 insertions, 4 deletions
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 <kristaps@kth.se>
*
@@ -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);