mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-26 22:38:30 +00:00
Make minor improvements
This commit is contained in:
parent
04caf6f9ad
commit
95b142e4e5
95 changed files with 3818 additions and 2760 deletions
2
third_party/chibicc/preprocess.c
vendored
2
third_party/chibicc/preprocess.c
vendored
|
@ -686,7 +686,7 @@ static char *detect_include_guard(Token *tok) {
|
|||
char *macro = strndup(tok->loc, tok->len);
|
||||
tok = tok->next;
|
||||
if (!is_hash(tok) || !EQUAL(tok->next, "define") ||
|
||||
!EQUAL(tok->next->next, macro))
|
||||
!equal(tok->next->next, macro, strlen(macro)))
|
||||
return NULL;
|
||||
// Read until the end of the file.
|
||||
while (tok->kind != TK_EOF) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue