=================================================================== RCS file: /cvs/mandoc/mdoc.h,v retrieving revision 1.51 retrieving revision 1.55 diff -u -p -r1.51 -r1.55 --- mandoc/mdoc.h 2009/03/21 09:42:07 1.51 +++ mandoc/mdoc.h 2009/04/12 19:19:57 1.55 @@ -1,6 +1,6 @@ -/* $Id: mdoc.h,v 1.51 2009/03/21 09:42:07 kristaps Exp $ */ +/* $Id: mdoc.h,v 1.55 2009/04/12 19:19:57 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 @@ -276,6 +276,7 @@ struct mdoc_node { #define MDOC_IGN_SCOPE (1 << 0) /* Ignore scope violations. */ #define MDOC_IGN_ESCAPE (1 << 1) /* Ignore bad escape sequences. */ #define MDOC_IGN_MACRO (1 << 2) /* Ignore unknown macros. */ +#define MDOC_IGN_CHARS (1 << 3) /* Ignore disallowed chars. */ /* Call-backs for parse messages. */ struct mdoc_cb { @@ -302,7 +303,7 @@ void mdoc_free(struct mdoc *); struct mdoc *mdoc_alloc(void *, int, const struct mdoc_cb *); /* Gets system ready for another parse. */ -void mdoc_reset(struct mdoc *); +int mdoc_reset(struct mdoc *); /* Parse a single line in a stream (boolean retval). */ int mdoc_parseln(struct mdoc *, int, char *buf); @@ -321,8 +322,6 @@ int mdoc_endparse(struct mdoc *); 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