Menu

#23 cmt_keep-char and cmt_c2cpp mutilates the comment

open
nobody
None
5
2006-01-01
2006-01-01
Jeff Hansen
No

GC v1.140 generates incorrect output when cmt_keep-char
is used with cmt_c2cpp. If the protected comment is a
multi-line comment it will add // to all the following
lines until it reaches the next token. It also forgets
to close the comment.

The attached file shows the settings used, and sample
input and output.

At the end of the attached file is a code snippet from
the Indent_SplitCmtToIndent() function that shows my
solution.

Discussion

  • Jeff Hansen

    Jeff Hansen - 2006-01-01

    Example of malfunction and my solution

     
  • Jeff Hansen

    Jeff Hansen - 2006-01-01
    • summary: Using cmt_keep-char and cmt_c2cpp mutilates the comment --> cmt_keep-char and cmt_c2cpp mutilates the comment
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.