This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [gfortran] Fix gfortran include problem
- From: Steven Bosscher <stevenb at suse dot de>
- To: FX Coudert <fxcoudert at gmail dot com>
- Cc: Fortran List <fortran at gcc dot gnu dot org>,gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 16 Nov 2005 10:17:01 +0100 (CET)
- Subject: Re: [gfortran] Fix gfortran include problem
- Organization: SuSE Linux AG
- References: <34c61987513739a563bfe0f88268f038@gmail.com>
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
Â
Â
Â
Â