This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] Remove gfc_current_locus() and gfc_set_locus() (Followup to scanner rewrite)
- From: Paul Brook <paul at codesourcery dot com>
- To: fortran at gcc dot gnu dot org
- Cc: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>,patch <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 22 May 2004 15:24:33 +0100
- Subject: Re: [gfortran] Remove gfc_current_locus() and gfc_set_locus() (Followup to scanner rewrite)
- Organization: CodeSourcery
- References: <40A8C6EB.6010504@physik.uni-muenchen.de>
On Monday 17 May 2004 15:06, Tobias Schlüter wrote:
> This mechanical patch removes gfc_current_locus() and gfc_set_locus, and
> replaces their uses by the global variable gfc_current_locus, formerly
> named gfc_current_locus1.
>
> This meant performing three replacements:
> 1. x = *gfc_current_locus () -> x = gfc_current_locus
> 2. x = gfc_current_locus () -> x = &gfc_current_locus
> 3. gfc_set_locus (x) -> gfc_current_locus = *x
Ok.
Paul