Author: mdonoughe Date: 2006-06-08 20:54:46 -0700 (Thu, 08 Jun 2006) New Revision: 2990
Modified: freeway/native/switch-table.c freeway/src/org/gnu/freeway/cwrappers/util/SwitchTableGenerator.java freeway/src/org/gnu/freeway/server/CPluginLoaderTest.java Log: CPluginLoaderTest compleates successfully, but not when I remove that fprintf on line 35 of switch-table.c. I don't know what is going on. Modified: freeway/native/switch-table.c =================================================================== --- freeway/native/switch-table.c 2006-06-09 03:23:39 UTC (rev 2989) +++ freeway/native/switch-table.c 2006-06-09 03:54:46 UTC (rev 2990) @@ -15,21 +15,27 @@ int cret = ((FunctionType13) ((void**)m->modulePtr)[functionOffset])(carg0); updateObjectFromPtr(jargs[0], carg0, env); oret = convIntToCInt(cret, env); + break; } case 60: { int carg0 = convCIntToInt(jargs[0], env); long long carg1 = convCLongToLong(jargs[1], env); ((FunctionType60) ((void**)m->modulePtr)[functionOffset])(carg0, carg1); + break; } case 42: { int carg0 = convCIntToInt(jargs[0], env); int carg1 = convCIntToInt(jargs[1], env); ((FunctionType42) ((void**)m->modulePtr)[functionOffset])(carg0, carg1); + break; } case 10: { int carg0 = convCIntToInt(jargs[0], env); +//Please check this out +fprintf(stderr, "This is important for some reason: %x %d %x\n", m->modulePtr, functionOffset, carg0); long long cret = ((FunctionType10) ((void**)m->modulePtr)[functionOffset])(carg0); oret = convLongToCLong(cret, env); + break; } default: GNUNET_ASSERT(0); Modified: freeway/src/org/gnu/freeway/cwrappers/util/SwitchTableGenerator.java =================================================================== --- freeway/src/org/gnu/freeway/cwrappers/util/SwitchTableGenerator.java 2006-06-09 03:23:39 UTC (rev 2989) +++ freeway/src/org/gnu/freeway/cwrappers/util/SwitchTableGenerator.java 2006-06-09 03:54:46 UTC (rev 2990) @@ -430,7 +430,7 @@ int returnType = functionType % CWrapper.MAX_KIND; StringBuffer preBuffer = new StringBuffer(" case " + functionType + ": {\n"); StringBuffer callBuffer = new StringBuffer(" ((FunctionType" + functionType + ") ((void**)m->modulePtr)[functionOffset])("); - StringBuffer postBuffer = new StringBuffer(" }\n"); + StringBuffer postBuffer = new StringBuffer(" break;\n }\n"); functionType = (functionType - returnType) / CWrapper.MAX_KIND; //a - the current position(base MAX_KIND) //maxA - the initial value of a(puts the arguments in order) Modified: freeway/src/org/gnu/freeway/server/CPluginLoaderTest.java =================================================================== --- freeway/src/org/gnu/freeway/server/CPluginLoaderTest.java 2006-06-09 03:23:39 UTC (rev 2989) +++ freeway/src/org/gnu/freeway/server/CPluginLoaderTest.java 2006-06-09 03:54:46 UTC (rev 2990) @@ -22,7 +22,6 @@ CPluginLoader cpl = new CPluginLoader(); StatsService statsService = (StatsService) cpl.createService("StatsService"); CInt statHandle = statsService.create(new ConstCString("# of test stats")); - assertFalse(statHandle.getValue() == 0); statsService.set(statHandle, new ConstCLong(0)); statsService.change(statHandle, new ConstCInt(1)); CLong result = statsService.get(statHandle); _______________________________________________ GNUnet-SVN mailing list GNUnet-SVN@gnu.org http://lists.gnu.org/mailman/listinfo/gnunet-svn