teach mdb about nspr types r=sspitzer

This commit is contained in:
bienvenu%netscape.com 2000-04-14 03:03:25 +00:00
Родитель e13cd59107
Коммит f45fdae2eb
2 изменённых файлов: 8 добавлений и 5 удалений

Просмотреть файл

@ -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)