Kevin Ryde <[EMAIL PROTECTED]> writes:
> Neil Jerram <[EMAIL PROTECTED]> writes:
>>
>> I would have thought that "argc-i" would be more reliable than "-1"
>> here.
>
> I guess it's clearer to use one method or the other (not a mixture).
> I changed it to below (with set-program-arguments added too
Neil Jerram <[EMAIL PROTECTED]> writes:
>
> Is argv normally NULL-terminated?
Yes, if it's from main().
> I would have thought that "argc-i" would be more reliable than "-1"
> here.
I guess it's clearer to use one method or the other (not a mixture).
I changed it to below (with set-program-argum
Kevin Ryde <[EMAIL PROTECTED]> writes:
> I wrote a few words for scm_set_program_arguments, which is mentioned
> under scm_boot_guile but not otherwise described.
Looks good, just one comment:
> scm_set_program_arguments (-1, argv+i, progname);
Is argv normally NULL-terminated? I w
I wrote a few words for scm_set_program_arguments, which is mentioned
under scm_boot_guile but not otherwise described.
-- C Function: void scm_set_program_arguments (int argc, char **argv,
char *first)
Set the list of command line arguments to be returned by
`program-argume