🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5736

New cpp predefines for POSIX/ANSI C

#5736
From: Jim Bigelow
Date: Wed, 22 Feb 1989 18:59
44 lines
1658 bytes
I'm looking for comments and consensus of a suggestion for POSIX and
ANSI C conforming equivalents of cpp predefines.  The table below shows
the existing redefined cpp symbols and POSIX/ANSI equivalents with any
discussion.

	Existing 	POSIX/ANSI C 		Discussion
      ------------------------------------------------------------------
	unix		__unix		I see this symbol as being
                                        used to distinguish between
                                        code for different operating
                                        systems.  As such, it would be
                                        very useful when porting if
                                        all implementations agree on a
                                        common POSIX/ANSI C equivalent.     
	mert		__mert
	ibm		__ibm
	gcos		__gcos
	tss		__tss
	etc.

	interdata	__interdata
	pdp11		__pdp11
	u370		__u370
	u3b		__u3b
	u3b5		__u3b5
	vax		__vax
	etc.

	RES		_RES
	RT		_RT
	TS		_TS
	PWB		_PWB
	etc.

Since lint(1) defines the preprocessor symbol lint when it runs cpp, I
don't think that lint should be transformed to __lint --  any comments?

Jim Bigelow
Colorado Language Lab, M.S. 96
Hewlett Packard
3404 E. Harmony Rd.
Ft. Collins, CO  80525
303-229-6251
... !hplabs!hpfcrt!jimb
Technical Details
Message-ID: <12040014@hpfcdc.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcdc!jimb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcdc!jimb
From: jimb@hpfcdc.HP.COM (Jim Bigelow)
Newsgroups: comp.std.c
Subject: New cpp predefines for POSIX/ANSI C
Message-ID: <12040014@hpfcdc.HP.COM>
Date: 22 Feb 89 18:59:40 GMT
Organization: HP Ft. Collins, Co.
Lines: 44