Bug 106386 Correct misspellings in source code

patch by unknown@simplemachines.org r=timeless rs=brendan


git-svn-id: svn://10.0.0.236/trunk@185282 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org
2005-11-25 21:57:13 +00:00
parent 1e7d86daed
commit dae7b0629a
169 changed files with 279 additions and 279 deletions

View File

@@ -227,7 +227,7 @@ PyG_Base::AutoWrapPythonInstance(PyObject *ob, const nsIID &iid, nsISupports **p
// Check we _now_ have a default gateway
{
nsISupports *temp = NULL;
NS_ABORT_IF_FALSE(CheckDefaultGateway(ob, iid, &temp), "Auto-wrapped object didnt get a default gateway!");
NS_ABORT_IF_FALSE(CheckDefaultGateway(ob, iid, &temp), "Auto-wrapped object didn't get a default gateway!");
if (temp) temp->Release();
}
#endif

View File

@@ -330,7 +330,7 @@ PRBool FillSingleArray(void *array_ptr, PyObject *sequence_ob, PRUint32 sequence
if ((val_use = PyObject_Str(val))==NULL)
BREAK_FALSE;
// Sanity check should PyObject_Str() ever loosen its semantics wrt Unicode!
NS_ABORT_IF_FALSE(PyString_Check(val_use), "PyObject_Str didnt return a string object!");
NS_ABORT_IF_FALSE(PyString_Check(val_use), "PyObject_Str didn't return a string object!");
FILL_SIMPLE_POINTER( char, *PyString_AS_STRING(val_use) );
break;
@@ -381,7 +381,7 @@ PRBool FillSingleArray(void *array_ptr, PyObject *sequence_ob, PRUint32 sequence
if ((val_use = PyObject_Str(val))==NULL)
BREAK_FALSE;
// Sanity check should PyObject_Str() ever loosen its semantics wrt Unicode!
NS_ABORT_IF_FALSE(PyString_Check(val_use), "PyObject_Str didnt return a string object!");
NS_ABORT_IF_FALSE(PyString_Check(val_use), "PyObject_Str didn't return a string object!");
const char *sz = PyString_AS_STRING(val_use);
int nch = PyString_GET_SIZE(val_use);
@@ -1179,7 +1179,7 @@ PRBool PyXPCOM_InterfaceVariantHelper::FillInVariant(const PythonTypeDescriptor
if ((val_use = PyObject_Str(val))==NULL)
BREAK_FALSE;
// Sanity check should PyObject_Str() ever loosen its semantics wrt Unicode!
NS_ABORT_IF_FALSE(PyString_Check(val_use), "PyObject_Str didnt return a string object!");
NS_ABORT_IF_FALSE(PyString_Check(val_use), "PyObject_Str didn't return a string object!");
if (PyString_GET_SIZE(val_use) != 1) {
PyErr_SetString(PyExc_ValueError, "Must specify a one character string for a character");
BREAK_FALSE;
@@ -1301,7 +1301,7 @@ PRBool PyXPCOM_InterfaceVariantHelper::FillInVariant(const PythonTypeDescriptor
if ((val_use = PyObject_Str(val))==NULL)
BREAK_FALSE;
// Sanity check should PyObject_Str() ever loosen its semantics wrt Unicode!
NS_ABORT_IF_FALSE(PyString_Check(val_use), "PyObject_Str didnt return a string object!");
NS_ABORT_IF_FALSE(PyString_Check(val_use), "PyObject_Str didn't return a string object!");
cb_this_buffer_pointer = PyString_GET_SIZE(val_use)+1;
MAKE_VALUE_BUFFER(cb_this_buffer_pointer);
@@ -1385,7 +1385,7 @@ PRBool PyXPCOM_InterfaceVariantHelper::FillInVariant(const PythonTypeDescriptor
if ((val_use = PyObject_Str(val))==NULL)
BREAK_FALSE;
// Sanity check should PyObject_Str() ever loosen its semantics wrt Unicode!
NS_ABORT_IF_FALSE(PyString_Check(val_use), "PyObject_Str didnt return a string object!");
NS_ABORT_IF_FALSE(PyString_Check(val_use), "PyObject_Str didn't return a string object!");
cb_this_buffer_pointer = PyString_GET_SIZE(val_use);
MAKE_VALUE_BUFFER(cb_this_buffer_pointer);
@@ -1453,7 +1453,7 @@ PRBool PyXPCOM_InterfaceVariantHelper::FillInVariant(const PythonTypeDescriptor
rc = PR_FALSE;
break;
}
Py_DECREF(val); // Cant be NULL!
Py_DECREF(val); // Can't be NULL!
Py_XDECREF(val_use);
}
return rc && !PyErr_Occurred();
@@ -2214,7 +2214,7 @@ nsresult PyXPCOM_GatewayVariantHelper::BackFillVariant( PyObject *val, int index
if ((val_use = PyObject_Str(val))==NULL)
BREAK_FALSE;
// Sanity check should PyObject_Str() ever loosen its semantics wrt Unicode!
NS_ABORT_IF_FALSE(PyString_Check(val_use), "PyObject_Str didnt return a string object!");
NS_ABORT_IF_FALSE(PyString_Check(val_use), "PyObject_Str didn't return a string object!");
FILL_SIMPLE_POINTER( char, *PyString_AS_STRING(val_use) );
break;
@@ -2288,7 +2288,7 @@ nsresult PyXPCOM_GatewayVariantHelper::BackFillVariant( PyObject *val, int index
BREAK_FALSE;
}
val_use = PyObject_Str(val);
NS_ABORT_IF_FALSE(PyString_Check(val_use), "PyObject_Str didnt return a string object!");
NS_ABORT_IF_FALSE(PyString_Check(val_use), "PyObject_Str didn't return a string object!");
const char *sz = PyString_AS_STRING(val_use);
ws->Assign(sz, PyString_Size(val_use));
}
@@ -2332,7 +2332,7 @@ nsresult PyXPCOM_GatewayVariantHelper::BackFillVariant( PyObject *val, int index
if ((val_use = PyObject_Str(val))==NULL)
BREAK_FALSE;
// Sanity check should PyObject_Str() ever loosen its semantics wrt Unicode!
NS_ABORT_IF_FALSE(PyString_Check(val_use), "PyObject_Str didnt return a string object!");
NS_ABORT_IF_FALSE(PyString_Check(val_use), "PyObject_Str didn't return a string object!");
const char *sz = PyString_AS_STRING(val_use);
int nch = PyString_GET_SIZE(val_use);
@@ -2422,7 +2422,7 @@ nsresult PyXPCOM_GatewayVariantHelper::BackFillVariant( PyObject *val, int index
if ((val_use = PyObject_Str(val))==NULL)
BREAK_FALSE;
// Sanity check should PyObject_Str() ever loosen its semantics wrt Unicode!
NS_ABORT_IF_FALSE(PyString_Check(val_use), "PyObject_Str didnt return a string object!");
NS_ABORT_IF_FALSE(PyString_Check(val_use), "PyObject_Str didn't return a string object!");
sz = PyString_AS_STRING(val_use);
nch = PyString_GET_SIZE(val_use);

View File

@@ -177,7 +177,7 @@ void PyXPCOM_ReleaseGlobalLock(void)
void PyXPCOM_DLLAddRef(void)
{
// Must be thread-safe, although cant have the Python lock!
// Must be thread-safe, although can't have the Python lock!
CEnterLeaveXPCOMFramework _celf;
PRInt32 cnt = PR_AtomicIncrement(&g_cLockCount);
if (cnt==1) { // First call

View File

@@ -64,7 +64,7 @@ def test_interfaces():
len(xpcom.components.interfaces.items()) == len(xpcom.components.interfaces) == \
num_fetched, "The collection lengths were wrong"
if num_nsisupports != 1:
print "Didnt find exactly 1 nsiSupports!"
print "Didn't find exactly 1 nsiSupports!"
print "The interfaces object appeared to work!"
def test_classes():
@@ -95,9 +95,9 @@ def test_classes():
else:
raise RuntimeError, "The collection lengths were wrong"
if num_fetched <= 0:
raise RuntimeError, "Didnt get any classes!!!"
raise RuntimeError, "Didn't get any classes!!!"
if num_mine != 1:
raise RuntimeError, "Didnt find exactly 1 of my contractid! (%d)" % (num_mine,)
raise RuntimeError, "Didn't find exactly 1 of my contractid! (%d)" % (num_mine,)
print "The classes object appeared to work!"
def test_id():

View File

@@ -113,7 +113,7 @@ def test_string_attribute(ob, attr_name, expected_init, is_dumb_sz = False, asci
def test_attribute_failure(ob, attr_name, new_value, expected_exception):
try:
setattr(ob, attr_name, new_value)
print_error("*** Setting attribute '%s' to '%r' didnt yield an exception!" % (attr_name, new_value) )
print_error("*** Setting attribute '%s' to '%r' didn't yield an exception!" % (attr_name, new_value) )
except:
exc_typ = sys.exc_info()[0]
exc_val = sys.exc_info()[1]