Re: [Plib-devel] PATCH: 64bit swap functions (updated)
Brought to you by:
sjbaker
From: Julian F. <jul...@bt...> - 2003-08-11 02:23:11
|
Steve Baker wrote: > Julian Foad wrote: > >> On a system where "int" is 64 bits, "%d", "%x", etc. On a system >> where "long" is 64 bits, "%ld", "%lx", etc. On other systems, some >> non-standard, system-specific format code. >> >> The closest thing to a standard is the "C99" (1999 revision of >> ANSI/ISO C) header files <stdint.h> and <inttypes.h> which are not >> (yet) part of standard C++ ... > > So we won't be using them in PLIB - OK? Hey, steady on! I'm not going to force anyone to use them in PLIB, I'm just trying to offer a useful idea. I don't know whether you considered my proposal or not. You snipped the relevant part. Something that is not standard C++ can still be used in PLIB in appropriate circumstances: for example, <machine/joystick.h> is used in src/js/jsBSD.cxx. My point was that, as a part of the implementation of your own set of size-specific types and constants, it could be worth using those headers when they are available so that you only need your own platform-specific logic on the OTHER platforms, not on ALL platforms. - Julian |