[Synopsis-changes] Synopsis/Synopsis/tests/Cxx-API/Synopsis/AST/src Makefile,1.1,1.2 SourceFile.cc,1.1,1.2
Stefan Seefeld stefan at synopsis.fresco.orgTue Jan 13 07:43:11 UTC 2004
- Previous message: [Synopsis-changes] Synopsis/Synopsis/tests/Cxx-API/Python/src Interpreter.cc,1.2,1.3 Makefile,1.2,1.3 Tuple.cc,1.1,1.2
- Next message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Parsers/Cpp Parser.py,1.2,1.3 cpp.cc,1.3,1.4
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvs/synopsis/Synopsis/tests/Cxx-API/Synopsis/AST/src
In directory frida:/tmp/cvs-serv25917/tests/Cxx-API/Synopsis/AST/src
Modified Files:
Makefile SourceFile.cc
Log Message:
bug fixes
Index: Makefile
===================================================================
RCS file: /cvs/synopsis/Synopsis/tests/Cxx-API/Synopsis/AST/src/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -d -r1.1 -r1.2
--- Makefile 11 Jan 2004 19:45:21 -0000 1.1
+++ Makefile 13 Jan 2004 07:43:08 -0000 1.2
@@ -14,7 +14,7 @@ PYVERSION:=$(shell $(python) -c "from di
PYINC :=$(shell $(python) -c "from distutils import sysconfig; print sysconfig.get_python_inc()")
PYLIBS :=-L $(PYPREFIX)/lib/python$(PYVERSION)/config -lpython$(PYVERSION) -ldl -lutil -lpthread
-CPPFLAGS:= -I ../../../../include -I $(PYINC)
+CPPFLAGS:= -I ../../../../../include -I $(PYINC)
LDFLAGS := -rdynamic
LIBS := $(PYLIBS)
Index: SourceFile.cc
===================================================================
RCS file: /cvs/synopsis/Synopsis/tests/Cxx-API/Synopsis/AST/src/SourceFile.cc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -d -r1.1 -r1.2
--- SourceFile.cc 11 Jan 2004 19:45:21 -0000 1.1
+++ SourceFile.cc 13 Jan 2004 07:43:08 -0000 1.2
@@ -23,10 +23,17 @@ void test1()
{
ASTModule module = Synopsis::ASTModule();
SourceFile sf = module.create_source_file("filename", "/long/filename", "C++");
+ sf.is_main(true);
std::cout << "created source file "
<< sf.name() << ' '
<< sf.long_name() << ' '
<< sf.is_main() << std::endl;
+
+ MacroCall mc = module.create_macro_call("FOO", 1, 2, 3);
+ Dict mmap = sf.macro_calls();
+ List line = mmap.get(0, List());
+ line.append(mc);
+ mmap.set(0, line);
}
int main(int, char **)
- Previous message: [Synopsis-changes] Synopsis/Synopsis/tests/Cxx-API/Python/src Interpreter.cc,1.2,1.3 Makefile,1.2,1.3 Tuple.cc,1.1,1.2
- Next message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Parsers/Cpp Parser.py,1.2,1.3 cpp.cc,1.3,1.4
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Synopsis-changes mailing list