Fix pragma once guard
commitb5b3e89f9e6735eb33eedd2b3071acd38222ee04
authorseyko <seyko2@gmail.com>
Wed, 13 Apr 2016 03:17:02 +0000 (13 06:17 +0300)
committerseyko <seyko2@gmail.com>
Wed, 13 Apr 2016 03:17:02 +0000 (13 06:17 +0300)
tree4d9d3b63aea4bfddc5d980b12aeb05b0d344fe9d
parentb0296139a8ca3c15cd601ca1449e6547c8a352a0
Fix pragma once guard

    From: Vlad Vissoultchev
    Date: Mon, 11 Apr 2016 01:26:32 +0300
    Subject: Fix pragma once guard when compiling multiple source files

    When compiling multiple source files directly to executable cached
    include files guard was incorrectly checked for TOK_once in ifndef_macro
    member.

    If two source files included the same header guarded by pragma once, then
    the second one erroneously skipped it as `cached_includes` is not cleared
    on second `tcc_compile`
tcc.c
tccpp.c