X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/d3f9cacf68a35ab54ef8d339821e76db6ba69e73..a2320c4fc025a6262bc6cfa6e420d85fe8d60bd6:/private.h diff --git a/private.h b/private.h index 0895f30b..02192565 100644 --- a/private.h +++ b/private.h @@ -1,4 +1,4 @@ -/* $Id: private.h,v 1.64 2009/01/15 17:38:58 kristaps Exp $ */ +/* $Id: private.h,v 1.67 2009/01/17 16:15:27 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -41,6 +41,10 @@ struct mdoc { }; +/* FIXME: it's 9 (this isn't used properly). */ + +#define MDOC_LINEARG_MAX 12 + #define MACRO_PROT_ARGS struct mdoc *mdoc, int tok, int line, \ int ppos, int *pos, char *buf @@ -118,13 +122,15 @@ 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_sec mdoc_atosec(const char *); enum mdoc_msec mdoc_atomsec(const char *); enum mdoc_vol mdoc_atovol(const char *); enum mdoc_arch mdoc_atoarch(const char *); enum mdoc_att mdoc_atoatt(const char *); time_t mdoc_atotime(const char *); +char *mdoc_type2a(enum mdoc_type); + int mdoc_valid_pre(struct mdoc *, struct mdoc_node *); int mdoc_valid_post(struct mdoc *); int mdoc_action_pre(struct mdoc *, struct mdoc_node *); @@ -148,6 +154,7 @@ int mdoc_args(struct mdoc *, int, #define ARGS_DELIM (1 << 1) #define ARGS_TABSEP (1 << 2) +int xstrlcats(char *, const struct mdoc_node *, size_t); int xstrlcat(char *, const char *, size_t); int xstrlcpy(char *, const char *, size_t); int xstrcmp(const char *, const char *);