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]

KandR-ification patch for fixincl.x


Reply-To: ddsinc09@ix.netcom.com


The following patch to fixincl.tpl will cause the
strings emitted into the fixincl.x file to be K and R
compliant.  It utilizes a new function in AutoGen,
so if you need to rebuild the fixinc generated files,
you will need AutoGen version 4.5.3:

  ftp://sourceware.cygnus.com/pub/egcs/infrastructure/autogen.tar.gz

N.B.:  this version _still_ does not have the reworked
formatting routines.  The portable configury is painful....:-(

Index: fixincl.tpl
===================================================================
RCS file: /cvs/egcs/egcs/gcc/fixinc/fixincl.tpl,v
retrieving revision 1.5
retrieving revision 1.5.4.2
diff -u -r1.5 -r1.5.4.2
--- fixincl.tpl	1999/04/12 07:11:18	1.5
+++ fixincl.tpl	1999/05/19 08:29:39	1.5.4.2
@@ -22,16 +22,14 @@
  *  Description [=_eval _index 1 + "#%3d -" _printf=] [=hackname _Cap=] fix
  */
 tSCC z[=hackname _cap=]Name[] =
-     [=hackname _cap _str=];
+     [=hackname _cap _krstr=];
 /*
  *  File name selection pattern
  */[=
 
   _IF files _exist=]
-tSCC z[=hackname _cap=]List[] =[=
-    _FOR files=]
-        "|" [=files _str=][=
-    /files=] "|";[=
+tSCC z[=hackname _cap=]List[] =
+  "[=_FOR files =]|[=files=][=/files=]|";[=
 
   _ELSE =]
 #define z[=hackname _cap=]List (char*)NULL[=
@@ -43,7 +41,7 @@
   _IF mach _exist=]
 tSCC* apz[=hackname _cap=]Machs[] = {[=
     _FOR mach =]
-        [=mach _str=],[=
+        [=mach _krstr=],[=
     /mach=]
         (const char*)NULL };[=
 
@@ -60,7 +58,7 @@
  */[=
     _FOR exesel =]
 tSCC z[=hackname _cap=]Select[=_eval _index=][] =
-       [=exesel _str=];[=
+       [=exesel _krstr=];[=
     /exesel =][=
 
   _ELIF select _exist=]
@@ -70,7 +68,7 @@
  */[=
     _FOR select =]
 tSCC z[=hackname _cap=]Select[=_eval _index=][] =
-       [=select _str=];[=
+       [=select _krstr=];[=
     /select =][=
   _ENDIF =][=
 
@@ -81,7 +79,7 @@
  */[=
     _FOR bypass =]
 tSCC z[=hackname _cap=]Bypass[=_eval _index=][] =
-       [=bypass _str=];[=
+       [=bypass _krstr=];[=
     /bypass =][=
   _ENDIF =][=
 
@@ -92,7 +90,7 @@
  */[=
     _FOR test =]
 tSCC z[=hackname _cap=]Test[=_eval _index=][] =
-       [=test _str=];[=
+       [=test _krstr=];[=
     /test =][=
   _ENDIF =][=
 
@@ -159,9 +157,9 @@
  */
 const char* apz[=hackname _cap=]Patch[] = {[=
     _IF   sed         _exist =] "sed"[=_FOR sed=],
-    "-e", [=sed _str=][=/sed=][=
+    "-e", [=sed _krstr=][=/sed=][=
     _ELIF shell       _exist =] "sh", "-c",
-    [=shell _str=][=
+    [=shell _krstr=][=
     _ENDIF=],
     (char*)NULL };
 


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