mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #16166: Add PY_LITTLE_ENDIAN and PY_BIG_ENDIAN macros and unified
endianess detection and handling.
This commit is contained in:
parent
1e9af84e2e
commit
743e0cd6b5
15 changed files with 78 additions and 107 deletions
|
|
@ -32,10 +32,10 @@ def cleanup(f):
|
|||
if line.startswith("typedef unsigned long long int"):
|
||||
buf.append("/* %s */\n" % line.strip())
|
||||
continue
|
||||
## remove #include "brg_endian.h"
|
||||
#if "brg_endian.h" in line:
|
||||
# buf.append("/* %s */\n" % line.strip())
|
||||
# continue
|
||||
# remove #include "brg_endian.h"
|
||||
if "brg_endian.h" in line:
|
||||
buf.append("/* %s */\n" % line.strip())
|
||||
continue
|
||||
# transform C++ comments into ANSI C comments
|
||||
line = CPP1.sub(r"/* \1 */", line)
|
||||
line = CPP2.sub(r" /* \1 */", line)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue