aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2023-02-12 20:39:03 +0000
committerGravatar Peter McGoron 2023-02-12 20:39:03 +0000
commite537d927a103e4990f82765eba1dbefabd332749 (patch)
tree1454a3fa97dba7a0f521c8b6881c8164b9cdb6a2
parentsyscall test (diff)
test all
-rw-r--r--Makefile5
-rw-r--r--creole.c8
2 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 80cbb1f..7fe4cc9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,4 @@
+test: test_asm c_test/encode_decode c_test/creole
asm/libcreole.so: creole.c creole.h
$(CC) -Wall -fPIC -c creole.c -o c_test/creole.o
$(CC) -shared -o asm/libcreole.so c_test/creole.o
@@ -6,5 +7,7 @@ test_asm: asm/libcreole.so
cd asm && python3 test.py
c_test/encode_decode: c_test/encode_decode.c creole.c creole.h
$(CC) c_test/encode_decode.c -Wall -pedantic -std=c89 -g -fopenmp -o c_test/encode_decode
-c_test/creole: c_test/creole.c creole.c creole.h greatest.h
+ # c_test/encode_decode
+c_test/creole: c_test/creole.c creole.c creole.h c_test/greatest.h
$(CC) -g c_test/creole.c -Wall -pedantic -std=c89 -o c_test/creole
+ c_test/creole
diff --git a/creole.c b/creole.c
index 30176c9..9c254d5 100644
--- a/creole.c
+++ b/creole.c
@@ -525,10 +525,10 @@ check_label(struct creole_env *env, creole_word label)
}
enum argument_signed {
- ALL_UNSIGNED = 0, // 0b00
- FIRST_SIGNED = 2, // 0b10
- SECOND_SIGNED = 1, // 0b01
- ALL_SIGNED = 3 // 0b11
+ ALL_UNSIGNED = 0, /* 0b00 */
+ FIRST_SIGNED = 2, /* 0b10 */
+ SECOND_SIGNED = 1, /* 0b01 */
+ ALL_SIGNED = 3 /* 0b11 */
};
static enum argument_signed check_sign_bits(unsigned flags1, unsigned flags2)