From: Gerd Moellmann Date: Mon, 15 Oct 2001 10:04:31 +0000 (+0000) Subject: (read_c_string_or_comment): Don't drop a '*' X-Git-Tag: ttn-vms-21-2-B4~19428 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7dfd439c45151c5c0d7045465a783b9310ffba69;p=emacs.git (read_c_string_or_comment): Don't drop a '*' in a C doc comment. --- 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 {