mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
Backport METH_FASTCALL from Python 3.7 (#328)
This commit is contained in:
parent
70c97f598b
commit
cf73bbd678
102 changed files with 2896 additions and 3301 deletions
2
third_party/python/pycomp.c
vendored
2
third_party/python/pycomp.c
vendored
|
@ -137,7 +137,7 @@ main(int argc, char *argv[])
|
|||
p = PyBytes_AS_STRING(marshalled);
|
||||
n = PyBytes_GET_SIZE(marshalled);
|
||||
CHECK_NE(-1, (fd = open(outpath, O_CREAT|O_TRUNC|O_WRONLY, 0644)));
|
||||
WRITE16LE(m+0, 3379); /* Python 3.6rc1 */
|
||||
WRITE16LE(m+0, 3390); /* Python 3.7a1 */
|
||||
WRITE16LE(m+2, READ16LE("\r\n"));
|
||||
WRITE32LE(m+4, st.st_mtim.tv_sec); /* tsk tsk y2038 */
|
||||
WRITE32LE(m+8, n);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue