Skip to content

Commit 1d9df93

Browse files
authored
Fix sed expressions to use bool instead of bool_. (#91)
1 parent 96976f8 commit 1d9df93

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

test/cbmc/proofs/JSON_Iterate/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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/&_/

test/cbmc/proofs/JSON_Search/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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/&_/

test/cbmc/proofs/JSON_Validate/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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/&_/

test/cbmc/proofs/skipCollection/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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/&_/

test/cbmc/proofs/skipString/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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/&_/

test/unit-test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)