diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-06 14:24:49 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-06 14:24:49 +0000 |
commit | 7024ee7ca35a8033dee9ec0936cd2f3e0251aca2 (patch) | |
tree | d98189a2f8785e0f2217c5b3a2a0a6abe57112d1 | |
parent | bc942b21e65675353944cc575b047c6a80080195 (diff) | |
download | mandoc-7024ee7ca35a8033dee9ec0936cd2f3e0251aca2.tar.gz |
Documented the strings script.
-rw-r--r-- | action.c | 10 | ||||
-rw-r--r-- | arch.in | 8 | ||||
-rw-r--r-- | att.in | 8 | ||||
-rw-r--r-- | lib.in | 8 | ||||
-rw-r--r-- | msec.in | 8 | ||||
-rw-r--r-- | st.in | 8 | ||||
-rw-r--r-- | strings.sh | 3 | ||||
-rw-r--r-- | validate.c | 3 | ||||
-rw-r--r-- | vol.in | 8 |
9 files changed, 59 insertions, 5 deletions
@@ -535,11 +535,13 @@ post_ar(struct mdoc *mdoc) n = mdoc->last; mdoc->next = MDOC_NEXT_CHILD; - mdoc_word_alloc(mdoc, mdoc->last->line, - mdoc->last->pos, "file"); + if ( ! mdoc_word_alloc(mdoc, mdoc->last->line, + mdoc->last->pos, "file")) + return(0); mdoc->next = MDOC_NEXT_SIBLING; - mdoc_word_alloc(mdoc, mdoc->last->line, - mdoc->last->pos, "..."); + if ( ! mdoc_word_alloc(mdoc, mdoc->last->line, + mdoc->last->pos, "...")) + return(0); mdoc->last = n; mdoc->next = MDOC_NEXT_SIBLING; @@ -1,3 +1,11 @@ +# $Id$ +# +# This file defines the `.Dt' macro 'arch' argument. Lines are composed +# of tab-delimited fields -- multiple tabs may delimit fields. Comment +# lines begin with '#'; blank lines are also ok. +# +# These were last grok'd from OpenBSD-4.4's mdoc.samples(7). + alpha Alpha amd64 AMD64 amiga Amiga @@ -1,3 +1,11 @@ +# $Id$ +# +# This file defines the `.At' macro argument. Lines are composed of +# tab-delimited fields -- multiple tabs may delimit fields. Comment +# lines begin with '#'; blank lines are also ok. +# +# These were last grok'd from OpenBSD-4.4's mdoc.samples(7). + v1 Version 1 AT&T UNIX v2 Version 2 AT&T UNIX v3 Version 3 AT&T UNIX @@ -1,3 +1,11 @@ +# $Id$ +# +# This file defines the `.Lb' macro argument. Lines are composed of +# tab-delimited fields -- multiple tabs may delimit fields. Comment +# lines begin with '#'; blank lines are also ok. +# +# These were last grok'd from NetBSD-4.0.1's mdoc.samples(7). + libarm ARM Architecture Library (libarm, -larm) libarm32 ARM32 Architecture Library (libarm32, -larm32) libc Standard C Library (libc, -lc) @@ -1,3 +1,11 @@ +# $Id$ +# +# This file defines the `.Dt' macro 'volume' argument. Lines are +# composed of tab-delimited fields -- multiple tabs may delimit fields. +# Comment lines begin with '#'; blank lines are also ok. +# +# These were last grok'd from OpenBSD-4.4's mdoc.samples(7). + 1 General Commands Manual 2 System Calls Manual 3 Library Functions Manual @@ -1,3 +1,11 @@ +# $Id$ +# +# This file defines the `.St' macro arguments. Lines are composed of +# tab-delimited fields -- multiple tabs may delimit fields. Comment +# lines begin with '#'; blank lines are also ok. +# +# These were last grok'd from OpenBSD-4.4's mdoc.samples(7). + -p1003.1-88 IEEE Std 1003.1-1988 (\\\\(lqPOSIX\\\\(rq) -p1003.1-90 IEEE Std 1003.1-1990 (\\\\(lqPOSIX\\\\(rq) -p1003.1-96 ISO/IEC 9945-1:1996 (\\\\(lqPOSIX\\\\(rq) @@ -67,6 +67,9 @@ mdoc_a2${name}(const char *p) ! while read in ; do + [ -z "$in" ] && continue; + [ "#" == `echo "$in" | cut -c1` ] && continue; + key=`printf "%s\n" "$in" | cut -f 1` val=`printf "%s\n" "$in" | cut -f 2- | sed 's!^[ ]*!!'` cat <<! @@ -484,7 +484,8 @@ check_sec(PRE_ARGS, ...) va_start(ap, n); for (;;) { - if (SEC_CUSTOM == (sec = va_arg(ap, enum mdoc_sed))) + sec = (enum mdoc_sec)va_arg(ap, int); + if (SEC_CUSTOM == sec) break; if (sec != mdoc->lastsec) continue; @@ -1,3 +1,11 @@ +# $Id$ +# +# This file defines the `.Dt' macro 'volume' argument. Lines are +# composed of tab-delimited fields -- multiple tabs may delimit fields. +# Comment lines begin with '#'; blank lines are also ok. +# +# These were last grok'd from OpenBSD-4.4's mdoc.samples(7). + USD User's Supplementary Documents PS1 Programmer's Supplementary Documents AMD Ancestral Manual Documents |