summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-01-17 21:07:08 (GMT)
committerGuido van Rossum <guido@python.org>1997-01-17 21:07:08 (GMT)
commit98a9b312e8febb9bdcfdf37e05cf6f6692b9feff (patch)
treefd0531151aa46fd08f4f8e1358f64ba3e4f4154f /Python
parent7af8130857b81ef5e15901cd71212d7d4cda65db (diff)
downloadcpython-98a9b312e8febb9bdcfdf37e05cf6f6692b9feff.zip
cpython-98a9b312e8febb9bdcfdf37e05cf6f6692b9feff.tar.gz
cpython-98a9b312e8febb9bdcfdf37e05cf6f6692b9feff.tar.bz2
Marshal the new stacksize item in code objects.
Diffstat (limited to 'Python')
-rw-r--r--Python/marshal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index 2052495..6638c9d 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -244,6 +244,7 @@ w_object(v, p)
w_byte(TYPE_CODE, p);
w_short(co->co_argcount, p);
w_short(co->co_nlocals, p);
+ w_short(co->co_stacksize, p);
w_short(co->co_flags, p);
w_object((object *)co->co_code, p);
w_object(co->co_consts, p);
@@ -511,6 +512,7 @@ r_object(p)
{
int argcount = r_short(p);
int nlocals = r_short(p);
+ int stacksize = r_short(p);
int flags = r_short(p);
object *code = NULL;
object *consts = NULL;
@@ -528,7 +530,7 @@ r_object(p)
if (!err_occurred()) {
v = (object *) newcodeobject(
- argcount, nlocals, flags,
+ argcount, nlocals, stacksize, flags,
code, consts, names, varnames,
filename, name);
}