diff options
author | Eli Bendersky <eliben@gmail.com> | 2015-05-18 06:33:01 -0700 |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2015-05-18 06:33:01 -0700 |
commit | 3a5bfeab5d0a4e76bb1399b0208950072b28d6af (patch) | |
tree | 7c59ae5a69db248606e4f5b81c704090543a262a | |
parent | a1334e5550b17a52d1826d0732d01f98412fd1ce (diff) | |
download | pycparser-3a5bfeab5d0a4e76bb1399b0208950072b28d6af.tar.gz |
Wipe out more mentions of lcc's cpp
-rw-r--r-- | MANIFEST.in | 1 | ||||
-rw-r--r-- | README.rst | 3 | ||||
-rw-r--r-- | examples/using_cpp_libc.py | 5 | ||||
-rw-r--r-- | tests/test_general.py | 3 |
4 files changed, 2 insertions, 10 deletions
diff --git a/MANIFEST.in b/MANIFEST.in index b8d22eb..621efc8 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,7 +1,6 @@ recursive-include examples *.c *.h *.py recursive-include tests *.c *.h *.py recursive-include pycparser *.py *.cfg -include utils/*.exe include utils/fake_libc_include/*.h include README.* include LICENSE @@ -207,9 +207,6 @@ pycparser/: tests/: Unit tests. -utils/cpp.exe: - A Windows executable of the C pre-processor suitable for working with pycparser - utils/fake_libc_include: Minimal standard C library include files that should allow to parse any C code. diff --git a/examples/using_cpp_libc.py b/examples/using_cpp_libc.py index 89ca68c..bc529a0 100644 --- a/examples/using_cpp_libc.py +++ b/examples/using_cpp_libc.py @@ -15,9 +15,6 @@ import sys # sys.path.extend(['.', '..']) -# Portable cpp path for Windows and Linux/Unix -CPPPATH = 'utils/cpp.exe' if sys.platform == 'win32' else 'cpp' - from pycparser import parse_file @@ -28,7 +25,7 @@ if __name__ == "__main__": filename = 'examples/c_files/year.c' ast = parse_file(filename, use_cpp=True, - cpp_path=CPPPATH, + cpp_path='cpp', cpp_args=r'-Iutils/fake_libc_include') ast.show() diff --git a/tests/test_general.py b/tests/test_general.py index 5ab8272..2c661d7 100644 --- a/tests/test_general.py +++ b/tests/test_general.py @@ -4,8 +4,7 @@ import unittest sys.path.insert(0, '..') from pycparser import parse_file, c_ast -# Portable cpp path for Windows and Linux/Unix -CPPPATH = 'utils/cpp.exe' if sys.platform == 'win32' else 'cpp' +CPPPATH = 'cpp' # Test successful parsing |