diff --git a/ChangeLog b/ChangeLog
index 79e211adc..a7e1eb9cf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,25 @@
+2002-08-20 Richard Frith-Macdonald
* If an equal element is already in table, replaces it with the new one.
- * If element is nul raises an NSInvalidArgumentException.
+ * If element is null raises an NSInvalidArgumentException.
*/
void
NSHashInsert(NSHashTable *table, const void *element)
@@ -318,12 +318,12 @@ NSHashInsert(NSHashTable *table, const void *element)
if (table == 0)
{
[NSException raise: NSInvalidArgumentException
- format: @"Attempt to place value in nul hash table"];
+ format: @"Attempt to place value in null hash table"];
}
if (element == 0)
{
[NSException raise: NSInvalidArgumentException
- format: @"Attempt to place nul in hash table"];
+ format: @"Attempt to place null in hash table"];
}
n = GSIMapNodeForKey(t, (GSIMapKey)element);
if (n == 0)
@@ -355,12 +355,12 @@ NSHashInsertIfAbsent(NSHashTable *table, const void *element)
if (table == 0)
{
[NSException raise: NSInvalidArgumentException
- format: @"Attempt to place value in nul hash table"];
+ format: @"Attempt to place value in null hash table"];
}
if (element == 0)
{
[NSException raise: NSInvalidArgumentException
- format: @"Attempt to place nul in hash table"];
+ format: @"Attempt to place null in hash table"];
}
n = GSIMapNodeForKey(t, (GSIMapKey)element);
if (n == 0)
@@ -377,7 +377,7 @@ NSHashInsertIfAbsent(NSHashTable *table, const void *element)
/**
* Adds the element to table and returns nul.
* If an equal element is already present, raises NSInvalidArgumentException.
- *
If element is nul raises an NSInvalidArgumentException.
+ *
If element is null raises an NSInvalidArgumentException.
*/
void
NSHashInsertKnownAbsent(NSHashTable *table, const void *element)
@@ -388,12 +388,12 @@ NSHashInsertKnownAbsent(NSHashTable *table, const void *element)
if (table == 0)
{
[NSException raise: NSInvalidArgumentException
- format: @"Attempt to place value in nul hash table"];
+ format: @"Attempt to place value in null hash table"];
}
if (element == 0)
{
[NSException raise: NSInvalidArgumentException
- format: @"Attempt to place nul in hash table"];
+ format: @"Attempt to place null in hash table"];
}
n = GSIMapNodeForKey(t, (GSIMapKey)element);
if (n == 0)
diff --git a/Source/NSMapTable.m b/Source/NSMapTable.m
index ccf9d3b69..477d26c2f 100644
--- a/Source/NSMapTable.m
+++ b/Source/NSMapTable.m
@@ -339,7 +339,7 @@ NSFreeMapTable(NSMapTable *table)
}
/**
- * Returns the value for the specified key, or a nul pointer if the
+ * Returns the value for the specified key, or a null pointer if the
* key is not found in the table.
*/
void *
@@ -379,7 +379,7 @@ NSMapInsert(NSMapTable *table, const void *key, const void *value)
if (table == 0)
{
[NSException raise: NSInvalidArgumentException
- format: @"Attempt to place key-value in nul table"];
+ format: @"Attempt to place key-value in null table"];
}
if (key == t->extra.k.notAKeyMarker)
{
@@ -417,7 +417,7 @@ NSMapInsertIfAbsent(NSMapTable *table, const void *key, const void *value)
if (table == 0)
{
[NSException raise: NSInvalidArgumentException
- format: @"Attempt to place key-value in nul table"];
+ format: @"Attempt to place key-value in null table"];
}
if (key == t->extra.k.notAKeyMarker)
{
@@ -451,7 +451,7 @@ NSMapInsertKnownAbsent(NSMapTable *table, const void *key, const void *value)
if (table == 0)
{
[NSException raise: NSInvalidArgumentException
- format: @"Attempt to place key-value in nul table"];
+ format: @"Attempt to place key-value in null table"];
}
if (key == t->extra.k.notAKeyMarker)
{
@@ -474,7 +474,7 @@ NSMapInsertKnownAbsent(NSMapTable *table, const void *key, const void *value)
* Returns a flag to say whether the table contains the specified key.
* Returns the original key and the value it maps to.
* The GNUstep implementation checks originalKey and value to see if
- * they are nul pointers, and only updates them if non-null.
+ * they are null pointers, and only updates them if non-null.
*/
BOOL
NSMapMember(NSMapTable *table, const void *key,
@@ -524,7 +524,7 @@ NSMapRemove(NSMapTable *table, const void *key)
* Step through the map table ... return the next key-value pair and
* return YES, or hit the end of the table and return NO.
* The GNUstep implementation permits either key or value to be a
- * nul pointer, and refrains from attempting to return the appropriate
+ * null pointer, and refrains from attempting to return the appropriate
* result in that case.
*/
BOOL
diff --git a/Source/NSObjCRuntime.m b/Source/NSObjCRuntime.m
index c6b50f438..d6971df37 100644
--- a/Source/NSObjCRuntime.m
+++ b/Source/NSObjCRuntime.m
@@ -81,7 +81,7 @@ NSGetSizeAndAlignment(const char *typePtr, unsigned *sizep, unsigned *alignp)
* variable of obj called name. It returns YES if the variable
* was found, NO otherwise. If it returns YES, then the values
* pointed to by type, size, and offset will be set (except where
- * they are nul pointers).
+ * they are null pointers).
*/
BOOL
GSFindInstanceVariable(id obj, const char *name,
@@ -199,7 +199,7 @@ GSSetInstanceVariable(id obj, NSString *iVarName, const void *data)
* supplied), or via direct access (if type, size, and offset are
* supplied).
* Automatic conversion between NSNumber and C scalar types is performed.
- * If type is nul and can't be determined from the selector, the
+ * If type is null and can't be determined from the selector, the
* [NSObject-handleQueryWithUnboundKey:] method is called to try
* to get a value.
*/
@@ -509,7 +509,7 @@ GSGetValue(NSObject *self, NSString *key, SEL sel,
* supplied), or via direct access (if type, size, and offset are
* supplied).
* Automatic conversion between NSNumber and C scalar types is performed.
- * If type is nul and can't be determined from the selector, the
+ * If type is null and can't be determined from the selector, the
* [NSObject-handleTakevalue:forUnboundKey:] method is called to try
* to set a value.
*/
diff --git a/Source/NSObject.m b/Source/NSObject.m
index 0c948a99f..7ea57b563 100644
--- a/Source/NSObject.m
+++ b/Source/NSObject.m
@@ -1,4 +1,4 @@
-/** Implementation of NSObject for GNUStep
+null Implementation of NSObject for GNUStep
Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum
- * You do no normally need to override new
in
+ * You do not normally need to override new
in
* subclasses, because if you override init
(and
* optionally allocWithZone:
if you really
* need), new
will automatically use your
@@ -1502,7 +1502,7 @@ static BOOL double_release_check_enabled = NO;
if (aSelector == 0)
{
[NSException raise: NSInvalidArgumentException
- format: @"nul selector passed to %s", sel_get_name(_cmd)];
+ format: @"null selector passed to %s", sel_get_name(_cmd)];
return nil;
}
@@ -1528,7 +1528,7 @@ static BOOL double_release_check_enabled = NO;
if (aSelector == 0)
{
[NSException raise: NSInvalidArgumentException
- format: @"nul selector passed to %s", sel_get_name(_cmd)];
+ format: @"null selector passed to %s", sel_get_name(_cmd)];
return nil;
}
@@ -1557,7 +1557,7 @@ static BOOL double_release_check_enabled = NO;
if (aSelector == 0)
{
[NSException raise: NSInvalidArgumentException
- format: @"nul selector passed to %s", sel_get_name(_cmd)];
+ format: @"null selector passed to %s", sel_get_name(_cmd)];
return nil;
}
diff --git a/Source/NSPortCoder.m b/Source/NSPortCoder.m
index 689b3ce65..00c258aeb 100644
--- a/Source/NSPortCoder.m
+++ b/Source/NSPortCoder.m
@@ -1382,7 +1382,7 @@ static IMP _xRefImp; /* Serialize a crossref. */
if (_initialPass == NO)
{
/*
- * Special case - a nul pointer gets an xref of zero
+ * Special case - a null pointer gets an xref of zero
*/
(*_eTagImp)(_dst, eTagSel, _GSC_PTR | _GSC_XREF | _GSC_X_0);
}
@@ -1451,7 +1451,7 @@ static IMP _xRefImp; /* Serialize a crossref. */
if (*(Class*)buf == 0)
{
/*
- * Special case - a nul pointer gets an xref of zero
+ * Special case - a null pointer gets an xref of zero
*/
(*_eTagImp)(_dst, eTagSel, _GSC_CLASS | _GSC_XREF | _GSC_X_0);
}
@@ -1519,7 +1519,7 @@ static IMP _xRefImp; /* Serialize a crossref. */
if (*(SEL*)buf == 0)
{
/*
- * Special case - a nul pointer gets an xref of zero
+ * Special case - a null pointer gets an xref of zero
*/
(*_eTagImp)(_dst, eTagSel, _GSC_SEL | _GSC_XREF | _GSC_X_0);
}
@@ -1550,7 +1550,7 @@ static IMP _xRefImp; /* Serialize a crossref. */
if (*(char**)buf == 0)
{
/*
- * Special case - a nul pointer gets an xref of zero
+ * Special case - a null pointer gets an xref of zero
*/
(*_eTagImp)(_dst, eTagSel, _GSC_CHARPTR | _GSC_XREF | _GSC_X_0);
}
diff --git a/Source/NSScanner.m b/Source/NSScanner.m
index d5d9b8ec9..5e99a1522 100644
--- a/Source/NSScanner.m
+++ b/Source/NSScanner.m
@@ -1003,7 +1003,7 @@ typedef struct {
/**
* Sets the case sensitivity of the scanner.
*
- * Case sensitivity governs matrching of characters being scanned,
+ * Case sensitivity governs matching of characters being scanned,
* but does not effect the characters in the set to be skipped.
*
* The default is for a scanner to not be case sensitive.
diff --git a/Source/NSString.m b/Source/NSString.m
index 64dd83425..00de2a15c 100644
--- a/Source/NSString.m
+++ b/Source/NSString.m
@@ -588,7 +588,7 @@ handle_printf_atsign (FILE *stream,
if (chars == 0)
{
[NSException raise: NSInvalidArgumentException
- format: @"nul pointer but non-zero length"];
+ format: @"null pointer but non-zero length"];
}
for (i = 0; i < length; i++)
{
@@ -2139,7 +2139,7 @@ handle_printf_atsign (FILE *stream,
// Getting C Strings
/**
- * Returns a pointer to a nul terminated string of 8-bit
+ * Returns a pointer to a null terminated string of 8-bit
* characters in the default encoding. The memory pointed
* to is not owned by the caller, so the caller must copy
* its contents to keep it.
diff --git a/Source/Unicode.m b/Source/Unicode.m
index d4309eb8a..0d466f8bc 100644
--- a/Source/Unicode.m
+++ b/Source/Unicode.m
@@ -103,7 +103,7 @@ struct _strenc_ {
* is the empty string, we cannot use
* iconv perform conversions to/from
* this encoding.
- * NB. do not put a nul pointer in this
+ * NB. do not put a null pointer in this
* field in the table, use "" instread.
*/
BOOL eightBit; /* Flag to say whether this encoding
@@ -660,7 +660,7 @@ else \
/**
* Function to convert from 8-bit character data to 16-bit unicode.
*
The dst argument is a pointer to a pointer to a buffer in which the - * converted string is to be stored. If it is a nul pointer, this function + * converted string is to be stored. If it is a null pointer, this function * discards converted data, and is used only to determine the length of the * converted string. If the zone argument is non-nul, the function is free * to allocate a larger buffer if necessary, and store this new buffer in @@ -683,12 +683,12 @@ else \ *
The zone argument specifies a memory zone in which the function may * allocate a buffer to return data in. * If this is nul, the function will fail if the originally supplied buffer - * is not big enough (unless dst is a nul pointer ... indicating that + * is not big enough (unless dst is a null pointer ... indicating that * converted data is to be discarded). *
* The options argument controls some special behavior. *The dst argument is a pointer to a pointer to a buffer in which the - * converted string is to be stored. If it is a nul pointer, this function + * converted string is to be stored. If it is a null pointer, this function * discards converted data, and is used only to determine the length of the * converted string. If the zone argument is non-nul, the function is free * to allocate a larger buffer if necessary, and store this new buffer in @@ -1035,7 +1035,7 @@ else \ *
The zone argument specifies a memory zone in which the function may * allocate a buffer to return data in. * If this is nul, the function will fail if the originally supplied buffer - * is not big enough (unless dst is a nul pointer ... indicating that + * is not big enough (unless dst is a null pointer ... indicating that * converted data is to be discarded). *
* The options argument controls some special behavior. @@ -1044,7 +1044,7 @@ else \ * encountered which can't be displayed in the source. Otherwise, some * approximation or marker will be placed in the destination.