Mercurial > cpython-lru_cache-weakref
diff Python/traceback.c @ 13658:f79434ee41fa legacy-trunk
Mass ANSIfication of function definitions. Doesn't cover all 'extern'
declarations yet, those come later.
| author | Thomas Wouters <thomas@python.org> |
|---|---|
| date | Sat, 22 Jul 2000 18:47:25 +0000 |
| parents | 87ee82e5c56d |
| children | 6f6f965c5e2d |
line wrap: on
line diff
--- a/Python/traceback.c Sat Jul 22 18:45:06 2000 +0000 +++ b/Python/traceback.c Sat Jul 22 18:47:25 2000 +0000 @@ -36,16 +36,13 @@ }; 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 @@ }; 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 @@ } 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 @@ } 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 @@ } 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 @@ } int -PyTraceBack_Print(v, f) - PyObject *v; - PyObject *f; +PyTraceBack_Print(PyObject *v, PyObject *f) { int err; PyObject *limitv;
