fixed bch mode issues and raised the version to 0.9.9

This commit is contained in:
2025-02-11 17:43:46 +09:00
parent 6a59d3c70b
commit b80ee515b6
11 changed files with 113 additions and 20 deletions

25
t/t-007.c Normal file
View File

@ -0,0 +1,25 @@
#include <hawk-json.h>
#include <stdio.h>
#include "tap.h"
static int on_json_element (hawk_json_t* json, hawk_json_inst_t inst, const hawk_oocs_t* str)
{
printf ("%d\n", inst);
return 0;
}
int main ()
{
hawk_json_t* json;
hawk_json_prim_t prim;
no_plan();
prim.instcb = on_json_element;
json = hawk_json_openstd(0, &prim, HAWK_NULL);
OK (json != HAWK_NULL, "instantiation must be successful");
hawk_json_close(json);
return exit_status();
}