Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/express/numeric_types.h

Go to the documentation of this file.
00001 // Filename: numeric_types.h
00002 // Created by:  drose (06Jun00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef NUMERIC_TYPES_H
00020 #define NUMERIC_TYPES_H
00021 
00022 // This header file defines a number of typedefs that correspond to
00023 // the various numeric types for unsigned and signed numbers of
00024 // various widths.
00025 
00026 // At the present, we use the logic in NSPR to determine this for us.
00027 // Later (especially for non-NSPR platforms) we'll have to do the work
00028 // ourselves.
00029 
00030 
00031 #ifdef HAVE_NSPR
00032 
00033 #include <prtypes.h>
00034 
00035 typedef PRInt8 PN_int8;
00036 typedef PRInt16 PN_int16;
00037 typedef PRInt32 PN_int32;
00038 typedef PRInt64 PN_int64;
00039 
00040 typedef PRUint8 PN_uint8;
00041 typedef PRUint16 PN_uint16;
00042 typedef PRUint32 PN_uint32;
00043 typedef PRUint64 PN_uint64;
00044 
00045 typedef PRFloat64 PN_float64;
00046 
00047 #else // HAVE_NSPR
00048 
00049 // Without NSPR, and without any other information, we need some
00050 // fallback.  For now, we'll just assume a typical 32-bit environment.
00051 
00052 typedef signed char PN_int8;
00053 typedef short PN_int16;
00054 typedef long PN_int32;
00055 
00056 #ifdef WIN32_VC
00057 typedef __int64 PN_int64;
00058 typedef unsigned __int64 PN_uint64;
00059 #else
00060 typedef long long PN_int64;
00061 typedef unsigned long long PN_uint64;
00062 #endif
00063 
00064 typedef unsigned char PN_uint8;
00065 typedef unsigned short PN_uint16;
00066 typedef unsigned long PN_uint32;
00067 
00068 typedef double PN_float64;
00069 
00070 #endif  // HAVE_NSPR
00071 
00072 #endif
00073 
00074 
00075 
00076 

Generated on Fri May 2 00:38:27 2003 for Panda by doxygen1.3