summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>1998-12-16 05:46:32 +0000
committerwtc%netscape.com <devnull@localhost>1998-12-16 05:46:32 +0000
commit21c99ee31398f3a8d892b7a7da2c2a2ef2fd137a (patch)
tree25dce004515f2d9b708425598ade713180329566
parent7bf905c3c71bae31d477e97f7c7f6eab4ba20d60 (diff)
downloadnspr-hg-21c99ee31398f3a8d892b7a7da2c2a2ef2fd137a.tar.gz
Include protypes.h only if NO_NSPR_10_SUPPORT is not defined.
Also, always define the data types PRWord and PRUword but warn people not to use these two undocumented types in new code.
-rw-r--r--pr/include/prtypes.h26
1 files changed, 17 insertions, 9 deletions
diff --git a/pr/include/prtypes.h b/pr/include/prtypes.h
index 68f68aeb..7a1a9ffc 100644
--- a/pr/include/prtypes.h
+++ b/pr/include/prtypes.h
@@ -338,6 +338,20 @@ typedef PRUint8 PRPackedBool;
*/
typedef enum { PR_FAILURE = -1, PR_SUCCESS = 0 } PRStatus;
+/*
+** WARNING: The undocumented data types PRWord and PRUword are
+** only used in the garbage collection and arena code. Do not
+** use PRWord and PRUword in new code.
+**
+** A PRWord is an integer that is the same size as a void*.
+** It implements the notion of a "word" in the Java Virtual
+** Machine. (See Sec. 3.4 "Words", The Java Virtual Machine
+** Specification, Addison-Wesley, September 1996.
+** http://java.sun.com/docs/books/vmspec/index.html.)
+*/
+typedef long PRWord;
+typedef unsigned long PRUword;
+
#if defined(NO_NSPR_10_SUPPORT)
#else
/********* ???????????????? FIX ME ??????????????????????????? *****/
@@ -374,21 +388,15 @@ typedef enum { PR_FAILURE = -1, PR_SUCCESS = 0 } PRStatus;
#define NSPR_END_EXTERN_C
#endif
-/*
-** A PRWord is an integer that is the same size as a void*
-*/
-typedef long PRWord;
-typedef unsigned long PRUword;
-
-/********* ????????????? End Fix me ?????????????????????????????? *****/
-#endif /* NO_NSPR_10_SUPPORT */
-
#ifdef XP_MAC
#include "protypes.h"
#else
#include "obsolete/protypes.h"
#endif
+/********* ????????????? End Fix me ?????????????????????????????? *****/
+#endif /* NO_NSPR_10_SUPPORT */
+
PR_END_EXTERN_C
#endif /* prtypes_h___ */