Skip to content

Commit 75fdf93

Browse files
committed
cleanup
1 parent 3adff40 commit 75fdf93

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tinycc.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,9 @@ def proto(pointer, clsname):
346346
return wrap
347347

348348
def callable_function(self, restype, *argtypes):
349+
"""
350+
Decorator to make a Python function callable from C.
351+
"""
349352
def wrap(f):
350353
f._c_code = ''
351354
cargs_c = ', '.join('%s' % TYPE_MAPPER[ctype] for ctype in argtypes)
@@ -378,11 +381,6 @@ def proto(pointer, clsname):
378381
return f
379382
return wrap
380383

381-
#def register_pythonsymbol(self, name, value):
382-
# """
383-
# Add a symbol to the symbol table and init it lazy.
384-
# """
385-
386384

387385
class TccState(object):
388386
"""
@@ -482,7 +480,7 @@ def _add_symbol(self, symbol, value):
482480
483481
Use this with caution as it is likely to fail on some
484482
architectures (ARM at least).
485-
000
483+
486484
To avoid problems during compilation with imported
487485
Python symbols better use the `set_symbol` method.
488486
"""

0 commit comments

Comments
 (0)