[Synopsis-changes] Synopsis/Synopsis/tests/Cxx-API/Python/src Dict.cc,1.1,1.2 Interpreter.cc,1.3,1.4 List.cc,1.2,1.3 Tuple.cc,1.2,1.3
Stefan Seefeld stefan at synopsis.fresco.orgSat Jan 24 04:44:10 UTC 2004
- Previous message: [Synopsis-changes] Synopsis/Synopsis/include/Synopsis Interpreter.hh,1.2,1.3 List.hh,1.4,1.5 Module.hh,1.2,1.3 Object.hh,1.4,1.5
- Next message: [Synopsis-changes] Synopsis/Synopsis/include/Synopsis Kit.hh,NONE,1.1 TypedList.hh,NONE,1.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvs/synopsis/Synopsis/tests/Cxx-API/Python/src
In directory frida:/tmp/cvs-serv25757/tests/Cxx-API/Python/src
Modified Files:
Dict.cc Interpreter.cc List.cc Tuple.cc
Log Message:
API enhancements
Index: Dict.cc
===================================================================
RCS file: /cvs/synopsis/Synopsis/tests/Cxx-API/Python/src/Dict.cc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -d -r1.1 -r1.2
--- Dict.cc 9 Jan 2004 20:03:26 -0000 1.1
+++ Dict.cc 24 Jan 2004 04:44:07 -0000 1.2
@@ -1,4 +1,4 @@
-#include <Synopsis/Dict.hh>
+#include <Synopsis/Object.hh>
#include "Guard.hh"
#include <string>
#include <iostream>
Index: Interpreter.cc
===================================================================
RCS file: /cvs/synopsis/Synopsis/tests/Cxx-API/Python/src/Interpreter.cc,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -d -r1.3 -r1.4
--- Interpreter.cc 13 Jan 2004 07:43:08 -0000 1.3
+++ Interpreter.cc 24 Jan 2004 04:44:07 -0000 1.4
@@ -1,6 +1,5 @@
#include <iostream>
#include <Synopsis/Interpreter.hh>
-#include <Synopsis/Callable.hh>
#include <Synopsis/Module.hh>
#include <string>
#include <cstdio>
@@ -52,16 +51,16 @@ void test3()
Dict local;
Object retn = interp.run_file("Command.py", Interpreter::FILE,
global, local);
- Callable type = local.get("Command");
+ Object type = local.get("Command");
Tuple args("first", "second", "third");
Dict kwds;
kwds.set("input", "foo.h");
kwds.set("output", "foo.i");
- Object o = type.call();
- o = type.call(args);
- o = type.call(args, kwds);
- Callable method = o.attr("execute");
- method.call();
+ retn = type();
+ retn = type(args);
+ retn = type(args, kwds);
+ Object method = retn.attr("execute");
+ method();
}
int main(int, char **)
Index: List.cc
===================================================================
RCS file: /cvs/synopsis/Synopsis/tests/Cxx-API/Python/src/List.cc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -d -r1.2 -r1.3
--- List.cc 14 Jan 2004 04:04:54 -0000 1.2
+++ List.cc 24 Jan 2004 04:44:07 -0000 1.3
@@ -1,4 +1,4 @@
-#include <Synopsis/List.hh>
+#include <Synopsis/Object.hh>
#include "Guard.hh"
#include <string>
#include <iostream>
Index: Tuple.cc
===================================================================
RCS file: /cvs/synopsis/Synopsis/tests/Cxx-API/Python/src/Tuple.cc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -d -r1.2 -r1.3
--- Tuple.cc 13 Jan 2004 07:43:08 -0000 1.2
+++ Tuple.cc 24 Jan 2004 04:44:07 -0000 1.3
@@ -1,5 +1,4 @@
-#include <Synopsis/Tuple.hh>
-#include <Synopsis/List.hh>
+#include <Synopsis/Object.hh>
#include "Guard.hh"
#include <string>
#include <iostream>
- Previous message: [Synopsis-changes] Synopsis/Synopsis/include/Synopsis Interpreter.hh,1.2,1.3 List.hh,1.4,1.5 Module.hh,1.2,1.3 Object.hh,1.4,1.5
- Next message: [Synopsis-changes] Synopsis/Synopsis/include/Synopsis Kit.hh,NONE,1.1 TypedList.hh,NONE,1.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Synopsis-changes mailing list