search for: apifunction

Displaying 2 results from an estimated 2 matches for "apifunction".

Did you mean: addfunction
2006 Mar 23
0
Win32API patch?
...on RubyForge (Bug #3904): require ''Win32API'' RegFormat = Win32API.new(''user32'', ''RegisterClipboardFormat'', ''P'', ''I'') RegFormat.call(1) # Boom! I''ve traced the error to line 194 in Win32API.c: ret = ApiFunction(param); Where ApiFunction is defined as: FARPROC ApiFunction = (FARPROC)NUM2ULONG(obj_proc); Any idea what the patch should be? I''d rather get a TypeError than see a segfault. Dan
2010 May 27
1
[PATCH matahari] Introduces a multiplexer for taking requests and mapping them to APIs.
...tiplexer.h" + +#include "virtio/multiplexer.h" + +#include <cppunit/TestAssert.h> +#include <cppunit/TestCaller.h> +#include <cppunit/TestResult.h> +#include <cppunit/TestSuite.h> +#include <cppunit/ui/text/TestRunner.h> + +const string APINAME("testapifunction"); + +const char* +test_callback_function(const char* input) +{ + return input; +} + +TestMultiplexer::TestMultiplexer() + :TestCase("TestMultiplexer") +{} + +TestSuite* +TestMultiplexer::suite() +{ + CppUnit::TestSuite *result = new CppUnit::TestSuite("TestMultiplexer")...