diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2017-12-04 21:08:28 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2017-12-07 14:54:11 +0300 |
commit | c006fd459f4df832b24e6c7a32228e154a0261ba (patch) | |
tree | 018c0ea52edf203b47acbfda6db5615904621f9d /newlib/doc/makedoc.c | |
parent | 3476c8c868d95825f16710a6b893b62576f625de (diff) |
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/makedoc.c')
-rw-r--r-- | newlib/doc/makedoc.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/newlib/doc/makedoc.c b/newlib/doc/makedoc.c index 96362f782..fdcc5b926 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 */ |