Changed json_checker to cpp file to fix clang build

This commit is contained in:
Jordan Cristiano 2015-08-31 22:14:49 -04:00
parent 7de51e14ba
commit 4d4a751e75
3 changed files with 6 additions and 16 deletions

View File

@ -29,8 +29,6 @@ SOFTWARE.
#include <stdlib.h>
#include "json_checker/JSON_checker.h"
#define true 1
#define false 0
#define __ -1 /* the universal error code */
/*
@ -258,7 +256,7 @@ new_JSON_checker(int depth)
}
int
bool
JSON_checker_char(JSON_checker jc, int next_char)
{
/*
@ -385,7 +383,7 @@ JSON_checker_char(JSON_checker jc, int next_char)
}
int
bool
JSON_checker_done(JSON_checker jc)
{
/*

View File

@ -3,10 +3,6 @@
/* JSON_checker.h */
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef struct JSON_checker_struct {
int state;
int depth;
@ -15,10 +11,7 @@ typedef struct JSON_checker_struct {
} * 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);
JSON_checker new_JSON_checker(int depth);
bool JSON_checker_char(JSON_checker jc, int next_char);
bool JSON_checker_done(JSON_checker jc);
#ifdef __cplusplus
} /* extern "C" */
#endif /* __cplusplus */

View File

@ -23,8 +23,7 @@ solution "demboyz"
"../demboyz/**.h",
"../demboyz/**.cpp",
"../external/**.h",
"../external/**.cpp",
"../external/**.c"
"../external/**.cpp"
}
includedirs
{