diff options
author | wlemb <wlemb> | 2000-02-28 11:02:02 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2000-02-28 11:02:02 +0000 |
commit | efb0d77a34c0b94cbb627c877f2e3e5dffdc4ded (patch) | |
tree | d4898a3e9193ef56bbe8be5de7dcc0fbb0215066 /src/preproc/refer | |
parent | 109f6523b4d457fbc9c328529757e3363ab1c00c (diff) | |
download | groff-efb0d77a34c0b94cbb627c877f2e3e5dffdc4ded.tar.gz |
* doc/groff.texinfo: Further checking/updating. Adding more index
entries.
Adapting groff to MS Visual C++ 6.0 compiler (tested with
Windows NT 4.0).
* src/devices/grodvi/dvi.cc: Making stdout a binary stream.
* src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
* src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
src/include/lib.h, src/libs/libgroff/errarg.cc,
src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
src/preproc/refer/label.y, src/preproc/refer/label.cc,
src/roff/groff/pipeline.c, src/roff/troff/column.cc,
src/roff/troff/div.cc, src/roff/troff/env.cc,
src/roff/troff/input.cc, src/roff/troff/node.cc,
src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
if_to_a() to avoid name clashes.
* src/include/posix.h: Don't use unistd.h.
* src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
clause for integrating non-Unix xtmpfile() code.
* src/roff/troff/input.cc: Adding `public' keyword to macro_header
structure; use "rt" for popen() in pipe_source(); add getpid()
dummy function.
* src/roff/troff/node.cc: Use special versions of popen() in
real_output_file() and pclose() in ~real_output_file().
* src/devices/grolbp/Makefile.sub: Adding $(srcdir).
* man/groff_font.man: Adding info about obsolete DESC keywords.
* src/devices/grolj4/grolj4.man: Documenting additional DESC
keywords.
Diffstat (limited to 'src/preproc/refer')
-rwxr-xr-x | src/preproc/refer/label.cc | 6 | ||||
-rw-r--r-- | src/preproc/refer/label.y | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/preproc/refer/label.cc b/src/preproc/refer/label.cc index 206980f1..c6dc07cd 100755 --- a/src/preproc/refer/label.cc +++ b/src/preproc/refer/label.cc @@ -1,6 +1,6 @@ #ifndef lint /*static char yysccsid[] = "from: @(#)yaccpar 1.9 (Berkeley) 02/21/93";*/ -static char yyrcsid[] = "$Id: label.cc,v 1.1 2000/02/06 09:38:34 wlemb Exp $"; +static char yyrcsid[] = "$Id: label.cc,v 1.2 2000/02/28 11:02:12 wlemb Exp $"; #endif #define YYBYACC 1 #define YYMAJOR 1 @@ -558,7 +558,7 @@ void format_expr::evaluate(int tentative, const reference &ref, if (type != '0') result += format_serial(type, num + 1); else { - const char *ptr = itoa(num + first_number); + const char *ptr = i_to_a(num + first_number); int pad = width - strlen(ptr); while (--pad >= 0) result += '0'; @@ -579,7 +579,7 @@ static const char *format_serial(char c, int n) // numerals; I can find no historical basis for this usage const char *s = c == 'i' ? "zwmdclxvi" : "ZWMDCLXVI"; if (n >= 40000) - return itoa(n); + return i_to_a(n); while (n >= 10000) { *p++ = s[0]; n -= 10000; diff --git a/src/preproc/refer/label.y b/src/preproc/refer/label.y index 6bc12c18..2c7c9095 100644 --- a/src/preproc/refer/label.y +++ b/src/preproc/refer/label.y @@ -509,7 +509,7 @@ void format_expr::evaluate(int tentative, const reference &ref, if (type != '0') result += format_serial(type, num + 1); else { - const char *ptr = itoa(num + first_number); + const char *ptr = i_to_a(num + first_number); int pad = width - strlen(ptr); while (--pad >= 0) result += '0'; @@ -530,7 +530,7 @@ static const char *format_serial(char c, int n) // numerals; I can find no historical basis for this usage const char *s = c == 'i' ? "zwmdclxvi" : "ZWMDCLXVI"; if (n >= 40000) - return itoa(n); + return i_to_a(n); while (n >= 10000) { *p++ = s[0]; n -= 10000; |