json-gen-c  0.1.5
json-gen-c generate C code for json manipulation
gencode.h
Go to the documentation of this file.
1
7#ifndef GENCODE_H_
8#define GENCODE_H_
9
10#include "utils/hash_map.h"
11#include "utils/sstr.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17// the output file names
18#define OUTPUT_C_FILENAME "json.gen.c"
19#define OUTPUT_H_FILENAME "json.gen.h"
20
30int gencode_source(struct hash_map* struct_map, sstr_t source, sstr_t header);
31
32#ifdef __cplusplus
33}
34#endif
35
36#endif // GENCODE_H_
int gencode_source(struct hash_map *struct_map, sstr_t source, sstr_t header)
generate json manipulate codes by struct_map into source and header.
Definition gencode.c:874
A simple hash_map implementation.
sstr_t are objects that represent sequences of characters.
void * sstr_t
sstr_t are objects that represent sequences of characters.
Definition sstr.h:73
Definition hash_map.h:34