X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/5625aa32a7011e20289ada22bc5924810dc97ce0..320aeed3e443b3e6d5f4a692406e2835ba74a12b:/mdoc.h diff --git a/mdoc.h b/mdoc.h index 73d6b284..3e0c8297 100644 --- a/mdoc.h +++ b/mdoc.h @@ -1,6 +1,6 @@ -/* $Id: mdoc.h,v 1.46 2009/03/11 00:39:58 kristaps Exp $ */ +/* $Id: mdoc.h,v 1.54 2009/03/31 13:50:19 kristaps Exp $ */ /* - * Copyright (c) 2008 Kristaps Dzonsons + * Copyright (c) 2008, 2009 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the @@ -31,8 +31,6 @@ /* What follows is a list of ALL possible macros. */ -/* TODO: Brq et al. */ - #define MDOC___ 0 #define MDOC_Dd 1 #define MDOC_Dt 2 @@ -147,7 +145,12 @@ #define MDOC_Brq 111 #define MDOC_Bro 112 #define MDOC_Brc 113 -#define MDOC_MAX 114 +#define MDOC__C 114 +#define MDOC_Es 115 +#define MDOC_En 116 +#define MDOC_Dx 117 +#define MDOC__Q 118 +#define MDOC_MAX 119 /* What follows is a list of ALL possible macro arguments. */ @@ -176,7 +179,8 @@ #define MDOC_Words 22 #define MDOC_Emphasis 23 #define MDOC_Symbolic 24 -#define MDOC_ARG_MAX 25 +#define MDOC_Nested 25 +#define MDOC_ARG_MAX 26 /* Warnings are either syntax or groff-compatibility. */ enum mdoc_warn { @@ -297,8 +301,8 @@ void mdoc_free(struct mdoc *); /* Allocate a new parser instance. */ struct mdoc *mdoc_alloc(void *, int, const struct mdoc_cb *); -/* Set parse options. */ -void mdoc_setflags(struct mdoc *, int); +/* Gets system ready for another parse. */ +int mdoc_reset(struct mdoc *); /* Parse a single line in a stream (boolean retval). */ int mdoc_parseln(struct mdoc *, int, char *buf); @@ -318,8 +322,6 @@ const char *mdoc_a2att(const char *); const char *mdoc_a2lib(const char *); const char *mdoc_a2st(const char *); -int mdoc_isdelim(const char *); - __END_DECLS #endif /*!MDOC_H*/