--HG--
rename : tests/compile/varargdecl.pyx => tests/run/varargdecl.pyx
pass
def f(Grail g):
- cdef int i
+ cdef int i = 0
cdef Swallow s
g = x
x = g
+++ /dev/null
-cdef grail(char *blarg, ...):
- pass
def f(a, b):
- cdef int i
+ cdef int i = 5
while a:
x = 1
x = 1
continue
x = 2
-
\ No newline at end of file
+
cdef int g(void* x) with gil:
pass
+
+f()
+g("test")
>>> modint(9,2)
1
+
+ >>> print modptr()
+ spameggs
"""
def modobj(obj2, obj3):
int1 = int2 % int3
return int1
-cdef modptr():
- # FIXME!!!
+def modptr():
cdef char *str2, *str3
- str2 = "spam"
+ str2 = "spam%s"
str3 = "eggs"
obj1 = str2 % str3
- return obj1
+ return obj1.decode(u"ASCII")
--- /dev/null
+__doc__ = u"""
+>>> test()
+"""
+
+cdef grail(char *blarg, ...):
+ pass
+
+def test():
+ grail("test")
+ grail("test", "toast")