🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51056

gcc-2.4.5 -fdollars-in-identifiers ?

#51056
From: Norbert Kiesel
Date: Fri, 25 Jun 1993 12:40
36 lines
1829 bytes
Hello,

I have to call external functions whose names contain '$' (i.e.
Modula-2 functions). I know that this can be done by using the
-traditional option. However, i *only* want dollars but nothing else
from -traditional. Wouldn't it be possible to allow the already
existent -fdollars-in-identifiers option also for C (and not only for
C++)? -ansi should of course reset this option.

The required changes are in c-decl.c and toplev.c and really minimal:
--- c-decl.c~   Sun Jun 20 00:43:09 1993
+++ c-decl.c    Fri Jun 25 13:55:34 1993
@@ -534,6 +534,13 @@
       dollars_in_ident = 1;
 #endif
     }
+  else if (!strcmp (p, "-dollars-in-identifiers")
+          || !strcmp (p, "-fdollars-in-identifiers"))
+    {
+#if DOLLARS_IN_IDENTIFIERS > 0
+      dollars_in_ident = 1;
+#endif
+    }
   else if (!strcmp (p, "-fnotraditional") || !strcmp (p, "-fno-traditional"))
     {
       flag_traditional = 0;
--- toplev.c~   Sun Jun 20 00:34:12 1993
+++ toplev.c    Fri Jun 25 14:28:33 1993
@@ -521,6 +521,7 @@
 
 char *lang_options[] =
 {
+  "-fdollars-in-identifiers",
   "-ftraditional",
   "-traditional",
   "-fnotraditional",
Technical Details
Message-ID: <9306251230.AA11623@rwthi3.informatik.rwth-aachen.de>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!mozart.informatik.rwth-aachen.de!norbert

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,124dc8ebd91ee7fe,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-06-25 05:45:32 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!mozart.informatik.rwth-aachen.de!norbert
From: norbert@mozart.informatik.rwth-aachen.de (Norbert Kiesel)
Newsgroups: gnu.gcc.help
Subject: gcc-2.4.5 -fdollars-in-identifiers ?
Date: 25 Jun 1993 08:40:30 -0400
Organization: GNUs Not Usenet
Lines: 36
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Message-ID: <9306251230.AA11623@rwthi3.informatik.rwth-aachen.de>