[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] tcc-0.9.13 - #include effects
From: |
Mitchell N Charity |
Subject: |
[Tinycc-devel] tcc-0.9.13 - #include effects |
Date: |
Sun, 3 Nov 2002 20:40:28 -0500 |
If one patches tcc-0.9.13/libtcc_test.c to
#include "blah.h"
then ./libtcc_test says
<string>:2: include file 'blah.h' not found
<string>:2: foo not defined
Which seems reasonable.
But if one creates a blah.h without preprocessor tokens (eg, empty, or
only whitespace and comments), then ./libtcc_test doesn't terminate.
And if blah.h is the single line
const int foo10471231 = 0;
then ./libtcc_test still says
<string>:2: foo not defined
The exact contents of blah.h don't seem to matter. It seems
if there is an #include, then foo remains undefined.
Fyi,
Mitchell Charity
--- tcc-0.9.13/libtcc_test.c Sun Nov 3 07:27:29 2002
+++ dev/libtcc_test.c Sun Nov 3 20:10:42 2002
@@ -15,6 +15,8 @@
}
char my_program[] =
+"#include \"blah.h\"\n"
+"\n"
"int fib(int n)\n"
"{\n"
" if (n <= 2)\n"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Tinycc-devel] tcc-0.9.13 - #include effects,
Mitchell N Charity <=