diff options
author | Steven Knight <knight@baldmt.com> | 2003-04-17 01:46:02 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-04-17 01:46:02 (GMT) |
commit | f94405e6bc0edf859a2628c947c802e56eda1d2f (patch) | |
tree | b3ef60a9b5af813e4e59ae80b86f00684b8c1962 | |
parent | 6cb67d2e3695f64b0b335564054b4a87d6875e94 (diff) | |
download | SCons-f94405e6bc0edf859a2628c947c802e56eda1d2f.zip SCons-f94405e6bc0edf859a2628c947c802e56eda1d2f.tar.gz SCons-f94405e6bc0edf859a2628c947c802e56eda1d2f.tar.bz2 |
Support the #import C preprocessor directive. (Greg Spencer)
-rw-r--r-- | src/CHANGES.txt | 4 | ||||
-rw-r--r-- | src/engine/SCons/Scanner/C.py | 2 | ||||
-rw-r--r-- | src/engine/SCons/Scanner/CTests.py | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt index 11658ff..eb385e3 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -65,6 +65,10 @@ RELEASE 0.14 - XXX - Add support for using Ghostscript to convert Postscript to PDF files. + From Greg Spencer: + + - Support the C preprocessor #import statement. + RELEASE 0.13 - Mon, 31 Mar 2003 20:22:00 -0600 diff --git a/src/engine/SCons/Scanner/C.py b/src/engine/SCons/Scanner/C.py index b59e66b..c06774d 100644 --- a/src/engine/SCons/Scanner/C.py +++ b/src/engine/SCons/Scanner/C.py @@ -38,7 +38,7 @@ import SCons.Scanner import SCons.Util import SCons.Warnings -include_re = re.compile('^[ \t]*#[ \t]*include[ \t]+(<|")([^>"]+)(>|")', re.M) +include_re = re.compile('^[ \t]*#[ \t]*(?:include|import)[ \t]+(<|")([^>"]+)(>|")', re.M) def CScan(fs = SCons.Node.FS.default_fs): """Return a prototype Scanner instance for scanning source files diff --git a/src/engine/SCons/Scanner/CTests.py b/src/engine/SCons/Scanner/CTests.py index c865e6e..907ad64 100644 --- a/src/engine/SCons/Scanner/CTests.py +++ b/src/engine/SCons/Scanner/CTests.py @@ -52,7 +52,7 @@ test.write('f2.cpp',""" #include \"d1/f1.h\" #include <d2/f1.h> #include \"f1.h\" -#include <f4.h> +#import <f4.h> int main() { |