(read_c_string_or_comment): Don't drop a '*'
authorGerd Moellmann <gerd@gnu.org>
Mon, 15 Oct 2001 10:04:31 +0000 (10:04 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 15 Oct 2001 10:04:31 +0000 (10:04 +0000)
in a C doc comment.

lib-src/make-docfile.c

index 9796db4..fb371db 100644 (file)
@@ -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
        {