For those who've forgotten, it was Mitchell Charity who so graciously
contributed the regexp parser. You might want to search the archives for
his email address and ask him to have a look. He's probably the right
guru for the job.

Cheers, Brian

On 26/05/04 16:18 +1000, Sisyphus wrote:
> Hi,
> 
> ParseRegExp can't correctly handle the following script on both Linux 
> (Mandrake-9.1) and Windows (Win2000).
> -------------------------------------
> use Inline (C => Config =>
>             BUILD_NOISY => 1,
>             CLEAN_AFTER_BUILD => 0,
>             USING => "ParseRegExp",
>             );
> 
> use Inline C => <<'EOC';
> 
> SV * sum_it(SV * a, SV * b) {
>      printf("Adding\n");
>      return newSViv(SvIV(a) + SvIV(b));
> }
> 
> SV * times_it(SV * a, SV * b) {
>      printf("Multiplying\n");
>      return newSViv(SvIV(a) * SvIV(b));
> }
> 
> EOC
> 
> print sum_it(2, 7), "\n", times_it(3, 6), "\n";
> -------------------------------------
> 
> The 'times_it' argument list never makes it into the XS file, and, 
> although compilation succeeds, I get the following runtime error:
> 
> Can't locate auto/main/times_it.al in @INC (@INC contains: 
> /home/rob/pscrpt/inline/_Inline/lib 
> /usr/local/lib/perl5/5.8.3/i686-linux /usr/local/lib/perl5/5.8.3 
> /usr/local/lib/perl5/site_perl/5.8.3/i686-linux 
> /usr/local/lib/perl5/site_perl/5.8.3 
> /usr/local/lib/perl5/site_perl/5.8.0/i686-linux 
> /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl .) 
> at break.pl line 21
> 
> If I remove (or comment out) either one (or both) of the 'printf()' 
> statements, then the script runs perfectly.
> 
> Hopefully we have a regex guru here who can tell us why this happens, 
> and how to fix it.
> 
> My scripts tend to include quite a few 'printf()' statements when it 
> comes to debugging :-)
> 
> Cheers,
> Rob
> 
> -- 
> Any emails containing attachments will be deleted from my ISP's mail 
> server before I even get to see them. If you wish to email me an 
> attachment, please provide advance warning so that I can make the 
> necessary arrangements.

Reply via email to