diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-03-31 07:42:04 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-03-31 07:42:04 +0000 |
commit | 101ac88dc577c04f57475d10ac4f399b3affd308 (patch) | |
tree | 47cdf48c0b3b9a26bc29184b44f6e4c136384898 /mdoc_macro.c | |
parent | ea6ed8eb4a9349ba679125913c5a03c1027783b2 (diff) | |
download | mandoc-101ac88dc577c04f57475d10ac4f399b3affd308.tar.gz mandoc-101ac88dc577c04f57475d10ac4f399b3affd308.tar.zst mandoc-101ac88dc577c04f57475d10ac4f399b3affd308.zip |
Re-adjusting UGLY tags.
Fixed removed assignment of type.
Removed superfluous checks of mdoc_argflags (from days when comments were a macro tag).
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r-- | mdoc_macro.c | 8 |
1 files changed, 3 insertions, 5 deletions
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); |