/* }}} */
#include "cycript.hpp"
+#include "JavaScript.hpp"
#include "Pooling.hpp"
#include "Parser.hpp"
+#include "Context.hpp"
#include "Cycript.tab.hh"
} else {
NSAutoreleasePool *ar = [[NSAutoreleasePool alloc] init];
- CYContext context(driver.pool_);
+ CYOptions options;
+ CYContext context(driver.pool_, options);
driver.program_->Replace(context);
std::ostringstream str;
- CYOutput out(str);
+ CYOutput out(str, options);
out << *driver.program_;
std::string code(str.str());
CYExecute_ execute = {pool, code.c_str()};
}
extern "C" void CYHandleServer(pid_t pid) {
- CYInitialize();
+ CYInitializeDynamic();
int socket(_syscall(::socket(PF_UNIX, SOCK_STREAM, 0))); try {
struct sockaddr_un address;