File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed
Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -24,4 +24,4 @@ include ../Makefile-json.common
2424
2525# Substitution command to pass to sed for patching core_json.c. The
2626# characters " and # must be escaped with backslash.
27- CORE_JSON_SED_EXPR = 1s/^/\# include \"core_json_annex.h\" /; s/^static //; s/(bool_ |void|JSONStatus_t) skip(AnyScalar|Collection|Digits|Space|SpaceAndComma|String)\b/&_/
27+ CORE_JSON_SED_EXPR = 1s/^/\# include \"core_json_annex.h\" /; s/^static //; s/(bool |void|JSONStatus_t) skip(AnyScalar|Collection|Digits|Space|SpaceAndComma|String)\b/&_/
Original file line number Diff line number Diff line change @@ -32,4 +32,4 @@ include ../Makefile-json.common
3232
3333# Substitution command to pass to sed for patching core_json.c. The
3434# characters " and # must be escaped with backslash.
35- CORE_JSON_SED_EXPR = 1s/^/\# include \"core_json_annex.h\" /; s/^static //; s/(bool_ |void|JSONStatus_t) skip(AnyScalar|Collection|Digits|Space|SpaceAndComma|String)\b/&_/
35+ CORE_JSON_SED_EXPR = 1s/^/\# include \"core_json_annex.h\" /; s/^static //; s/(bool |void|JSONStatus_t) skip(AnyScalar|Collection|Digits|Space|SpaceAndComma|String)\b/&_/
Original file line number Diff line number Diff line change @@ -21,4 +21,4 @@ include ../Makefile-json.common
2121
2222# Substitution command to pass to sed for patching core_json.c. The
2323# characters " and # must be escaped with backslash.
24- CORE_JSON_SED_EXPR = 1s/^/\# include \"core_json_annex.h\" /; s/^static //; s/(bool_ |JSONStatus_t|void) skip(AnyLiteral|Collection|Number|Space|String)\b/&_/
24+ CORE_JSON_SED_EXPR = 1s/^/\# include \"core_json_annex.h\" /; s/^static //; s/(bool |JSONStatus_t|void) skip(AnyLiteral|Collection|Number|Space|String)\b/&_/
Original file line number Diff line number Diff line change @@ -26,4 +26,4 @@ include ../Makefile-json.common
2626
2727# Substitution command to pass to sed for patching core_json.c. The
2828# characters " and # must be escaped with backslash.
29- CORE_JSON_SED_EXPR = 1s/^/\# include \"core_json_annex.h\" /; s/^static //; s/(bool_ |void) skip(AnyLiteral|Number|Space|SpaceAndComma|String)\b/&_/
29+ CORE_JSON_SED_EXPR = 1s/^/\# include \"core_json_annex.h\" /; s/^static //; s/(bool |void) skip(AnyLiteral|Number|Space|SpaceAndComma|String)\b/&_/
Original file line number Diff line number Diff line change @@ -18,4 +18,4 @@ include ../Makefile-json.common
1818
1919# Substitution command to pass to sed for patching core_json.c. The
2020# characters " and # must be escaped with backslash.
21- CORE_JSON_SED_EXPR = 1s/^/\# include \"core_json_annex.h\" /; s/^static //; s/bool_ skip(Escape|UTF8)\b/&_/
21+ CORE_JSON_SED_EXPR = 1s/^/\# include \"core_json_annex.h\" /; s/^static //; s/bool skip(Escape|UTF8)\b/&_/
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ execute_process( COMMAND sed "s/^static //"
1717 )
1818
1919# Generate a header file for internal functions
20- execute_process ( COMMAND sed -n "1s/.*/typedef int bool_;/p; /^static.*(/,/^{\$ /{s/^static //; s/)\$ /&;/; /{/d; p;}"
20+ execute_process ( COMMAND sed -n "/^static.*(/,/^{\$ /{s/^static //; s/)\$ /&;/; /{/d; p;}"
2121 WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
2222 INPUT_FILE ${JSON_SOURCES}
2323 OUTPUT_FILE ${TEMP_BASE} _annex.h
You can’t perform that action at this time.
0 commit comments