summaryrefslogtreecommitdiffstats
path: root/Python/traceback.c
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-07-22 18:47:25 (GMT)
committerThomas Wouters <thomas@python.org>2000-07-22 18:47:25 (GMT)
commitf70ef4f8606f99744252a804229d53a4d97601c1 (patch)
treebe401f2f10b39f0603e4cc0ae091335890410b7f /Python/traceback.c
parent0452d1f316903f0553a0d92e0673ff37247cdfa5 (diff)
downloadcpython-f70ef4f8606f99744252a804229d53a4d97601c1.zip
cpython-f70ef4f8606f99744252a804229d53a4d97601c1.tar.gz
cpython-f70ef4f8606f99744252a804229d53a4d97601c1.tar.bz2
Mass ANSIfication of function definitions. Doesn't cover all 'extern'
declarations yet, those come later.
Diffstat (limited to 'Python/traceback.c')
-rw-r--r--Python/traceback.c31
1 files changed, 8 insertions, 23 deletions
diff --git a/Python/traceback.c b/Python/traceback.c
index 8f6ff72..15b18b4 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -36,16 +36,13 @@ static struct memberlist tb_memberlist[] = {
};
static PyObject *
-tb_getattr(tb, name)
- tracebackobject *tb;
- char *name;
+tb_getattr(tracebackobject *tb, char *name)
{
return PyMember_Get((char *)tb, tb_memberlist, name);
}
static void
-tb_dealloc(tb)
- tracebackobject *tb;
+tb_dealloc(tracebackobject *tb)
{
Py_TRASHCAN_SAFE_BEGIN(tb)
Py_XDECREF(tb->tb_next);
@@ -75,10 +72,8 @@ PyTypeObject Tracebacktype = {
};
static tracebackobject *
-newtracebackobject(next, frame, lasti, lineno)
- tracebackobject *next;
- PyFrameObject *frame;
- int lasti, lineno;
+newtracebackobject(tracebackobject *next, PyFrameObject *frame, int lasti,
+ int lineno)
{
tracebackobject *tb;
if ((next != NULL && !is_tracebackobject(next)) ||
@@ -99,8 +94,7 @@ newtracebackobject(next, frame, lasti, lineno)
}
int
-PyTraceBack_Here(frame)
- PyFrameObject *frame;
+PyTraceBack_Here(PyFrameObject *frame)
{
PyThreadState *tstate = frame->f_tstate;
tracebackobject *oldtb = (tracebackobject *) tstate->curexc_traceback;
@@ -114,11 +108,7 @@ PyTraceBack_Here(frame)
}
static int
-tb_displayline(f, filename, lineno, name)
- PyObject *f;
- char *filename;
- int lineno;
- char *name;
+tb_displayline(PyObject *f, char *filename, int lineno, char *name)
{
int err = 0;
FILE *xfp;
@@ -206,10 +196,7 @@ tb_displayline(f, filename, lineno, name)
}
static int
-tb_printinternal(tb, f, limit)
- tracebackobject *tb;
- PyObject *f;
- int limit;
+tb_printinternal(tracebackobject *tb, PyObject *f, int limit)
{
int err = 0;
int depth = 0;
@@ -238,9 +225,7 @@ tb_printinternal(tb, f, limit)
}
int
-PyTraceBack_Print(v, f)
- PyObject *v;
- PyObject *f;
+PyTraceBack_Print(PyObject *v, PyObject *f)
{
int err;
PyObject *limitv;