зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
e1a5a5d445
Коммит
ac0d502c49
|
@ -66,7 +66,7 @@ NSPR_BEGIN_EXTERN_C
|
||||||
#define PL_RESOLVE_ETIMEDOUT 4 /* Request timed-out */
|
#define PL_RESOLVE_ETIMEDOUT 4 /* Request timed-out */
|
||||||
#define PL_RESOLVE_EINVAL 5 /* Invalid argument */
|
#define PL_RESOLVE_EINVAL 5 /* Invalid argument */
|
||||||
#define PL_RESOLVE_EOVERFLOW 6 /* Buffer Overflow */
|
#define PL_RESOLVE_EOVERFLOW 6 /* Buffer Overflow */
|
||||||
#define PL_RESOLVE_EUNKNOWN 7 /* berzerk error */
|
#define PL_RESOLVE_EUNKNOWN 7 /* berserk error */
|
||||||
|
|
||||||
/* ----------- Function Prototypes ----------------*/
|
/* ----------- Function Prototypes ----------------*/
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
* This API was not designed as an "optimal" or "ideal" string library; it
|
* 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
|
* 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.,
|
* 2) complete the API on platforms lacking common functions (e.g.,
|
||||||
* strcase*), and
|
* strcase*), and
|
||||||
* 3) to implement some obvious "closure" functions that I've seen
|
* 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
|
* 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
|
* 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.
|
* 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(...) ]
|
** a pointer falls within the GC heap. [ see GC_IN_HEAP(...) ]
|
||||||
**
|
**
|
||||||
** lock:
|
** lock:
|
||||||
** Monitor used for syncronization within the GC.
|
** Monitor used for synchronization within the GC.
|
||||||
**
|
**
|
||||||
** finalizer:
|
** finalizer:
|
||||||
** Thread in which the GC finalizer is running.
|
** Thread in which the GC finalizer is running.
|
||||||
|
@ -352,7 +352,7 @@ typedef struct GCInfoStr {
|
||||||
PRWord allocMemory; /* sum of busy & free memory */
|
PRWord allocMemory; /* sum of busy & free memory */
|
||||||
PRWord maxMemory; /* max memory we are allowed to allocate */
|
PRWord maxMemory; /* max memory we are allowed to allocate */
|
||||||
PRWord *lowSeg; /* lowest segment in the GC heap */
|
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;
|
PRMonitor *lock;
|
||||||
PRThread *finalizer;
|
PRThread *finalizer;
|
||||||
|
|
|
@ -159,7 +159,7 @@ NSPR_API(void)
|
||||||
**
|
**
|
||||||
** INPUTS: lock: a pointer to a PROrderedLock
|
** 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
|
** RETURNS: void
|
||||||
**
|
**
|
||||||
|
|
|
@ -39,8 +39,8 @@
|
||||||
** File: prtypes.h
|
** File: prtypes.h
|
||||||
** Description: Definitions of NSPR's basic types
|
** Description: Definitions of NSPR's basic types
|
||||||
**
|
**
|
||||||
** Prototypes and macros used to make up for deficiencies in ANSI environments
|
** Prototypes and macros used to make up for deficiencies that we have found
|
||||||
** that we have found.
|
** in ANSI environments.
|
||||||
**
|
**
|
||||||
** Since we do not wrap <stdlib.h> and all the other standard headers, authors
|
** 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.
|
** of portable code will not know in general that they need these definitions.
|
||||||
|
@ -424,7 +424,7 @@ typedef PRInt64 PROffset64;
|
||||||
** TYPES: PRPtrDiff
|
** TYPES: PRPtrDiff
|
||||||
** DESCRIPTION:
|
** DESCRIPTION:
|
||||||
** A type for pointer difference. Variables of this type are suitable
|
** 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;
|
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
|
** Use PRBool for variables and parameter types. Use PR_FALSE and PR_TRUE
|
||||||
** for clarity of target type in assignments and actual arguments. Use
|
** for clarity of target type in assignments and actual arguments. Use
|
||||||
** 'if (bool)', 'while (!bool)', '(bool) ? x : y' etc., to test booleans
|
** '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;
|
typedef PRIntn PRBool;
|
||||||
#define PR_TRUE 1
|
#define PR_TRUE 1
|
||||||
|
@ -451,7 +451,7 @@ typedef PRIntn PRBool;
|
||||||
/************************************************************************
|
/************************************************************************
|
||||||
** TYPES: PRPackedBool
|
** TYPES: PRPackedBool
|
||||||
** DESCRIPTION:
|
** 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.
|
** but minimum and consistant overhead matters.
|
||||||
************************************************************************/
|
************************************************************************/
|
||||||
typedef PRUint8 PRPackedBool;
|
typedef PRUint8 PRPackedBool;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче