Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!bionet!agate!tornado.Berkeley.EDU!dankg From: dankg@tornado.Berkeley.EDU (Dan KoGai) Newsgroups: comp.lang.c Subject: Re: wanted: converter for fcn declarators Summary: Try gcc if available Keywords: Ansi, prototyping Message-ID: <1990Jun6.122543.6713@agate.berkeley.edu> Date: 6 Jun 90 12:25:43 GMT References: <2162@nems.dt.navy.mil> Sender: usenet@agate.berkeley.edu (USENET Administrator;;;;ZU44) Reply-To: dankg@tornado.Berkeley.EDU (Dan KoGai) Organization: ucb Lines: 26 In article <2162@nems.dt.navy.mil> science@nems.dt.navy.mil (Mark Zimmermann) writes: >I am writing C using the newer ANSI-style function declarations (see >examples below) and this is great for my Macintosh and PC C compilers -- >but the generic UNIX 'cc' available to me on Macintosh under A/UX, on >Sun Sparcstation, and on VAX under Ultrix do NOT understand this style, >alas. Could somebody help me find or develop a quick program to convert >from new ANSI-prototype-style declarators to the old way? The easiest and most productive solution is get a copy of gcc--gcc is totally ANSI compliant and compiles old-style C as well. FSF is boycotting Apple so I'm not sure about A/UX (But there was emacs so it may be available) but for both Sparc and VAX, gcc is available. In my class assignments, we all use Ansi C thus gcc is the only compiler. None of my class account would compile on local cc. And gcc is better when compiling Xwindow application--it drove Apollo Domain's cc nuts-- is usually written in Ansi style (or so my cpp said--maybe #ifdefs have some problems but that's rather old cc's fault). ---------------- ____ __ __ + Dan The "I love both GNU and Mac" Man ||__||__| + E-mail: dankg@ocf.berkeley.edu ____| ______ + Voice: +1 415-549-6111 | |__|__| + USnail: 1730 Laloma Berkeley, CA 94709 U.S.A |___ |__|__| + |____|____ + "What's the biggest U.S. export to Japan?" \_| | + "Bullshit. It makes the best fertilizer for their rice"