From 271d59343b1de64d5e070eb170fabc0419d75bf8 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Mon, 21 Aug 2006 16:20:29 +0000 Subject: [PATCH] Move peephole optimizer to separate file. (Forgot .h in previous checkin.) --- Include/code.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Include/code.h b/Include/code.h index 334ebab4296..6c0e706df6f 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