mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
teach mdb about nspr types r=sspitzer
This commit is contained in:
parent
e13cd59107
commit
f45fdae2eb
@ -23,15 +23,17 @@
|
||||
#ifndef _MDB_
|
||||
#define _MDB_ 1
|
||||
|
||||
#include "nsCore.h"
|
||||
|
||||
//3456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789
|
||||
|
||||
// { %%%%% begin scalar typedefs %%%%%
|
||||
typedef unsigned char mdb_u1; // make sure this is one byte
|
||||
typedef unsigned short mdb_u2; // make sure this is two bytes
|
||||
typedef short mdb_i2; // make sure this is two bytes
|
||||
typedef unsigned long mdb_u4; // make sure this is four bytes
|
||||
typedef long mdb_i4; // make sure this is four bytes
|
||||
typedef long mdb_ip; // make sure sizeof(mdb_ip) == sizeof(void*)
|
||||
typedef PRUint32 mdb_u4; // make sure this is four bytes
|
||||
typedef PRInt32 mdb_i4; // make sure this is four bytes
|
||||
typedef long mdb_ip; // make sure sizeof(mdb_ip) == sizeof(void*)
|
||||
|
||||
typedef mdb_u1 mdb_bool; // unsigned byte with zero=false, nonzero=true
|
||||
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include "mdb.h"
|
||||
#endif
|
||||
|
||||
#include "nsCore.h"
|
||||
//3456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789
|
||||
|
||||
|
||||
@ -65,8 +66,8 @@
|
||||
typedef unsigned char mork_u1; // make sure this is one byte
|
||||
typedef unsigned short mork_u2; // make sure this is two bytes
|
||||
typedef short mork_i2; // make sure this is two bytes
|
||||
typedef unsigned long mork_u4; // make sure this is four bytes
|
||||
typedef long mork_i4; // make sure this is four bytes
|
||||
typedef PRUint32 mork_u4; // make sure this is four bytes
|
||||
typedef PRInt32 mork_i4; // make sure this is four bytes
|
||||
typedef long mork_ip; // make sure sizeof(mork_ip) == sizeof(void*)
|
||||
|
||||
typedef mork_u1 mork_ch; // small byte-sized character (never wide)
|
||||
|
Loading…
Reference in New Issue
Block a user