[Synopsis-cvs] Synopsis/Synopsis/Synopsis/Parser/C++/syn occ.cc,1.87,1.88
Stefan Seefeld stefan at users.sourceforge.netThu Jul 31 17:24:07 UTC 2003
- Previous message: [Synopsis-cvs] Synopsis/Synopsis/Synopsis/Parser/C++ __init__.py,1.7,1.8
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/syn
In directory sc8-pr-cvs1:/tmp/cvs-serv20109/Synopsis/Parser/C++/syn
Modified Files:
occ.cc
Log Message:
accept '-Wp,-I,<filename>' and '-Wp,-D,<filename>'
Index: occ.cc
===================================================================
RCS file: /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/syn/occ.cc,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -p -d -r1.87 -r1.88
--- occ.cc 21 Mar 2003 21:31:23 -0000 1.87
+++ occ.cc 1 Aug 2003 00:23:16 -0000 1.88
@@ -24,6 +24,9 @@
// 02111-1307, USA.
// $Log$
+// Revision 1.88 2003/08/01 00:23:16 stefan
+// accept '-Wp,-I,<filename>' and '-Wp,-D,<filename>'
+//
// Revision 1.87 2003/03/21 21:31:23 stefan
// a fix to the fix...
//
@@ -316,9 +319,17 @@ Py_XDECREF(value);
{
const char *argument = PyString_AsString(PyList_GetItem(args, i));
if (strncmp(argument, "-I", 2) == 0)
- cppflags.push_back(argument);
+ {
+ cppflags.push_back(argument);
+ if (strlen(argument) == 2)
+ cppflags.push_back(PyString_AsString(PyList_GetItem(args, ++i)));
+ }
else if (strncmp(argument, "-D", 2) == 0)
- cppflags.push_back(argument);
+ {
+ cppflags.push_back(argument);
+ if (strlen(argument) == 2)
+ cppflags.push_back(PyString_AsString(PyList_GetItem(args, ++i)));
+ }
else if (strcmp(argument, "-v") == 0)
verbose = true;
else if (strcmp(argument, "-m") == 0)
- Previous message: [Synopsis-cvs] Synopsis/Synopsis/Synopsis/Parser/C++ __init__.py,1.7,1.8
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Synopsis-changes mailing list