Includes: - fix int64x64 parsing order, remove cached entries in macros-and-definitions and in the docs - update launch.json scratch names - add a ctest entry per executable - forward POSIX signal in ns3 (to get segmentation fault) - prioritize Ninja generator instead of Makefiles - add tests for unused utils source files - remove dummy file and add tests to check for unused source files - add missing examples and clean up unnecessary definitions - missing feature entry for LTE used by pybindgen - refactor CMake related filenames - fix python libraries and include directories bindings - fix brite example name - Keep C++ compiler and flags when refreshing - Disable precompiled headers when Ccache is found - Mark find_external_library headers as advanced - consolidate auxiliary files: build-status.py, _cache.py and .lock-waf_sys.platform_build files are merged into .lock-ns3_sys.platform_build - scan .cc sources used in bindings and update docs
16 lines
557 B
Python
16 lines
557 B
Python
#! /usr/bin/env python3
|
|
# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
|
|
|
|
def lp64_to_ilp32(lp64path, ilp32path):
|
|
import re
|
|
lp64bindings = None
|
|
with open(lp64path, "r") as lp64file:
|
|
lp64bindings = lp64file.read()
|
|
with open(ilp32path, "w") as ilp32file:
|
|
ilp32bindings = re.sub("unsigned long(?!( long))", "unsigned long long", lp64bindings)
|
|
ilp32file.write(ilp32bindings)
|
|
|
|
if __name__ == "__main__":
|
|
import sys
|
|
print(sys.argv)
|
|
exit(lp64_to_ilp32(sys.argv[1], sys.argv[2])) |