tccpp: alternative fix for #include_next infinite loop bug
commit2358b378b3cd526956713f033f5a0ecaa5f63951
authorgrischka <grischka>
Sun, 6 Jan 2013 16:20:44 +0000 (6 17:20 +0100)
committergrischka <grischka>
Sun, 6 Jan 2013 16:20:44 +0000 (6 17:20 +0100)
tree5b67d60c2992994e629276cbd0ff313d5219c716
parente92dbe46869085d04544904b21c02991c226a828
tccpp: alternative fix for #include_next infinite loop bug

This replaces commit 3d409b08893873b917ccb8c34398bc41a4e84d7c

- revert old fix in libtcc.c
- #include_next: look up the file in the include stack to see
  if it is already included.
Also:
- streamline include code
- remove 'type' from struct CachedInclude (obsolete because we check
  full filename anyway)
- remove inc_type & inc_filename from struct Bufferedfile (obsolete)
- fix bug with TOK_FLAG_ENDIF not being reset
- unrelated: get rid of an 'variable potentially uninitialized' warning
libtcc.c
tcc.h
tccgen.c
tccpp.c