From e537d927a103e4990f82765eba1dbefabd332749 Mon Sep 17 00:00:00 2001 From: Peter McGoron Date: Sun, 12 Feb 2023 20:39:03 +0000 Subject: [PATCH] test all --- Makefile | 5 ++++- creole.c | 8 ++++---- 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)