diff options
author | Eli Bendersky <eliben@gmail.com> | 2016-02-26 05:39:35 -0800 |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2016-02-26 05:39:35 -0800 |
commit | ad938363e4f0f2bcb8349e0ad77be0f8d4fce56c (patch) | |
tree | bc696f25cc22d6c3c6e9a0751fa6bf5698864f27 /examples | |
parent | bf6aa16944ed88d6b9135a8b185e1bc31ad4c30b (diff) | |
download | pycparser-ad938363e4f0f2bcb8349e0ad77be0f8d4fce56c.tar.gz |
Clarify where examples should be run from
Diffstat (limited to 'examples')
-rw-r--r-- | examples/README.rst | 1 | ||||
-rw-r--r-- | examples/using_cpp_libc.py | 3 | ||||
-rw-r--r-- | examples/using_gcc_E_libc.py | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/examples/README.rst b/examples/README.rst new file mode 100644 index 0000000..a828cce --- /dev/null +++ b/examples/README.rst @@ -0,0 +1 @@ +Run these examples from the root directory of pycparser diff --git a/examples/using_cpp_libc.py b/examples/using_cpp_libc.py index bc529a0..4fdf881 100644 --- a/examples/using_cpp_libc.py +++ b/examples/using_cpp_libc.py @@ -25,7 +25,6 @@ if __name__ == "__main__": filename = 'examples/c_files/year.c' ast = parse_file(filename, use_cpp=True, - cpp_path='cpp', + cpp_path='cpp', cpp_args=r'-Iutils/fake_libc_include') - ast.show() diff --git a/examples/using_gcc_E_libc.py b/examples/using_gcc_E_libc.py index 789c0c3..8c9e713 100644 --- a/examples/using_gcc_E_libc.py +++ b/examples/using_gcc_E_libc.py @@ -27,5 +27,4 @@ if __name__ == "__main__": ast = parse_file(filename, use_cpp=True, cpp_path='gcc', cpp_args=['-E', r'-Iutils/fake_libc_include']) - ast.show() |