aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/c_lex.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-04-25 11:06:59 +0200
committerlemon <lsof@mailbox.org>2026-04-25 11:06:59 +0200
commitcf5eff1d2c7637e6cdf5c688596c32cdc1e86efa (patch)
tree94af195a213ea9ec394a8bed257fa787a60d8a38 /src/c_lex.c
parent14c61e47e2bedc6c7aaba2e021207f5413694958 (diff)
embed <limits.h> attempt #2HEADtrunk
Diffstat (limited to 'src/c_lex.c')
-rw-r--r--src/c_lex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/c_lex.c b/src/c_lex.c
index d1cbd55..7ff13bd 100644
--- a/src/c_lex.c
+++ b/src/c_lex.c
@@ -1850,9 +1850,11 @@ doinclude(Lexer *lx, const Span *span, bool quote, const char *str, size_t slen,
*/
for (int i = quote ? CINCL_iquote : CINCL_I; i < countof(cinclpaths); ++i) {
incdiridx = 2 + 1000*i;
+ bool triedembed = 0;
for (CInclPath *p = cinclpaths[i]; p; p = p->next) {
- if (i == CINCLsys) {
+ if (i == CINCLsys && !triedembed) {
/* try embedded files pseudo-path */
+ triedembed = 1;
if (incdiridx >= req_incdiridx) {
xbgrow(&path, slen + 3);
path[0] = '@', path[1] = ':';