specal -> special
authorCraig Citro <craigcitro@gmail.com>
Mon, 15 Mar 2010 04:27:05 +0000 (21:27 -0700)
committerCraig Citro <craigcitro@gmail.com>
Mon, 15 Mar 2010 04:27:05 +0000 (21:27 -0700)
Cython/Compiler/Code.py
Cython/Compiler/ExprNodes.py
Cython/Compiler/PyrexTypes.py

index e7cf8400ed84ede01c3dac86fc55071a05c7f4f7..323d2c79bd46a637b3bab26b1c5d23f44d606957 100644 (file)
@@ -40,7 +40,7 @@ class UtilityCode(object):
         # Dicts aren't hashable...
         if pyrex_type is not None:
             data['type'] = pyrex_type.declaration_code('')
-            data['type_name'] = pyrex_type.specalization_name()
+            data['type_name'] = pyrex_type.specialization_name()
         key = data.items(); key.sort(); key = tuple(key)
         try:
             return self._cache[key]
index 3e240ccf751d58685ffce5a6e19ee5def3fb8037..814793f28f68436be53a65aa62dae881574e71f1 100755 (executable)
@@ -2062,7 +2062,7 @@ class IndexNode(ExprNode):
             index_code = self.index.py_result()
             if self.base.type is dict_type:
                 function = "PyDict_SetItem"
-            # It would seem that we could specalized lists/tuples, but that
+            # It would seem that we could specialized lists/tuples, but that
             # shouldn't happen here. 
             # Both PyList_SetItem PyTuple_SetItem and a Py_ssize_t as input, 
             # not a PyObject*, and bad conversion here would give the wrong 
@@ -5091,7 +5091,7 @@ class DivNode(NumBinopNode):
             return "(%s / %s)" % (op1, op2)
         else:
             return "__Pyx_div_%s(%s, %s)" % (
-                    self.type.specalization_name(),
+                    self.type.specialization_name(),
                     self.operand1.result(), 
                     self.operand2.result())
 
@@ -5136,7 +5136,7 @@ class ModNode(DivNode):
                     self.operand2.result())
         else:
             return "__Pyx_mod_%s(%s, %s)" % (
-                    self.type.specalization_name(),
+                    self.type.specialization_name(),
                     self.operand1.result(), 
                     self.operand2.result())
 
index 65cb305daf7955e685f08d16995de7995887154f..08649240b9029d7022e2eaf28e960e2b35894e92 100755 (executable)
@@ -20,7 +20,7 @@ class BaseType(object):
     def cast_code(self, expr_code):
         return "((%s)%s)" % (self.declaration_code(""), expr_code)
     
-    def specalization_name(self):
+    def specialization_name(self):
         return self.declaration_code("").replace(" ", "__")
     
     def base_declaration_code(self, base_code, entity_code):
@@ -900,16 +900,16 @@ class CComplexType(CNumericType):
         if real_type.is_typedef and real_type.typedef_is_external:
             # The below is not actually used: Coercions are currently disabled
             # so that complex types of external types can not be created
-            self.funcsuffix = "_%s" % real_type.specalization_name()
+            self.funcsuffix = "_%s" % real_type.specialization_name()
         elif hasattr(real_type, 'math_h_modifier'):
             self.funcsuffix = real_type.math_h_modifier
         else:
-            self.funcsuffix = "_%s" % real_type.specalization_name()
+            self.funcsuffix = "_%s" % real_type.specialization_name()
     
         self.real_type = real_type
         CNumericType.__init__(self, real_type.rank + 0.5, real_type.signed)
         self.binops = {}
-        self.from_parts = "%s_from_parts" % self.specalization_name()
+        self.from_parts = "%s_from_parts" % self.specialization_name()
         self.default_value = "%s(0, 0)" % self.from_parts
 
     def __eq__(self, other):
@@ -944,7 +944,7 @@ class CComplexType(CNumericType):
         return self.base_declaration_code(base,  entity_code)
 
     def sign_and_name(self):
-        real_type_name = self.real_type.specalization_name()
+        real_type_name = self.real_type.specialization_name()
         real_type_name = real_type_name.replace('long__double','long_double')
         return Naming.type_prefix + real_type_name + "_complex"
     
@@ -1010,7 +1010,7 @@ class CComplexType(CNumericType):
                     self, 
                     real_type = self.real_type.declaration_code(''),
                     m = self.funcsuffix))
-        self.from_py_function = "__Pyx_PyComplex_As_" + self.specalization_name()
+        self.from_py_function = "__Pyx_PyComplex_As_" + self.specialization_name()
         return True
     
     def lookup_op(self, nargs, op):