Re: C implementation of Test::Harness' TAP protocol

2004-12-08 Thread muppet
On Dec 7, 2004, at 9:25 PM, Andrew Savige wrote: /* Horrible hacky thread-unsafe version but no XX */ ... static const char* g_file; static unsigned long g_line; i forgot to mention, the way around the non-thread-safety here is to use thread-local storage. c.f. pthread_key_create() and

Re: C implementation of Test::Harness' TAP protocol

2004-12-07 Thread muppet
On Dec 7, 2004, at 4:07 AM, Clayton, Nik wrote: Michael G Schwern wrote: On Mon, Dec 06, 2004 at 10:00:32AM -, Clayton, Nik wrote: Then you have one of ok() or ok2() at your disposal. ok()'s first parameter is the code to test. The second parameter is the test name. This is a printf()like

Re: Wrapping C/C++ libraries

2003-10-28 Thread muppet
, and call the C program with the converted structure. An example of an elegent system which does this is in gtk2-perl (http://gtk2-perl.sourceforge.net). Muppet, please correct me if I am wrong here. gtk2-perl is a little picky about how structures and objects are represented in Perl