diff --git a/nsprpub/lib/libc/include/plresolv.h b/nsprpub/lib/libc/include/plresolv.h index 45d4e5e6e00..8e8926c6c16 100644 --- a/nsprpub/lib/libc/include/plresolv.h +++ b/nsprpub/lib/libc/include/plresolv.h @@ -66,7 +66,7 @@ NSPR_BEGIN_EXTERN_C #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 ----------------*/ diff --git a/nsprpub/lib/libc/include/plstr.h b/nsprpub/lib/libc/include/plstr.h index 53746ce699c..398a535615b 100644 --- a/nsprpub/lib/libc/include/plstr.h +++ b/nsprpub/lib/libc/include/plstr.h @@ -48,7 +48,7 @@ * 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 @@ -418,7 +418,7 @@ 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. */ diff --git a/nsprpub/lib/msgc/include/prgc.h b/nsprpub/lib/msgc/include/prgc.h index add30213409..859f7b1c0dd 100644 --- a/nsprpub/lib/msgc/include/prgc.h +++ b/nsprpub/lib/msgc/include/prgc.h @@ -320,7 +320,7 @@ PR_EXTERN(void) PR_DumpIndent(FILE *out, PRIntn indent); ** 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. @@ -352,7 +352,7 @@ typedef struct GCInfoStr { 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; diff --git a/nsprpub/pr/include/prolock.h b/nsprpub/pr/include/prolock.h index 74b5ffe8962..d8aece986c5 100644 --- a/nsprpub/pr/include/prolock.h +++ b/nsprpub/pr/include/prolock.h @@ -159,7 +159,7 @@ NSPR_API(void) ** ** 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 ** diff --git a/nsprpub/pr/include/prtypes.h b/nsprpub/pr/include/prtypes.h index 2770329c90a..6b9548817ac 100644 --- a/nsprpub/pr/include/prtypes.h +++ b/nsprpub/pr/include/prtypes.h @@ -39,8 +39,8 @@ ** 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 and all the other standard headers, authors ** of portable code will not know in general that they need these definitions. @@ -424,7 +424,7 @@ 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; @@ -442,7 +442,7 @@ typedef unsigned long PRUptrdiff; ** 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 @@ -451,7 +451,7 @@ typedef PRIntn PRBool; /************************************************************************ ** 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;