Some code of which I currently have no idea of it's purpose.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

32 lines
619 B

#include <stdio.h>
#include <string.h>
#include <json/json.h>
#include "bigpoint_cclass.h"
#include "bigpoint_dyntype.h"
int
main(int argc, char * argv[])
{
struct json_object * json = json_object_new_int(123);
struct BIGPOINT_DYNTYPE * dyn = newFromJson(BIGPOINT_DYNTYPE, json);
printf("%d\n", (dyn->data)._int);
delete(dyn);
json_object_put(json);
dyn = new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_INT, sizeof(int), 321);
json = toJson(dyn);
printf("%s\n", json_object_to_json_string(json));
delete(dyn);
json_object_put(json);
return 0;
}
// vim: set et ts=4 sw=4: