]> granicus.if.org Git - python/commitdiff
Move peephole optimizer to separate file. (Forgot .h in previous checkin.)
authorJeremy Hylton <jeremy@alum.mit.edu>
Mon, 21 Aug 2006 16:20:29 +0000 (16:20 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Mon, 21 Aug 2006 16:20:29 +0000 (16:20 +0000)
Include/code.h

index 334ebab4296a5d438a3b002837202a736afc1ee5..6c0e706df6f079f981db905090744d1b6d346729 100644 (file)
@@ -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