summaryrefslogtreecommitdiff
path: root/lib-src/make-docfile.c
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-10-15 10:04:31 +0000
committerGerd Moellmann <gerd@gnu.org>2001-10-15 10:04:31 +0000
commit7046213f664d9b35898c30dacf57019a739aef5c (patch)
tree97fc1c5e249f44854fdcb5cc61cc984920aff9f7 /lib-src/make-docfile.c
parent0a5ef18af44a1f22609697e5b5f1f20e424afcba (diff)
downloademacs-7046213f664d9b35898c30dacf57019a739aef5c.tar.gz
(read_c_string_or_comment): Don't drop a '*'
in a C doc comment.
Diffstat (limited to 'lib-src/make-docfile.c')
-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)
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
{