Smaller C fixes and improvements:

- move va_list type detection under #ifdef as it's rarely needed anyway
- allow up to 254 characters in a string literal
- generate a warning when an integer is passed instead of a pointer (and
vice versa) as a function parameter (pass -Wall for this)
- when printing an unexpected token, print identifier tokens instead of
'<tokIdent>'
- fix: allow most control characters inside '' and ""
- fix handling of -I<path> and -SI<path>
- switch() now supports Duff's device
- for() now supports declarations in its first clause as in C99/C++
This commit is contained in:
alex
2014-12-06 16:18:17 -08:00
parent 687695d0db
commit 00269e9387
5 changed files with 982 additions and 337 deletions

View File

@@ -1,6 +1,4 @@
extern int printf();
int main()
main()
{
printf ("Hello, SmallC World!\n");
}