Commit cbd925a3 authored by gsamain's avatar gsamain

The horribly commented check on cdef nogil

parent 5a8e9e62
...@@ -3306,10 +3306,10 @@ def p_c_func_or_var_declaration(s, pos, ctx): ...@@ -3306,10 +3306,10 @@ def p_c_func_or_var_declaration(s, pos, ctx):
fatal=False) fatal=False)
s.next() s.next()
p_test(s) # Keep going, but ignore result. p_test(s) # Keep going, but ignore result.
nogil = ctx.nogil #nogil = ctx.nogil
if s.sy == 'nogil': #if s.sy == 'nogil':
nogil = p_nogil(s) # nogil = p_nogil(s)
s.next() # s.next()
# if ctx.level == 'c_class_nogil' and not nogil: # if ctx.level == 'c_class_nogil' and not nogil:
# s.error("Only C function with nogil allowed in nogil extension") # s.error("Only C function with nogil allowed in nogil extension")
if s.sy == ':': if s.sy == ':':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment