mirror of
https://github.com/Perl/perl5.git
synced 2026-01-26 08:38:23 +00:00
GH #24016 ParseXS / xsubpp allowed .xs files to contain only C code; i.e. no XS code. A warning was issued about about a missing MODULE line, but the C contents of the file was emitted as-is. My recent refactoring broke this - it was now generating a C code file with zero lines. This was because ParseXS now splits the parsing and code-emitting into two separate phases, and this code during parsing: warn "Didn't find a 'MODULE ... PACKAGE ... PREFIX' line\n"; exit 0; # Not a fatal error for the caller process was now exiting before any lines had been emitted. The fix is to not suddenly exit, but instead continue with pared-down parsing and code emitting.