Re: doc scm_set_program_arguments

2007-01-17 Thread Neil Jerram
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

Re: doc scm_set_program_arguments

2007-01-15 Thread Kevin Ryde
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

Re: doc scm_set_program_arguments

2007-01-13 Thread Neil Jerram
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

doc scm_set_program_arguments

2007-01-13 Thread Kevin Ryde
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