This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH to remove fileline typedef
- From: Per Bothner <per at bothner dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 30 Jun 2004 11:36:52 -0700
- Subject: PATCH to remove fileline typedef
I check this patch into mainline.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
2004-06-30 Per Bothner <per@bothner.com>
* include/line-map.h (fileline): Remove old typedef.
* internal.h (struct cpp_reader): Use source_location typedef instead.
Index: internal.h
===================================================================
RCS file: /cvs/gcc/gcc/libcpp/internal.h,v
retrieving revision 1.3
diff -u -p -r1.3 internal.h
--- internal.h 9 Jun 2004 20:10:13 -0000 1.3
+++ internal.h 30 Jun 2004 18:31:46 -0000
@@ -308,7 +308,7 @@ struct cpp_reader
struct line_maps *line_table;
/* The line of the '#' of the current directive. */
- fileline directive_line;
+ source_location directive_line;
/* Memory buffers. */
_cpp_buff *a_buff; /* Aligned permanent storage. */
@@ -421,7 +421,7 @@ struct cpp_reader
uchar *base;
uchar *limit;
uchar *cur;
- fileline first_line;
+ source_location first_line;
} out;
/* Used for buffer overlays by cpptrad.c. */
Index: include/line-map.h
===================================================================
RCS file: /cvs/gcc/gcc/libcpp/include/line-map.h,v
retrieving revision 1.1
diff -u -p -r1.1 line-map.h
--- include/line-map.h 24 May 2004 10:50:45 -0000 1.1
+++ include/line-map.h 30 Jun 2004 18:31:46 -0000
@@ -34,7 +34,6 @@ enum lc_reason {LC_ENTER = 0, LC_LEAVE,
/* Long-term, we want to use this to replace struct location_s (in input.h),
and effectively typedef source_location location_t. */
typedef unsigned int source_location;
-typedef source_location fileline; /* deprecated name */
/* Physical source file TO_FILE at line TO_LINE at column 0 is represented
by the logical START_LOCATION. TO_LINE+L at column C is represented by