On Thursday 03 November 2005 16:34, Marco Pantaleoni wrote:
>
> If you like, I'll add a command line switch to jal to invoke automatically
> the preprocessor, thus avoiding the two separate commands shown above.
I've added that switch. Now if you run jal with the "-P" switch, it will
invoke cpp for you.
Compiling the example of the previous message would become:
$ jal -P silly-example.jal
(jal will call cpp handling automatically the temporary file creation and
removal).
You can also specify a different "cpp" passing a command string to -P, as in:
$ jal -P/usr/local/bin/cpp silly-example.jal
you can pass complex commands quoting with simple or double quotes the
command:
$ jal -P'/usr/local/bin/cpp -funny' silly-example.jal
I can't check if CVS has been updated recently (it goes in time-out right
now), so I'm providing a patch against the CVS version without my previous
patch. In other words, this patch supersedes the previous one.
Cheers,
Marco
--
Marco Pantaleoni
elastiC language developer
http://www.elasticworld.org