summaryrefslogtreecommitdiff
path: root/src/ptx.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-07 23:21:45 +0000
committerJim Meyering <jim@meyering.net>2003-03-07 23:21:45 +0000
commitaec039a4c18af5ed096b068cf6991d56eff28f34 (patch)
treedaa35c3b3b2a6181be25aa46cdd4a00b5975632f /src/ptx.c
parent792f321a7af20cb4d61bb9a73470017ee88e1235 (diff)
downloadcoreutils-aec039a4c18af5ed096b068cf6991d56eff28f34.tar.xz
(output_one_tex_line, output_one_dumb_line):
Use putchar, not fputs, to output a single character.
Diffstat (limited to 'src/ptx.c')
-rw-r--r--src/ptx.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ptx.c b/src/ptx.c
index 06ab36174..75c815bfc 100644
--- a/src/ptx.c
+++ b/src/ptx.c
@@ -1,5 +1,5 @@
/* Permuted index for GNU, with keywords in their context.
- Copyright (C) 1990, 1991, 1993, 1998-2002 Free Software Foundation, Inc.
+ Copyright (C) 1990, 1991, 1993, 1998-2003 Free Software Foundation, Inc.
François Pinard <pinard@iro.umontreal.ca>, 1988.
This program is free software; you can redistribute it and/or modify
@@ -1657,7 +1657,7 @@ output_one_tex_line (void)
char *cursor; /* running cursor in source text */
printf ("\\%s ", macro_name);
- fputs ("{", stdout);
+ putchar ('{');
print_field (tail);
fputs ("}{", stdout);
print_field (before);
@@ -1673,14 +1673,14 @@ output_one_tex_line (void)
print_field (after);
fputs ("}{", stdout);
print_field (head);
- fputs ("}", stdout);
+ putchar ('}');
if (auto_reference || input_reference)
{
- fputs ("{", stdout);
+ putchar ('{');
print_field (reference);
- fputs ("}", stdout);
+ putchar ('}');
}
- fputs ("\n", stdout);
+ putchar ('\n');
}
/*-------------------------------------------------------------------.
@@ -1779,7 +1779,7 @@ output_one_dumb_line (void)
print_field (reference);
}
- fputs ("\n", stdout);
+ putchar ('\n');
}
/*------------------------------------------------------------------------.