SWIG bindings build, compile, and appear to work for python. Will port over tests next.

This commit is contained in:
Meredith L. Patterson 2013-11-16 20:24:05 +01:00
parent c54f63871a
commit fc63ee5d1b
2 changed files with 9 additions and 3 deletions

View file

@ -1,5 +1,11 @@
%module hammer %module hammer
%import "allocator.h" %{
%import "hammer.h" #include "allocator.h"
#include "hammer.h"
#include "internal.h"
%}
%include "allocator.h"
%include "hammer.h"

View file

@ -660,7 +660,7 @@ HParsedToken *h_act_ignore(const HParseResult *p);
// {{{ Benchmark functions // {{{ Benchmark functions
HAMMER_FN_DECL(HBenchmarkResults *, h_benchmark, HParser* parser, HParserTestcase* testcases); HAMMER_FN_DECL(HBenchmarkResults *, h_benchmark, HParser* parser, HParserTestcase* testcases);
void h_benchmark_report(FILE* stream, HBenchmarkResults* results); void h_benchmark_report(FILE* stream, HBenchmarkResults* results);
void h_benchmark_dump_optimized_code(FILE* stream, HBenchmarkResults* results); //void h_benchmark_dump_optimized_code(FILE* stream, HBenchmarkResults* results);
// }}} // }}}
#endif // #ifndef HAMMER_HAMMER__H #endif // #ifndef HAMMER_HAMMER__H