[gfortran] Remove gfc_current_locus() and gfc_set_locus() (Followup to scanner rewrite)

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Mon May 17 14:07:00 GMT 2004


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

All this was done with sed. Compiled and tested with no regressions on
i686-pc-linux.

- Tobi

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch2_ChangeLog
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20040517/a6a30b82/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch2.gz
Type: application/gzip
Size: 10758 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20040517/a6a30b82/attachment.gz>


More information about the Fortran mailing list