Branch: refs/heads/yves/handle_weird_preprocessor_stmt_in_HeaderParser_pm
  Home:   https://github.com/Perl/perl5
  Commit: 863a7358894c8378225c94fdccb8829df49b0196
      
https://github.com/Perl/perl5/commit/863a7358894c8378225c94fdccb8829df49b0196
  Author: Yves Orton <demer...@gmail.com>
  Date:   2025-02-12 (Wed, 12 Feb 2025)

  Changed paths:
    M regen/HeaderParser.pm
    M t/porting/header_parser.t

  Log Message:
  -----------
  regen/HeaderParser.pm - deal with odd C preprocessor construct gracefully

Karl wanted to use HeaderParser for other things than it was intended,
for instance parsing scope.h, but scope.h contains a C preprocessor like
line that looks like this:

   # /* a comment */

which while a bit odd looking is actually a legal "null directive" so we
should support it.

See: https://en.cppreference.com/w/c/preprocessor
And: https://stackoverflow.com/questions/35207515

Thanks to mauke for finding these links.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to