Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
26de61ba
Commit
26de61ba
authored
Oct 29, 2014
by
Travis Hance
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use (void)
parent
1d7dcaf1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
include/object.h
include/object.h
+4
-9
tools/tester.py
tools/tester.py
+1
-1
No files found.
include/object.h
View file @
26de61ba
...
@@ -825,13 +825,8 @@ PyAPI_FUNC(void) _Py_AddToAllObjects(PyObject *, int force);
...
@@ -825,13 +825,8 @@ PyAPI_FUNC(void) _Py_AddToAllObjects(PyObject *, int force);
#endif
/* !Py_TRACE_REFS */
#endif
/* !Py_TRACE_REFS */
// Pyston change: made Py_INCREF and Py_DECREF into noops
#define Py_INCREF(op) ((void)(op))
// written in a way that won't give "value not used" warnings. Use this empty
#define Py_DECREF(op) ((void)(op))
// method instead:
static
void
_Py_do_nothing
(
PyObject
*
unused
)
{
}
#define Py_INCREF(op) (_Py_do_nothing((PyObject*)(op)))
#define Py_DECREF(op) (_Py_do_nothing((PyObject*)(op)))
/* Safely decref `op` and set `op` to NULL, especially useful in tp_clear
/* Safely decref `op` and set `op` to NULL, especially useful in tp_clear
* and tp_dealloc implementatons.
* and tp_dealloc implementatons.
...
@@ -878,8 +873,8 @@ static void _Py_do_nothing(PyObject *unused) { }
...
@@ -878,8 +873,8 @@ static void _Py_do_nothing(PyObject *unused) { }
/* Macros to use in case the object pointer may be NULL: */
/* Macros to use in case the object pointer may be NULL: */
// Pyston change: made these noops as well
// Pyston change: made these noops as well
#define Py_XINCREF(op) (
_Py_do_nothing((PyObject*)(op)
))
#define Py_XINCREF(op) (
(void)(op
))
#define Py_XDECREF(op) (
_Py_do_nothing((PyObject*)(op)
))
#define Py_XDECREF(op) (
(void)(op
))
/*
/*
These are provided as conveniences to Python runtime embedders, so that
These are provided as conveniences to Python runtime embedders, so that
...
...
tools/tester.py
View file @
26de61ba
...
@@ -35,7 +35,7 @@ IMAGE = "pyston_dbg"
...
@@ -35,7 +35,7 @@ IMAGE = "pyston_dbg"
KEEP_GOING
=
False
KEEP_GOING
=
False
FN_JUST_SIZE
=
20
FN_JUST_SIZE
=
20
EXTRA_JIT_ARGS
=
[]
EXTRA_JIT_ARGS
=
[]
TIME_LIMIT
=
4
TIME_LIMIT
=
6
# For fun, can test pypy.
# For fun, can test pypy.
# Tough because the tester will check to see if the error messages are exactly the
# Tough because the tester will check to see if the error messages are exactly the
...
...
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