mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Merged revisions 86540 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86540 | benjamin.peterson | 2010-11-19 20:01:45 -0600 (Fri, 19 Nov 2010) | 1 line c89 declarations ........
This commit is contained in:
parent
aab9585130
commit
e82c169622
2 changed files with 11 additions and 11 deletions
|
@ -366,9 +366,9 @@ class Obj2ModVisitor(PickleVisitor):
|
||||||
self.emit("obj2ast_%s(PyObject* obj, %s* out, PyArena* arena)" % (name, ctype), 0)
|
self.emit("obj2ast_%s(PyObject* obj, %s* out, PyArena* arena)" % (name, ctype), 0)
|
||||||
self.emit("{", 0)
|
self.emit("{", 0)
|
||||||
self.emit("PyObject* tmp = NULL;", 1)
|
self.emit("PyObject* tmp = NULL;", 1)
|
||||||
|
self.emit("int isinstance;", 1)
|
||||||
# Prevent compiler warnings about unused variable.
|
# Prevent compiler warnings about unused variable.
|
||||||
self.emit("tmp = tmp;", 1)
|
self.emit("tmp = tmp;", 1)
|
||||||
self.emit("int isinstance;", 1)
|
|
||||||
self.emit("", 0)
|
self.emit("", 0)
|
||||||
|
|
||||||
def sumTrailer(self, name, add_label=False):
|
def sumTrailer(self, name, add_label=False):
|
||||||
|
|
|
@ -3379,8 +3379,8 @@ int
|
||||||
obj2ast_mod(PyObject* obj, mod_ty* out, PyArena* arena)
|
obj2ast_mod(PyObject* obj, mod_ty* out, PyArena* arena)
|
||||||
{
|
{
|
||||||
PyObject* tmp = NULL;
|
PyObject* tmp = NULL;
|
||||||
tmp = tmp;
|
|
||||||
int isinstance;
|
int isinstance;
|
||||||
|
tmp = tmp;
|
||||||
|
|
||||||
|
|
||||||
if (obj == Py_None) {
|
if (obj == Py_None) {
|
||||||
|
@ -3528,8 +3528,8 @@ int
|
||||||
obj2ast_stmt(PyObject* obj, stmt_ty* out, PyArena* arena)
|
obj2ast_stmt(PyObject* obj, stmt_ty* out, PyArena* arena)
|
||||||
{
|
{
|
||||||
PyObject* tmp = NULL;
|
PyObject* tmp = NULL;
|
||||||
tmp = tmp;
|
|
||||||
int isinstance;
|
int isinstance;
|
||||||
|
tmp = tmp;
|
||||||
|
|
||||||
int lineno;
|
int lineno;
|
||||||
int col_offset;
|
int col_offset;
|
||||||
|
@ -4725,8 +4725,8 @@ int
|
||||||
obj2ast_expr(PyObject* obj, expr_ty* out, PyArena* arena)
|
obj2ast_expr(PyObject* obj, expr_ty* out, PyArena* arena)
|
||||||
{
|
{
|
||||||
PyObject* tmp = NULL;
|
PyObject* tmp = NULL;
|
||||||
tmp = tmp;
|
|
||||||
int isinstance;
|
int isinstance;
|
||||||
|
tmp = tmp;
|
||||||
|
|
||||||
int lineno;
|
int lineno;
|
||||||
int col_offset;
|
int col_offset;
|
||||||
|
@ -5841,8 +5841,8 @@ int
|
||||||
obj2ast_expr_context(PyObject* obj, expr_context_ty* out, PyArena* arena)
|
obj2ast_expr_context(PyObject* obj, expr_context_ty* out, PyArena* arena)
|
||||||
{
|
{
|
||||||
PyObject* tmp = NULL;
|
PyObject* tmp = NULL;
|
||||||
tmp = tmp;
|
|
||||||
int isinstance;
|
int isinstance;
|
||||||
|
tmp = tmp;
|
||||||
|
|
||||||
isinstance = PyObject_IsInstance(obj, (PyObject *)Load_type);
|
isinstance = PyObject_IsInstance(obj, (PyObject *)Load_type);
|
||||||
if (isinstance == -1) {
|
if (isinstance == -1) {
|
||||||
|
@ -5901,8 +5901,8 @@ int
|
||||||
obj2ast_slice(PyObject* obj, slice_ty* out, PyArena* arena)
|
obj2ast_slice(PyObject* obj, slice_ty* out, PyArena* arena)
|
||||||
{
|
{
|
||||||
PyObject* tmp = NULL;
|
PyObject* tmp = NULL;
|
||||||
tmp = tmp;
|
|
||||||
int isinstance;
|
int isinstance;
|
||||||
|
tmp = tmp;
|
||||||
|
|
||||||
|
|
||||||
if (obj == Py_None) {
|
if (obj == Py_None) {
|
||||||
|
@ -6024,8 +6024,8 @@ int
|
||||||
obj2ast_boolop(PyObject* obj, boolop_ty* out, PyArena* arena)
|
obj2ast_boolop(PyObject* obj, boolop_ty* out, PyArena* arena)
|
||||||
{
|
{
|
||||||
PyObject* tmp = NULL;
|
PyObject* tmp = NULL;
|
||||||
tmp = tmp;
|
|
||||||
int isinstance;
|
int isinstance;
|
||||||
|
tmp = tmp;
|
||||||
|
|
||||||
isinstance = PyObject_IsInstance(obj, (PyObject *)And_type);
|
isinstance = PyObject_IsInstance(obj, (PyObject *)And_type);
|
||||||
if (isinstance == -1) {
|
if (isinstance == -1) {
|
||||||
|
@ -6052,8 +6052,8 @@ int
|
||||||
obj2ast_operator(PyObject* obj, operator_ty* out, PyArena* arena)
|
obj2ast_operator(PyObject* obj, operator_ty* out, PyArena* arena)
|
||||||
{
|
{
|
||||||
PyObject* tmp = NULL;
|
PyObject* tmp = NULL;
|
||||||
tmp = tmp;
|
|
||||||
int isinstance;
|
int isinstance;
|
||||||
|
tmp = tmp;
|
||||||
|
|
||||||
isinstance = PyObject_IsInstance(obj, (PyObject *)Add_type);
|
isinstance = PyObject_IsInstance(obj, (PyObject *)Add_type);
|
||||||
if (isinstance == -1) {
|
if (isinstance == -1) {
|
||||||
|
@ -6160,8 +6160,8 @@ int
|
||||||
obj2ast_unaryop(PyObject* obj, unaryop_ty* out, PyArena* arena)
|
obj2ast_unaryop(PyObject* obj, unaryop_ty* out, PyArena* arena)
|
||||||
{
|
{
|
||||||
PyObject* tmp = NULL;
|
PyObject* tmp = NULL;
|
||||||
tmp = tmp;
|
|
||||||
int isinstance;
|
int isinstance;
|
||||||
|
tmp = tmp;
|
||||||
|
|
||||||
isinstance = PyObject_IsInstance(obj, (PyObject *)Invert_type);
|
isinstance = PyObject_IsInstance(obj, (PyObject *)Invert_type);
|
||||||
if (isinstance == -1) {
|
if (isinstance == -1) {
|
||||||
|
@ -6204,8 +6204,8 @@ int
|
||||||
obj2ast_cmpop(PyObject* obj, cmpop_ty* out, PyArena* arena)
|
obj2ast_cmpop(PyObject* obj, cmpop_ty* out, PyArena* arena)
|
||||||
{
|
{
|
||||||
PyObject* tmp = NULL;
|
PyObject* tmp = NULL;
|
||||||
tmp = tmp;
|
|
||||||
int isinstance;
|
int isinstance;
|
||||||
|
tmp = tmp;
|
||||||
|
|
||||||
isinstance = PyObject_IsInstance(obj, (PyObject *)Eq_type);
|
isinstance = PyObject_IsInstance(obj, (PyObject *)Eq_type);
|
||||||
if (isinstance == -1) {
|
if (isinstance == -1) {
|
||||||
|
@ -6360,8 +6360,8 @@ int
|
||||||
obj2ast_excepthandler(PyObject* obj, excepthandler_ty* out, PyArena* arena)
|
obj2ast_excepthandler(PyObject* obj, excepthandler_ty* out, PyArena* arena)
|
||||||
{
|
{
|
||||||
PyObject* tmp = NULL;
|
PyObject* tmp = NULL;
|
||||||
tmp = tmp;
|
|
||||||
int isinstance;
|
int isinstance;
|
||||||
|
tmp = tmp;
|
||||||
|
|
||||||
int lineno;
|
int lineno;
|
||||||
int col_offset;
|
int col_offset;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue