Changed json_checker to cpp file to fix clang build
This commit is contained in:
		| @@ -29,8 +29,6 @@ SOFTWARE. | |||||||
| #include <stdlib.h> | #include <stdlib.h> | ||||||
| #include "json_checker/JSON_checker.h" | #include "json_checker/JSON_checker.h" | ||||||
| 
 | 
 | ||||||
| #define true  1 |  | ||||||
| #define false 0 |  | ||||||
| #define __   -1     /* the universal error code */ | #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) | 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) | JSON_checker_done(JSON_checker jc) | ||||||
| { | { | ||||||
| /*
 | /*
 | ||||||
| @@ -3,10 +3,6 @@ | |||||||
|  |  | ||||||
| /* JSON_checker.h */ | /* JSON_checker.h */ | ||||||
|  |  | ||||||
| #ifdef __cplusplus |  | ||||||
| extern "C" { |  | ||||||
| #endif /* __cplusplus */ |  | ||||||
|  |  | ||||||
| typedef struct JSON_checker_struct { | typedef struct JSON_checker_struct { | ||||||
|     int state; |     int state; | ||||||
|     int depth; |     int depth; | ||||||
| @@ -15,10 +11,7 @@ typedef struct JSON_checker_struct { | |||||||
| } * JSON_checker; | } * JSON_checker; | ||||||
|  |  | ||||||
|  |  | ||||||
| extern JSON_checker new_JSON_checker(int depth); | JSON_checker new_JSON_checker(int depth); | ||||||
| extern int  JSON_checker_char(JSON_checker jc, int next_char); | bool JSON_checker_char(JSON_checker jc, int next_char); | ||||||
| extern int  JSON_checker_done(JSON_checker jc); | bool JSON_checker_done(JSON_checker jc); | ||||||
|  |  | ||||||
| #ifdef __cplusplus |  | ||||||
| } /* extern "C" */ |  | ||||||
| #endif /* __cplusplus */ |  | ||||||
|   | |||||||
| @@ -23,8 +23,7 @@ solution "demboyz" | |||||||
|             "../demboyz/**.h", |             "../demboyz/**.h", | ||||||
|             "../demboyz/**.cpp", |             "../demboyz/**.cpp", | ||||||
|             "../external/**.h", |             "../external/**.h", | ||||||
|             "../external/**.cpp", |             "../external/**.cpp" | ||||||
|             "../external/**.c" |  | ||||||
|         } |         } | ||||||
|         includedirs |         includedirs | ||||||
|         { |         { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user