Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!uw-beaver!zephyr.ens.tek.com!tektronix!sequent!mntgfx!lisch From: lisch@mentor.com (Ray Lischner) Newsgroups: comp.lang.perl Subject: implement &unix, etc., in usersubs to help C headers Message-ID: <1990Sep4.211951.4777@mentor.com> Date: 4 Sep 90 21:19:51 GMT Distribution: comp Organization: Mentor Graphics Corp., Beaverton, OR Lines: 20 After converting lots of .h files to .ph, I noticed that there are a lot of conditionals. Apollo, for example, defines lots of system-specific tidbits, so h2ph produces lots of lines like the following: if (defined &apollo) { ... } (Even worse is that _ISP__M68K and _ISP__A88K are both defined by Apollo's C compiler, but the value of one is "1" and the value of the other is "0", depending on the host CPU type.) This means I needed to implement &apollo in my usersubs so I could get the right definitions. Some of the standard headers check for other names, such as "defined &vax". I think it would be useful for Configure to produce a usersubs file to implement some of these standard names, such as "unix", "sun", "vax", "sparc", "apollo", etc. -- Ray Lischner UUCP: {uunet,apollo,decwrl}!mntgfx!lisch