[gfortran] Fix gfortran include problem
Steven Bosscher
stevenb@suse.de
Wed Nov 16 09:17:00 GMT 2005
On Nov 16, 2005 10:08 AM, FX Coudert <fxcoudert@gmail.com> wrote:
> + i = strlen(gfc_source_file);
> + while (i > 0 && gfc_source_file[i] != '/')
> + i--;
> + if (i != 0)
You shouldn't look for '/'. There is a separate #define for the
directory separator character, iirc it's in system.h. I don't recall the
name just now, sorry :-/
> -gfc_open_included_file (const char *name)
> +gfc_open_included_file (const char *name, bool include_cwd)
Please add comment for this new function argument.
Gr.
Steven
More information about the Fortran
mailing list