aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorGerd Moellmann2001-10-15 10:04:31 +0000
committerGerd Moellmann2001-10-15 10:04:31 +0000
commit7dfd439c45151c5c0d7045465a783b9310ffba69 (patch)
treeb96e3990e76766f14107337ca2fd2e20b99c66b7 /lib-src
parent56378db4a0c3efc8b442e42bd2cab56590374622 (diff)
downloademacs-7dfd439c45151c5c0d7045465a783b9310ffba69.tar.gz
emacs-7dfd439c45151c5c0d7045465a783b9310ffba69.zip
(read_c_string_or_comment): Don't drop a '*'
in a C doc comment.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/make-docfile.c8
1 files changed, 7 insertions, 1 deletions
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)
246 c = getc (infile); 246 c = getc (infile);
247 } 247 }
248 248
249 c = getc (infile); 249 if (c != EOF)
250 c = getc (infile);
250 251
251 if (comment) 252 if (comment)
252 { 253 {
@@ -255,6 +256,11 @@ read_c_string_or_comment (infile, printflag, comment)
255 c = getc (infile); 256 c = getc (infile);
256 break; 257 break;
257 } 258 }
259
260 if (printflag > 0)
261 putc ('*', outfile);
262 else if (printflag < 0)
263 *p++ = '*';
258 } 264 }
259 else 265 else
260 { 266 {