demboyz/external/json_checker/include/json_checker/JSON_checker.h

25 lines
435 B
C

#pragma once
/* JSON_checker.h */
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef struct JSON_checker_struct {
int state;
int depth;
int top;
int* stack;
} * JSON_checker;
extern JSON_checker new_JSON_checker(int depth);
extern int JSON_checker_char(JSON_checker jc, int next_char);
extern int JSON_checker_done(JSON_checker jc);
#ifdef __cplusplus
} /* extern "C" */
#endif /* __cplusplus */