[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
Stefan Seefeld stefan at synopsis.fresco.orgTue Jan 13 07:43:10 UTC 2004
- Previous message: [Synopsis-changes] Synopsis/Synopsis/include/Synopsis/AST ASTModule.hh,1.1,1.2 SourceFile.hh,1.2,1.3
- Next message: [Synopsis-changes] Synopsis/Synopsis/tests/Cxx-API/Synopsis/AST/src Makefile,1.1,1.2 SourceFile.cc,1.1,1.2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvs/synopsis/Synopsis/tests/Cxx-API/Python/src
In directory frida:/tmp/cvs-serv25917/tests/Cxx-API/Python/src
Modified Files:
Interpreter.cc Makefile Tuple.cc
Log Message:
bug fixes
Index: Interpreter.cc
===================================================================
RCS file: /cvs/synopsis/Synopsis/tests/Cxx-API/Python/src/Interpreter.cc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -d -r1.2 -r1.3
--- Interpreter.cc 11 Jan 2004 19:45:21 -0000 1.2
+++ Interpreter.cc 13 Jan 2004 07:43:08 -0000 1.3
@@ -60,9 +60,8 @@ void test3()
Object o = type.call();
o = type.call(args);
o = type.call(args, kwds);
- o.call("execute");
- Callable c(o.attr("execute"));
- c.call();
+ Callable method = o.attr("execute");
+ method.call();
}
int main(int, char **)
Index: Makefile
===================================================================
RCS file: /cvs/synopsis/Synopsis/tests/Cxx-API/Python/src/Makefile,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -d -r1.2 -r1.3
--- Makefile 11 Jan 2004 19:45:21 -0000 1.2
+++ Makefile 13 Jan 2004 07:43:08 -0000 1.3
@@ -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: Tuple.cc
===================================================================
RCS file: /cvs/synopsis/Synopsis/tests/Cxx-API/Python/src/Tuple.cc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -d -r1.1 -r1.2
--- Tuple.cc 9 Jan 2004 20:03:26 -0000 1.1
+++ Tuple.cc 13 Jan 2004 07:43:08 -0000 1.2
@@ -1,4 +1,5 @@
#include <Synopsis/Tuple.hh>
+#include <Synopsis/List.hh>
#include "Guard.hh"
#include <string>
#include <iostream>
@@ -12,7 +13,7 @@ void test1()
list.append(1);
list.append("hello");
list.append("world");
- Tuple tuple(list);
+ Tuple tuple = list.tuple();
std::cout << Object::narrow<const char *>(tuple.str()) << std::endl;
Object object(tuple);
tuple = Object::narrow<Tuple>(object);
- Previous message: [Synopsis-changes] Synopsis/Synopsis/include/Synopsis/AST ASTModule.hh,1.1,1.2 SourceFile.hh,1.2,1.3
- Next message: [Synopsis-changes] Synopsis/Synopsis/tests/Cxx-API/Synopsis/AST/src Makefile,1.1,1.2 SourceFile.cc,1.1,1.2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Synopsis-changes mailing list