-/* $Id: mdoc.h,v 1.47 2009/03/12 16:30:50 kristaps Exp $ */
+/* $Id: mdoc.h,v 1.54 2009/03/31 13:50:19 kristaps Exp $ */
/*
- * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
+ * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the
/* What follows is a list of ALL possible macros. */
-/* TODO: Brq et al. */
-
#define MDOC___ 0
#define MDOC_Dd 1
#define MDOC_Dt 2
#define MDOC_Bro 112
#define MDOC_Brc 113
#define MDOC__C 114
-#define MDOC_MAX 115
+#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. */
/* 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);
const char *mdoc_a2lib(const char *);
const char *mdoc_a2st(const char *);
-int mdoc_isdelim(const char *);
-
__END_DECLS
#endif /*!MDOC_H*/