From aec039a4c18af5ed096b068cf6991d56eff28f34 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 7 Mar 2003 23:21:45 +0000 Subject: [PATCH] (output_one_tex_line, output_one_dumb_line): Use putchar, not fputs, to output a single character. --- src/ptx.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ptx.c b/src/ptx.c index 06ab361749..75c815bfcf 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 , 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'); } /*------------------------------------------------------------------------. -- 2.47.3