X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fbasis%2Fdefinitions.h;h=8d022ab0f5a7a0c5d7e5a9404949b0712cf6164b;hb=d7e8a05960951d8ce67e36c587726a851e2f5165;hp=421df898e14ee8ec03070d1a090c1b1f1d9e8976;hpb=fa30e6adff1dea5d6b3903279ef024dd3bed043f;p=feisty_meow.git diff --git a/nucleus/library/basis/definitions.h b/nucleus/library/basis/definitions.h index 421df898..8d022ab0 100644 --- a/nucleus/library/basis/definitions.h +++ b/nucleus/library/basis/definitions.h @@ -28,8 +28,11 @@ namespace basis { // Constants... -//! The value representing a pointer to nothing, or nothing itself. -#define NIL 0 +//! The value representing a pointer to nothing. +#define NULL_POINTER 0 + +////! A null pointer with a type of (void *). +//#define NULL_VOID_POINTER (void *)NULL_POINTER //! A fundamental constant measuring the number of bits in a byte. #define BITS_PER_BYTE 8 @@ -46,21 +49,6 @@ namespace basis { //! A fairly important unit which is seldom defined... typedef unsigned char abyte; -/* ridiculous! all to shut microsoft up about ambiguous byte definitions, -which seems like a bug. -struct byte { - byte(unsigned char b = 0) : c_data(b) {} -// byte(char b) : c_data(b) {} - operator unsigned char() const { return c_data; } - operator char() const { return c_data; } - operator int() const { return c_data; } - operator unsigned int() const { return c_data; } - operator bool() const { return (bool)c_data; } - byte operator &(byte and_with) { return c_data & and_with; } - byte operator |(byte or_with) { return c_data & or_with; } - unsigned char c_data; -}; -*/ #if defined(UNICODE) && defined(__WIN32__) //! the flexichar type is always appropriate to hold data for win32 calls. @@ -183,6 +171,10 @@ public: // the returned object junk in almost all cases. // 4996 turns off warnings about deprecated functions, which are mostly // nonsense, since these are mainly the core posix functions. +#else +//hmmm: trying to fix complaints about size_t being '?'. +// typedef long long __int64; + //#define __SIZE_TYPE__ long unsigned int #endif // ms visual c++. //////////////