summaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-07 15:53:00 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-07 15:53:00 +0000
commit9dd355694618bcd06487072ef69080b1afa3dead (patch)
tree014ccffd5ebbb334c255c29e64f5bdc54d10050d /mdoc.h
parent1c8d0e7cfcdbd3d64368314aed6b31f07872e336 (diff)
downloadmandoc-9dd355694618bcd06487072ef69080b1afa3dead.tar.gz
mandoc-9dd355694618bcd06487072ef69080b1afa3dead.tar.zst
mandoc-9dd355694618bcd06487072ef69080b1afa3dead.zip
*** empty log message ***
Diffstat (limited to 'mdoc.h')
-rw-r--r--mdoc.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/mdoc.h b/mdoc.h
index f2184b3d..fdb6b036 100644
--- a/mdoc.h
+++ b/mdoc.h
@@ -1,4 +1,4 @@
-/* $Id: mdoc.h,v 1.15 2009/01/05 17:57:08 kristaps Exp $ */
+/* $Id: mdoc.h,v 1.16 2009/01/07 15:53:00 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -19,7 +19,7 @@
#ifndef MDOC_H
#define MDOC_H
-#define MDOC_LINEARG_MAX 8
+#define MDOC_LINEARG_MAX 12
#define MDOC___ 0
#define MDOC_Dd 1
@@ -217,6 +217,7 @@ enum mdoc_err {
ERR_ARGS_EQ1,
ERR_ARGS_GE1,
ERR_ARGS_LE2,
+ ERR_ARGS_LE8,
ERR_ARGS_MANY,
ERR_SYNTAX_CHILDHEAD,
ERR_SYNTAX_CHILDBODY,
@@ -411,6 +412,8 @@ struct mdoc_node {
struct mdoc_node *child;
struct mdoc_node *next;
struct mdoc_node *prev;
+ int line;
+ int pos;
enum mdoc_type type;
union mdoc_data data;
};
@@ -430,9 +433,10 @@ struct mdoc;
void mdoc_free(struct mdoc *);
struct mdoc *mdoc_alloc(void *data, const struct mdoc_cb *);
-int mdoc_parseln(struct mdoc *, char *buf);
+int mdoc_parseln(struct mdoc *, int, char *buf);
const struct mdoc_node
*mdoc_result(struct mdoc *);
+int mdoc_endparse(struct mdoc *);
__END_DECLS