aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--mdoc.c3
-rw-r--r--mdoc_argv.c3
-rw-r--r--mdoc_macro.c8
4 files changed, 7 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index b7610ccc..7561357f 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ INSTALL_MAN = $(INSTALL_DATA)
VERSION = 1.9.21
VDATE = 31 March 2010
-VFLAGS = -DVERSION="\"$(VERSION)\"" -DHAVE_CONFIG_H -DUGLY
+VFLAGS = -DVERSION="\"$(VERSION)\"" -DHAVE_CONFIG_H
WFLAGS = -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
CFLAGS += -g $(VFLAGS) $(WFLAGS)
#CFLAGS += -DOSNAME="\"OpenBSD 4.5\""
diff --git a/mdoc.c b/mdoc.c
index 2ab3a0ca..d3d897cf 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc.c,v 1.117 2010/03/31 07:13:53 kristaps Exp $ */
+/* $Id: mdoc.c,v 1.118 2010/03/31 07:42:04 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -436,6 +436,7 @@ node_alloc(struct mdoc *m, int line, int pos,
p->line = line;
p->pos = pos;
p->tok = tok;
+ p->type = type;
return(p);
}
diff --git a/mdoc_argv.c b/mdoc_argv.c
index 404a097a..52483803 100644
--- a/mdoc_argv.c
+++ b/mdoc_argv.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_argv.c,v 1.35 2010/03/31 07:13:53 kristaps Exp $ */
+/* $Id: mdoc_argv.c,v 1.36 2010/03/31 07:42:04 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -336,7 +336,6 @@ mdoc_args(struct mdoc *m, int line, int *pos,
int fl, c, i;
struct mdoc_node *n;
- assert(tok && tok < MDOC_MAX);
fl = mdoc_argflags[tok];
if (MDOC_It != tok)
diff --git a/mdoc_macro.c b/mdoc_macro.c
index e1461ac8..89a4b04d 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_macro.c,v 1.47 2010/03/31 07:13:53 kristaps Exp $ */
+/* $Id: mdoc_macro.c,v 1.48 2010/03/31 07:42:04 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -538,10 +538,8 @@ rew_dobreak(enum mdoct tok, const struct mdoc_node *p)
return(1);
break;
case (MDOC_Oc):
-#ifdef UGLY
if (MDOC_Op == p->tok)
return(1);
-#endif
break;
default:
break;
@@ -881,7 +879,9 @@ blk_full(MACRO_PROT_ARGS)
int c, la;
struct mdoc_arg *arg;
struct mdoc_node *head; /* save of head macro */
+#ifdef UGLY
struct mdoc_node *n;
+#endif
char *p;
/* Close out prior implicit scope. */
@@ -1102,7 +1102,6 @@ blk_part_imp(MACRO_PROT_ARGS)
body = m->last;
}
-#ifdef UGLY
/*
* If we can't rewind to our body, then our scope has already
* been closed by another macro (like `Oc' closing `Op'). This
@@ -1112,7 +1111,6 @@ blk_part_imp(MACRO_PROT_ARGS)
for (n = m->last; n; n = n->parent)
if (body == n)
break;
-#endif
if (NULL == n && ! mdoc_nwarn(m, body, EIMPBRK))
return(0);