Bugzilla bug 106386: fixed the spelling errors in NSPR's public header
authorwchang0222%aol.com
Tue, 23 Nov 2004 00:54:05 +0000
changeset 3220 b9a0a689ae93938933818f37349f60091c96800b
parent 3219 6317fcbff5e2a36fb99e57aa6ef4a929289b0926
child 3222 342da63e7c584dd0de9aed605897dbda87566b18
push idunknown
push userunknown
push dateunknown
bugs106386
Bugzilla bug 106386: fixed the spelling errors in NSPR's public header files. This is a portion of attachment 106386, which was contributed by timeless@bemail.org. r=wtc. Modified Files: prolock.h prtypes.h plresolv.h plstr.h prgc.h
lib/libc/include/plresolv.h
lib/libc/include/plstr.h
lib/msgc/include/prgc.h
pr/include/prolock.h
pr/include/prtypes.h
--- a/lib/libc/include/plresolv.h
+++ b/lib/libc/include/plresolv.h
@@ -61,17 +61,17 @@ NSPR_BEGIN_EXTERN_C
 /* Error return codes */
 #define PL_RESOLVE_OK            0
 #define PL_RESOLVE_EWINIT        1           /* Failed to initialize window */
 #define PL_RESOLVE_EMAKE         2           /* Failed to create request */
 #define PL_RESOLVE_ELAUNCH       3           /* Error launching Async request */
 #define PL_RESOLVE_ETIMEDOUT     4           /* Request timed-out */
 #define PL_RESOLVE_EINVAL        5           /* Invalid argument */
 #define PL_RESOLVE_EOVERFLOW     6           /* Buffer Overflow */
-#define PL_RESOLVE_EUNKNOWN      7           /* berzerk error */
+#define PL_RESOLVE_EUNKNOWN      7           /* berserk error */
 
 /* ----------- Function Prototypes ----------------*/
 
 PR_EXTERN(PRStatus) PL_ResolveName(
     const char *name, unsigned char *buf,
     PRIntn bufsize, PRIntervalTime timeout,
     PRHostEnt *hostentry, PRIntervalTime *ttl);
 
--- a/lib/libc/include/plstr.h
+++ b/lib/libc/include/plstr.h
@@ -43,17 +43,17 @@
  * plstr.h
  *
  * This header file exports the API to the NSPR portable library or string-
  * handling functions.  
  * 
  * This API was not designed as an "optimal" or "ideal" string library; it 
  * was based on the good ol' unix string.3 functions, and was written to
  *
- *  1) replace the libc functions, for cross-platform consistancy, 
+ *  1) replace the libc functions, for cross-platform consistency, 
  *  2) complete the API on platforms lacking common functions (e.g., 
  *     strcase*), and
  *  3) to implement some obvious "closure" functions that I've seen
  *     people hacking around in our code.
  *
  * Point number three largely means that most functions have an "strn"
  * limited-length version, and all comparison routines have a non-case-
  * sensitive version available.
