summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2006-08-21 16:20:29 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2006-08-21 16:20:29 (GMT)
commit271d59343b1de64d5e070eb170fabc0419d75bf8 (patch)
treedc26ec58d9e8c30d026b8989ddd3111653a754ae
parent644dddcc3f0ae886fe92f23cdce3e24c5e032566 (diff)
downloadcpython-271d59343b1de64d5e070eb170fabc0419d75bf8.zip
cpython-271d59343b1de64d5e070eb170fabc0419d75bf8.tar.gz
cpython-271d59343b1de64d5e070eb170fabc0419d75bf8.tar.bz2
Move peephole optimizer to separate file. (Forgot .h in previous checkin.)
-rw-r--r--Include/code.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/code.h b/Include/code.h
index 334ebab..6c0e706 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