Mercurial > cpython-lru_cache-weakref
diff Python/marshal.c @ 4995:267ed480ec1b legacy-trunk
Marshal the new stacksize item in code objects.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 17 Jan 1997 21:07:08 +0000 |
| parents | 186c2ad4abf3 |
| children | 9b7e0cf51990 |
line wrap: on
line diff
--- a/Python/marshal.c Fri Jan 17 21:06:41 1997 +0000 +++ b/Python/marshal.c Fri Jan 17 21:07:08 1997 +0000 @@ -244,6 +244,7 @@ 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 @@ { 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 @@ if (!err_occurred()) { v = (object *) newcodeobject( - argcount, nlocals, flags, + argcount, nlocals, stacksize, flags, code, consts, names, varnames, filename, name); }
