This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, obvious] Minor cleanups for gengtype.?


Hi,

These were just causing annoying noise me in my diffs, so I've
commited the following patch as obvious.

Gr.
Steven

	* gengtype.c (header_file): Make it static.
	(write_types_process_field, write_enum_defn): Minor whitespace fixes.
	* gengtype.h (header_file): No longer extern.

Index: gengtype.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gengtype.c,v
retrieving revision 1.43
diff -c -3 -p -r1.43 gengtype.c
*** gengtype.c	16 Jan 2004 01:44:06 -0000	1.43
--- gengtype.c	19 Jan 2004 08:33:58 -0000
*************** static outf_p output_files;
*** 980,986 ****
  
  /* The output header file that is included into pretty much every
     source file.  */
! outf_p header_file;
  
  /* Number of files specified in gtfiles.  */
  #define NUM_GT_FILES (ARRAY_SIZE (all_files) - 1)
--- 980,986 ----
  
  /* The output header file that is included into pretty much every
     source file.  */
! static outf_p header_file;
  
  /* Number of files specified in gtfiles.  */
  #define NUM_GT_FILES (ARRAY_SIZE (all_files) - 1)
*************** write_types_process_field (type_p f, con
*** 1911,1918 ****
  */
  
  static void
! write_func_for_structure  (type_p orig_s, type_p s, type_p *param,
! 			   const struct write_types_data *wtd)
  {
    const char *fn = s->u.s.line.file;
    int i;
--- 1911,1918 ----
  */
  
  static void
! write_func_for_structure (type_p orig_s, type_p s, type_p *param,
! 			  const struct write_types_data *wtd)
  {
    const char *fn = s->u.s.line.file;
    int i;
*************** write_local (type_p structures, type_p p
*** 2306,2312 ****
  /* Write out the 'enum' definition for gt_types_enum.  */
  
  static void
! write_enum_defn  (type_p structures, type_p param_structs)
  {
    type_p s;
  
--- 2306,2312 ----
  /* Write out the 'enum' definition for gt_types_enum.  */
  
  static void
! write_enum_defn (type_p structures, type_p param_structs)
  {
    type_p s;
  
Index: gengtype.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gengtype.h,v
retrieving revision 1.7
diff -c -3 -p -r1.7 gengtype.h
*** gengtype.h	1 Jun 2003 15:59:09 -0000	1.7
--- gengtype.h	19 Jan 2004 08:33:58 -0000
*************** struct outf 
*** 156,165 ****
  
  typedef struct outf * outf_p;
  
- /* The output header file that is included into pretty much every
-    source file.  */
- extern outf_p header_file;
- 
  /* An output file, suitable for definitions, that can see declarations
     made in INPUT_FILE and is linked into every language that uses
     INPUT_FILE.  */
--- 156,161 ----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]