Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pybison
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
pybison
Commits
3d541647
Commit
3d541647
authored
Dec 01, 2011
by
Sander Mathijs van Veen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed segfault on 32 bit arch (wrong place for refcount increment).
parent
f5301e6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/pyrex/bison_.pyx
src/pyrex/bison_.pyx
+5
-5
No files found.
src/pyrex/bison_.pyx
View file @
3d541647
...
@@ -101,13 +101,13 @@ cdef public object py_callback(object parser, char *target, int option, \
...
@@ -101,13 +101,13 @@ cdef public object py_callback(object parser, char *target, int option, \
for
i
in
range
(
nargs
):
for
i
in
range
(
nargs
):
termname
=
<
char
*>
va_arg
(
ap
,
str_type
)
termname
=
<
char
*>
va_arg
(
ap
,
str_type
)
Py_INCREF
(
termname
)
PyList_SetItem
(
names
,
i
,
termname
)
PyList_SetItem
(
names
,
i
,
termname
)
Py_INCREF
(
termname
)
val
=
<
void
*>
va_arg
(
ap
,
void_type
)
val
=
<
void
*>
va_arg
(
ap
,
void_type
)
valobj
=
<
object
>
val
valobj
=
<
object
>
val
Py_INCREF
(
valobj
)
PyList_SetItem
(
values
,
i
,
valobj
)
PyList_SetItem
(
values
,
i
,
valobj
)
Py_INCREF
(
valobj
)
#if parser.verbose:
#if parser.verbose:
# print 'py_callback: calling handler:', \
# print 'py_callback: calling handler:', \
...
@@ -115,12 +115,12 @@ cdef public object py_callback(object parser, char *target, int option, \
...
@@ -115,12 +115,12 @@ cdef public object py_callback(object parser, char *target, int option, \
# Set the signal handler and a timeout alarm
# Set the signal handler and a timeout alarm
signal
.
signal
(
signal
.
SIGALRM
,
parser
.
handle_timeout
)
#
signal.signal(signal.SIGALRM, parser.handle_timeout)
signal
.
alarm
(
parser
.
timeout
)
#
signal.alarm(parser.timeout)
res
=
parser
.
_handle
(
target
,
option
,
names
,
values
)
res
=
parser
.
_handle
(
target
,
option
,
names
,
values
)
signal
.
alarm
(
0
)
#
signal.alarm(0)
#if parser.verbose:
#if parser.verbose:
# print 'py_callback: handler returned:', res
# print 'py_callback: handler returned:', res
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment