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
14
extern
"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
30
int
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_
sstr_t
void * sstr_t
sstr_t are objects that represent sequences of characters.
Definition:
sstr.h:73
hash_map
Definition:
hash_map.h:34
sstr.h
sstr_t are objects that represent sequences of characters.
hash_map.h
A simple hash_map implementation.
gencode_source
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
src
gencode
gencode.h
Generated by
1.8.17