[M3commit] CVS Update: cm3
Jay Krell
jkrell at elego.de
Thu Dec 30 14:35:02 CET 2010
CVSROOT: /usr/cvs
Changes by: jkrell at birch. 10/12/30 14:35:02
Modified files:
cm3/m3-libs/m3core/src/runtime/common/: Compiler.tmpl
Log message:
remove Compiler.ThisPlatform
yet another piece of porting work gone
There are no uses of this, and any uses would
be somewhat dubious, and easy to replace with a compile
time check of TARGET in Quake code.
See this code for how:
jbook2:src jay$ grep OSF */*/*e
os/POSIX/m3makefile: "OSF" : "Digital Unix",
os/POSIX/m3makefile:if equal(TARGET, "ALPHA_OSF") or equal(TARGET, "DS3100")
os/POSIX/m3makefile: MakeInterfaceForConstant("SocketPosix_IsUltrixOrOSF", "TRUE")
os/POSIX/m3makefile: MakeInterfaceForConstant("SocketPosix_IsUltrixOrOSF", "FALSE")
jbook2:src jay$ pwd
/dev2/cm3/m3-libs/libm3/src
(recall, this use of Compiler.ThisPlatform in libm3 was a constraint
on bootstrapping flexibility for a long time, and so pointless!)
Or, more generally, a mapping of platform to platform-specific source,
as occurs in a few places esp. in m3core. Often "narrowing" through word
size, or endian, or Linux vs. FreeBSD etc. instead of complete target tuple.
More information about the M3commit
mailing list