mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
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
This commit is contained in:
parent
a4962cea74
commit
e74d4111c5
@ -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 ----------------*/
|
||||
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
**
|
||||
|
@ -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 <stdlib.h> 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;
|
||||
|
Loading…
Reference in New Issue
Block a user