search for: seen_includes

Displaying 1 result from an estimated 1 matches for "seen_includes".

2016 Apr 12
0
[PATCH] Add internal documentation to C files.
...$path = "$srcdir/$input"; + + print OUTPUT ("=head2 F<$input>\n\n"); + + open INPUT, $path or die "$progname: $input: $!"; + + # A single special comment seen before any #includes can be used + # to outline the purpose of the source file. + my $seen_includes = 0; + my $lineno = 0; + + while (<INPUT>) { + chomp; + $lineno++; + $seen_includes = 1 if /^#include/; + + if (m{^/\*\*$}) { + # Found a special comment. Read the whole comment. + my @comment = (); + my $found_end = 0; +...