Probably the biggest difficulty in using Inline is dealing with the
debugging files when your code doesn't compile. I would like to propose
some changes to Inline that would make debugging easier.
My idea is that when a compile error occurs, Inline would present the
user with a menu of files to inspect. Something like:
-----------------------------------------------------------------------
A problem was encountered while attempting to compile and install
your Inline C code. The command that failed was:
make > out.make 2>&1
The build directory was:
/home/ingy/.Inline/build/Foo/
1)Makefile.PL 2)Makefile 3)Foo.c 4)Foo.xs
5)out.perl_Makefile.PL 6)out.make 7)INLINE.h
Select a file number to browse. Press enter to quit.
_______________________________________________________________________
When you select a file number, the file is displayed in a pager like
'less'. The pager would be configurable using autodetection or
PERL_INLINE_PAGER environment variable.
Debugging would not be enabled by default. To enable you would:
1) Set the PERL_INLINE_DEBUG env variable to 1.
2) Put 'use Inline DEBUG;' at the top of your program.
3) Say 'perl -MInline=DEBUG script.pl' for a one time usage.
--
perl -le 'use Inline C=>q{SV*JAxH(char*x){return newSVpvf
("Just Another %s Hacker",x);}};print JAxH+Perl'