diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2017-12-04 18:08:28 +0000 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2017-12-07 11:54:11 +0000 |
commit | c006fd459f4df832b24e6c7a32228e154a0261ba (patch) | |
tree | 018c0ea52edf203b47acbfda6db5615904621f9d /newlib/doc | |
parent | 3476c8c868d95825f16710a6b893b62576f625de (diff) | |
download | newlib-c006fd459f4df832b24e6c7a32228e154a0261ba.zip newlib-c006fd459f4df832b24e6c7a32228e154a0261ba.tar.gz newlib-c006fd459f4df832b24e6c7a32228e154a0261ba.tar.bz2 |
makedoc: make errors visible
Discard QUICKREF sections, rather than writing them to stderr
Discard MATHREF sections, rather than discarding as an error
Pass NOTES sections through to texinfo, rather than discarding as an error
Don't redirect makedoc stderr to .ref file
Remove makedoc output on error
Remove .ref files from CLEANFILES
Regenerate Makefile.ins
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Diffstat (limited to 'newlib/doc')
-rw-r--r-- | newlib/doc/doc.str | 10 | ||||
-rw-r--r-- | newlib/doc/makedoc.c | 47 |
2 files changed, 7 insertions, 50 deletions
diff --git a/newlib/doc/doc.str b/newlib/doc/doc.str index 3fc1006..949c6e7 100644 --- a/newlib/doc/doc.str +++ b/newlib/doc/doc.str @@ -17,9 +17,10 @@ : QUICKREF skip_past_newline - get_stuff_in_command - "&&~&&~&&\cr\tablerule\n" - quickref + ; + +: MATHREF + skip_past_newline ; : EXAMPLE @@ -153,6 +154,9 @@ : SEEALSO "@strong{See Also}@*\n" catstr subhead ; +: NOTES + "@strong{Notes}@*\n" catstr subhead ; + : INTERNAL_FUNCTION ; diff --git a/newlib/doc/makedoc.c b/newlib/doc/makedoc.c index 96362f7..fdcc5b9 100644 --- a/newlib/doc/makedoc.c +++ b/newlib/doc/makedoc.c @@ -444,52 +444,6 @@ WORD(translatecomments) } -/* find something like - QUICKREF - memchar ansi pure - - into - merge with words on tos and output them to stderror - -*/ -WORD(quickref) -{ - string_type *nos = tos-1; - unsigned int nosscan = 0; - unsigned int idx = 0; - - while (at(tos, idx)) - { - if (at(tos,idx) == '~') - { - /* Skip the whitespace */ - while (at(nos, nosscan) == ' ') - nosscan++; - - /* Sub the next word from the nos*/ - while (at(nos, nosscan) != ' ' && - at(nos, nosscan) != 0) - { - fprintf(stderr, "%c", at(nos, nosscan)); - nosscan++; - } - } - - else - { - fprintf(stderr,"%c", at(tos, idx)); - - } - idx++; - } - - delete_string(tos); - delete_string(nos); - tos-=2; - pc++; - -} - #if 0 /* turn everything not starting with a . into a comment */ @@ -1428,7 +1382,6 @@ char *av[]) add_intrinsic("translatecomments", translatecomments ); add_intrinsic("kill_bogus_lines", kill_bogus_lines); add_intrinsic("indent", indent); - add_intrinsic("quickref", quickref); add_intrinsic("internalmode", internalmode); /* Put a nl at the start */ |