diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-02-09 17:02:23 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-02-09 17:02:23 +0000 |
commit | f126ef6731021d7796f88800eb59106388683280 (patch) | |
tree | a83034b45cbc94d0923ea5d4e5175257a7d781ca /locale/programs/linereader.c | |
parent | 90feeaa2ebef8b807cfb774bcbe311325eae0b3b (diff) | |
download | glibc-f126ef6731021d7796f88800eb59106388683280.zip glibc-f126ef6731021d7796f88800eb59106388683280.tar.gz glibc-f126ef6731021d7796f88800eb59106388683280.tar.bz2 |
Update.
2001-02-09 Ulrich Drepper <drepper@redhat.com>
* locale/programs/linereader.c (get_ident): Stop loop if EOF. Use
lr_ungetc to push back last read character.
* locale/programs/linereader.h (lr_ungetc): Don't push back is
character is EOF.
(lr_ignore_rest): Don't warn about garbage if it is really the end
of the file.
* manual/Makefile: Use ifnottext and not ifinfo to protect Top node
definition.
Diffstat (limited to 'locale/programs/linereader.c')
-rw-r--r-- | locale/programs/linereader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/locale/programs/linereader.c b/locale/programs/linereader.c index 5dba62f..9a61428 100644 --- a/locale/programs/linereader.c +++ b/locale/programs/linereader.c @@ -528,7 +528,7 @@ get_ident (struct linereader *lr) ADDC (lr->buf[lr->idx - 1]); while (!isspace ((ch = lr_getc (lr))) && ch != '"' && ch != ';' - && ch != '<' && ch != ',') + && ch != '<' && ch != ',' && ch != EOF) { if (ch == lr->escape_char) { @@ -542,7 +542,7 @@ get_ident (struct linereader *lr) ADDC (ch); } - lr_ungetn (lr, 1); + lr_ungetc (lr, ch); kw = lr->hash_fct (buf, bufact); |