Added hacky version of #define support

This commit is contained in:
Jeremiah Orians 2021-01-06 19:24:16 -05:00
parent 25fd5e66c9
commit 3c4c09b95e
No known key found for this signature in database
GPG Key ID: 6B3A3F198708F894
3 changed files with 16 additions and 6 deletions

View File

@ -313,6 +313,16 @@ void macro_directive()
conditional_inclusion_top = conditional_inclusion_top->prev;
free(t);
}
else if(match("#define", macro_token->s))
{
macro_token->s = "CONSTANT";
while('\n' != macro_token->s[0])
{
macro_token = macro_token->next;
require(NULL != macro_token, "Ran off the end of a #define\n");
}
return;
}
else
{
/* unhandled macro directive; let's eat until a newline; om nom nom */

View File

@ -169,8 +169,8 @@ a2a83f42119e646b389b98647cf6cf2aa9597185997c9453db746178c8c4c0bf test/results/t
698853b79efb30865a663c4863c050639eb21c7400008f7840830503928973d4 test/results/test0106-knight-native-binary
45c2ba61dc209d7ffa39de9ff0f0a7f8f3ea4d7e38598c72f982fcaf9a05c84a test/results/test0106-knight-posix-binary
944580ff4aae38aafac139faf6eed5bfe4ff68b01a7a3adfa346de8803101182 test/results/test0106-x86-binary
7624d26de7191e538716b4d1c94111264fd07d3712f6bd859b4734b6a40274bd test/results/test1000-aarch64-binary
d5257947d94d24e4e441aaa5ab86a4deb9b3b582093f2c0798eb951939e97180 test/results/test1000-amd64-binary
311213a5dbccf6b5e3645484dafecdb60d54d8f37b20c8faf369c570c0201af0 test/results/test1000-armv7l-binary
3b1463f91d93f6893eaa098eac742fd59b5207a57e516affd75e7cc88e80fe2e test/results/test1000-knight-posix-binary
b7ed6661c7bd665423f19afdd0e7f587ec648b8fb8419447ad9f19e9858d78a4 test/results/test1000-x86-binary
9a87d68e52780cb33b58f8b39fecb67063ee4921745e6b31afa1d38d34bb1142 test/results/test1000-aarch64-binary
9450e369831274bd30115fdfe76c17778a9f0f73c2f804acce6096d9e7c38e4b test/results/test1000-amd64-binary
42890f9ab2895f65adccd9b129fb54b022d21f79a9647e174712c96b5081c679 test/results/test1000-armv7l-binary
58af5b8989b6e05a7434326ebca7f523892a31af3d7460c5658e64c31a47663f test/results/test1000-knight-posix-binary
1d8ad9ce8db6c7910292dbc39f909b0cf4154cba4e4701762f6f0e2793a5effc test/results/test1000-x86-binary

View File

@ -1 +1 @@
7748c40bab7245fd8291b3082ea2fadafbd4d5bc63953f872c1d05046600a8b0 test/test1000/proof
390acadbb8394a5a8621174ae55e063e70221b60eb1e96549bb97c950a807a99 test/test1000/proof