cvardef.pyx 1.29 KB
Newer Older
1
__doc__ = u"""
Stefan Behnel's avatar
Stefan Behnel committed
2 3 4
    >>> f()
"""

5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
def f():
    cdef char a_char
    cdef short a_short
    cdef int i1, i2
    cdef long a_long
    cdef float a_float
    cdef double a_double
    cdef unsigned char an_unsigned_char
    cdef unsigned short an_unsigned_short
    cdef unsigned int an_unsigned_int
    cdef unsigned long an_unsigned_long
    cdef char *a_char_ptr, *another_char_ptr
    cdef char **a_char_ptr_ptr
    cdef char ***a_char_ptr_ptr_ptr
    cdef char a_sized_char_array[10]
    cdef char a_2d_char_array[10][20]
    cdef char *a_2d_char_ptr_array[10][20]
    cdef char **a_2d_char_ptr_ptr_array[10][20]
    cdef int (*a_0arg_function)()
    cdef int (*a_1arg_function)(int i)
    cdef int (*a_2arg_function)(int i, int j)
    cdef void (*a_void_function)()
    a_char = 0
    a_short = 0
    i1 = 0
    i2 = 0
    a_long = 0
    a_float = 0
    a_double = 0
    an_unsigned_char = 0
    an_unsigned_short = 0
    an_unsigned_int = 0
    an_unsigned_long = 0
    a_char_ptr = NULL
    another_char_ptr = NULL
    a_char_ptr_ptr = NULL
    a_char_ptr_ptr_ptr = NULL
    a_sized_char_array[0] = 0
    a_2d_char_array[0][0] = 0
    a_2d_char_ptr_array[0][0] = NULL
    a_2d_char_ptr_ptr_array[0][0] = NULL
    a_0arg_function = NULL
    a_1arg_function = NULL
    a_2arg_function = NULL
    a_void_function = NULL