From 7dfd439c45151c5c0d7045465a783b9310ffba69 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 15 Oct 2001 10:04:31 +0000 Subject: [PATCH] (read_c_string_or_comment): Don't drop a '*' in a C doc comment. --- lib-src/make-docfile.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index 9796db4ede0..fb371db710f 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c @@ -246,7 +246,8 @@ read_c_string_or_comment (infile, printflag, comment) c = getc (infile); } - c = getc (infile); + if (c != EOF) + c = getc (infile); if (comment) { @@ -255,6 +256,11 @@ read_c_string_or_comment (infile, printflag, comment) c = getc (infile); break; } + + if (printflag > 0) + putc ('*', outfile); + else if (printflag < 0) + *p++ = '*'; } else { -- 2.39.2