Moved nsresult from nsISupports.h to nsError.h (so that it's defined for C files).

This commit is contained in:
warren%netscape.com 1998-08-29 02:21:49 +00:00
parent 2fe3a86224
commit 7a294dae72
2 changed files with 8 additions and 6 deletions

View File

@ -19,6 +19,12 @@
#ifndef nsError_h
#define nsError_h
/**
* Generic result data type
*/
typedef PRUint32 nsresult;
/*
* To add error code to your module, you need to do the following:
*
@ -47,6 +53,8 @@
#define NS_ERROR_MODULE_GFX 3
#define NS_ERROR_MODULE_WIDGET 4
#define NS_ERROR_MODULE_CALENDAR 5
#define NS_ERROR_MODULE_NETWORK 6
#define NS_ERROR_MODULE_PLUGINS 7
/**
* @name Standard Error Handling Macros

View File

@ -58,12 +58,6 @@ typedef nsID nsIID;
{ 0x00000000, 0x0000, 0x0000, \
{0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46} }
/**
* Generic result data type
*/
typedef PRUint32 nsresult;
/**
* Reference count values
*/