@@ -413,17 +413,17 @@ PL_strcasestr(const char *big, const cha
  */
 
 PR_EXTERN(char *)
 PL_strcaserstr(const char *big, const char *little);
 
 /*
  * PL_strncasestr
  *
- * Returns a pointer to the first instance of the listtle string within the first
+ * Returns a pointer to the first instance of the little string within the first
  * n characters of the big one, ignoring case.  It returns null if either string is 
  * null.  It returns null if the length of the little string is greater than n.
  */
 
 PR_EXTERN(char *)
 PL_strncasestr(const char *big, const char *little, PRUint32 max);
 
 /*
--- a/lib/msgc/include/prgc.h
+++ b/lib/msgc/include/prgc.h
@@ -315,17 +315,17 @@ PR_EXTERN(void) PR_DumpIndent(FILE *out,
 **    The lowest segment currently used in the GC heap.
 **
 ** highSeg:
 **    The highest segment currently used in the GC heap.  
 **    The lowSeg and highSeg members are used for a "quick test" of whether 
 **    a pointer falls within the GC heap. [ see GC_IN_HEAP(...) ]
 **
 ** lock:
-**    Monitor used for syncronization within the GC.
+**    Monitor used for synchronization within the GC.
 **
 ** finalizer:
 **    Thread in which the GC finalizer is running.
 **
 ** liveBlock:
 **    Object scanning functions call through this function pointer to
 **    register a potential block of pointers with the collector. (This is
 **    currently not at all different than processRoot.)
@@ -347,17 +347,17 @@ PR_EXTERN(void) PR_DumpIndent(FILE *out,
 */
 typedef struct GCInfoStr {
     PRWord  flags;         /* trace flags (see below)               */
     PRWord  busyMemory;    /* memory in use right now               */
     PRWord  freeMemory;    /* memory free right now                 */
     PRWord  allocMemory;   /* sum of busy & free memory             */
     PRWord  maxMemory;     /* max memory we are allowed to allocate */
     PRWord *lowSeg;        /* lowest segment in the GC heap         */
-    PRWord *highSeg;       /* higest segment in the GC heap         */
+    PRWord *highSeg;       /* highest segment in the GC heap         */
 
     PRMonitor *lock;
     PRThread  *finalizer;
 
     void (PR_CALLBACK *liveBlock)(void **base, PRInt32 count);
     void (PR_CALLBACK *livePointer)(void *ptr);
     void (PR_CALLBACK *processRootBlock)(void **base, PRInt32 count);
     void (PR_CALLBACK *processRootPointer)(void *ptr);
--- a/pr/include/prolock.h
+++ b/pr/include/prolock.h
@@ -154,17 +154,17 @@ NSPR_API(void)
 ** 
 ** DESCRIPTION: PR_LockOrderedLock() locks the ordered lock
 ** referenced by lock. If the order of lock is less than or equal
 ** to the order of the highest lock held by the locking thread,
 ** the function asserts.
 ** 
 ** INPUTS: lock: a pointer to a PROrderedLock
 ** 
-** OUTPUTS: The lock is held or the fucntion asserts.
+** OUTPUTS: The lock is held or the function asserts.
 ** 
 ** RETURNS: void
 ** 
 ** RESTRICTIONS:
 ** 
 */
 #if defined(DEBUG) || defined(FORCE_NSPR_ORDERED_LOCKS)
 #define PR_LOCK_ORDERED_LOCK(lock) PR_LockOrderedLock((lock))
--- a/pr/include/prtypes.h
+++ b/pr/include/prtypes.h
@@ -34,18 +34,18 @@
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
 /*
 ** File:                prtypes.h
 ** Description: Definitions of NSPR's basic types
 **
-** Prototypes and macros used to make up for deficiencies in ANSI environments
-** that we have found.
+** Prototypes and macros used to make up for deficiencies that we have found
+** in ANSI environments.
 **
 ** Since we do not wrap <stdlib.h> and all the other standard headers, authors
 ** of portable code will not know in general that they need these definitions.
 ** Instead of requiring these authors to find the dependent uses in their code
 ** and take the following steps only in those C files, we take steps once here
 ** for all C files.
 **/
 
@@ -419,17 +419,17 @@ typedef size_t PRSize;
 ************************************************************************/
 typedef PRInt32 PROffset32;
 typedef PRInt64 PROffset64;
 
 /************************************************************************
 ** TYPES:       PRPtrDiff
 ** DESCRIPTION:
 **  A type for pointer difference. Variables of this type are suitable
-**      for storing a pointer or pointer sutraction. 
+**      for storing a pointer or pointer subtraction. 
 ************************************************************************/
 typedef ptrdiff_t PRPtrdiff;
 
 /************************************************************************
 ** TYPES:       PRUptrdiff
 ** DESCRIPTION:
 **  A type for pointer difference. Variables of this type are suitable
 **      for storing a pointer or pointer sutraction. 
@@ -437,26 +437,26 @@ typedef ptrdiff_t PRPtrdiff;
 typedef unsigned long PRUptrdiff;
 
 /************************************************************************
 ** TYPES:       PRBool
 ** DESCRIPTION:
 **  Use PRBool for variables and parameter types. Use PR_FALSE and PR_TRUE
 **      for clarity of target type in assignments and actual arguments. Use
 **      'if (bool)', 'while (!bool)', '(bool) ? x : y' etc., to test booleans
-**      juast as you would C int-valued conditions. 
+**      just as you would C int-valued conditions. 
 ************************************************************************/
 typedef PRIntn PRBool;
 #define PR_TRUE 1
 #define PR_FALSE 0
 
 /************************************************************************
 ** TYPES:       PRPackedBool
 ** DESCRIPTION:
-**  Use PRPackedBOol within structs where bitfields are not desireable
+**  Use PRPackedBool within structs where bitfields are not desirable
 **      but minimum and consistant overhead matters.
 ************************************************************************/
 typedef PRUint8 PRPackedBool;
 
 /*
 ** Status code used by some routines that have a single point of failure or 
 ** special status return.
 */