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 committed by Dan Hirsch
parent 0e4253d0ef
commit 73eabc7bf9
2 changed files with 9 additions and 3 deletions

View file

@ -1,5 +1,11 @@
%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, void* userdata);
// {{{ Benchmark functions
HAMMER_FN_DECL(HBenchmarkResults *, h_benchmark, HParser* parser, HParserTestcase* testcases);
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);
// }}}
// {{{ Token type registry