blob: f556646dceb386d83e6b2aee6d617e939120de75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
cimport dishes
from dishes cimport spamdish
cdef void prepare(spamdish *d):
d.oz_of_spam = 42
d.filler = dishes.sausage
def serve():
cdef spamdish d
prepare(&d)
print(f'{d.oz_of_spam} oz spam, filler no. {d.filler}')
|