Allow different names for pragma once
commit30fd24abd4e2f4223d75313909cb0c10a9c8e738
authorherman ten brugge <hermantenbrugge@home.nl>
Sun, 25 Jun 2023 18:23:58 +0000 (25 20:23 +0200)
committerherman ten brugge <hermantenbrugge@home.nl>
Sun, 25 Jun 2023 18:23:58 +0000 (25 20:23 +0200)
tree546600c02df07f8ddc5883d2468172ab1c36098b
parent5077d4c915145e1805d2092236fdb75dec510212
Allow different names for pragma once

pragma once can now be used with
test.h
./test.h

and other references to the same file just like gcc/clang.

On linux we can use stat and st_ino to check for the same file.
On windows the st_ino does not work so we calculate a file hash
if the size of the file differs and then compare the hash.
tcc.h
tccpp.c
tests/tests2/18_include.c
tests/tests2/18_include.expect
tests/tests2/18_include2.h [new file with mode: 0644]