From: Jeremy Hylton Date: Mon, 21 Aug 2006 16:20:29 +0000 (+0000) Subject: Move peephole optimizer to separate file. (Forgot .h in previous checkin.) X-Git-Tag: v2.6a1~2764 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=271d59343b1de64d5e070eb170fabc0419d75bf8;p=python Move peephole optimizer to separate file. (Forgot .h in previous checkin.) --- diff --git a/Include/code.h b/Include/code.h index 334ebab429..6c0e706df6 100644 --- a/Include/code.h +++ b/Include/code.h @@ -88,6 +88,9 @@ typedef struct _addr_pair { PyAPI_FUNC(int) PyCode_CheckLineNumber(PyCodeObject* co, int lasti, PyAddrPair *bounds); +PyAPI_FUNC(PyObject*) PyCode_Optimize(PyObject *code, PyObject* consts, + PyObject *names, PyObject *lineno_obj); + #ifdef __cplusplus } #endif