This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
/* |
| 2 |
* nscore.h |
| 3 |
* Copyright (C) 2009 Adrian Perez <aperez@igalia.com> |
| 4 |
* |
| 5 |
* Distributed under terms of the MIT license. |
| 6 |
*/ |
| 7 |
|
| 8 |
#ifndef __nscore_h__ |
| 9 |
#define __nscore_h__ |
| 10 |
|
| 11 |
#include <stdint.h> |
| 12 |
|
| 13 |
/* |
| 14 |
* This is a handbag of definitions copied out from: |
| 15 |
* xpcom/base/nscore.h |
| 16 |
* xpcom/base/nsError.h |
| 17 |
* nsprpub/pr/include/prtypes.h |
| 18 |
*/ |
| 19 |
|
| 20 |
typedef bool PRBool; |
| 21 |
typedef uint8_t PRUint8; |
| 22 |
typedef int16_t PRInt16; |
| 23 |
typedef int32_t PRInt32; |
| 24 |
typedef uint16_t PRUint16; |
| 25 |
typedef uint32_t PRUint32; |
| 26 |
typedef PRUint32 nsresult; |
| 27 |
|
| 28 |
#define PR_FALSE false |
| 29 |
#define PR_TRUE true |
| 30 |
#define nsnull 0 |
| 31 |
#define NS_OK 0 |
| 32 |
#define NS_ERROR_OUT_OF_MEMORY ((nsresult) 0x8007000eL) |
| 33 |
|
| 34 |
#endif /* !__nscore_h__ */ |