From 50ff75180531d097ed514c604eb216a438dc54e7 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 25 Feb 2005 22:30:50 +0000 Subject: [PATCH] * Don't use int32 in sources to be compiled for the build platform (Daniel Furrer). * The strace interface for the generated file changed. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11495 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/gensyscalls/gensyscalls.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tools/gensyscalls/gensyscalls.cpp b/src/tools/gensyscalls/gensyscalls.cpp index baf1ba1e87..a81ede7df0 100644 --- a/src/tools/gensyscalls/gensyscalls.cpp +++ b/src/tools/gensyscalls/gensyscalls.cpp @@ -256,7 +256,7 @@ public: << "(void)syscall;" << endl << "(void)handler;" << endl; - int32 chunkSize = (fSyscallCount + 19) / 20; + int chunkSize = (fSyscallCount + 19) / 20; // iterate through the syscalls for (int i = 0; i < fSyscallCount; i++) { @@ -276,8 +276,8 @@ public: file << "\t// " << syscall.name << endl; // create the return type handler - file << "\thandler = new TypeHandlerImpl<" << syscall.return_type - << ">();" << endl; + file << "\thandler = TypeHandlerFactory<" << syscall.return_type + << ">::Create();" << endl; // create the syscall file << "\tsyscall = new Syscall(\"" << syscall.name << "\", " @@ -285,13 +285,13 @@ public: file << "\tsyscalls.push_back(syscall);" << endl; // add the parameters - for (int32 k = 0; k < syscall.parameter_count; k++) { + for (int k = 0; k < syscall.parameter_count; k++) { const gensyscall_parameter_info ¶meter = syscall.parameters[k]; // create the parameter type handler - file << "\thandler = new TypeHandlerImpl<" - << parameter.type << ">();" << endl; + file << "\thandler = TypeHandlerFactory<" + << parameter.type << ">::Create();" << endl; // add the parameter file << "\tsyscall->AddParameter(\"" << parameter.name << "\", "