diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-28 07:00:27 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-28 07:00:27 +0000 |
commit | 288745581315dcbe9383a2fa28ac6403b3b417db (patch) | |
tree | 206ad049b411ef90070a3486a0832ecc5adf0c79 /gcc/cpplex.c | |
parent | 00482daf9415b9362b30f39e8f294d0c53047e4c (diff) | |
download | gcc-288745581315dcbe9383a2fa28ac6403b3b417db.tar.gz |
* cpplex.c (cpp_output_token): Use a putc loop for
SPELL_OPERATOR, and fwrite for SPELL_IDENT.
* configure.in: Detect fwrite_unlocked and fprintf_unlocked.
* configure, config.in: Regenerate.
* system.h: Replace fwrite and fprintf with their unlocked
variants if available.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45855 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index 1c6d0dd48ac..dbef9b5dbf5 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -1514,6 +1514,7 @@ cpp_output_token (token, fp) case SPELL_OPERATOR: { const unsigned char *spelling; + int c; if (token->flags & DIGRAPH) spelling @@ -1523,13 +1524,16 @@ cpp_output_token (token, fp) else spelling = TOKEN_NAME (token); - ufputs (spelling, fp); + c = *spelling; + do + putc (c, fp); + while ((c = *++spelling) != '\0'); } break; spell_ident: case SPELL_IDENT: - ufputs (NODE_NAME (token->val.node), fp); + fwrite (NODE_NAME (token->val.node), 1, NODE_LEN (token->val.node), fp); break; case SPELL_STRING: |