1
0
forked from alex-eg/sex

do not mangle an include's target

A target is a filename, and the ː separator turned GL/gl.h into
GLːgl.h, so every program including a header from a subdirectory
stopped compiling the moment qualified names got their separator.
This commit is contained in:
2026-10-04 13:59:18 +03:00
parent 737864dadc
commit f071684aec
2 changed files with 13 additions and 0 deletions

View File

@@ -492,6 +492,9 @@ forms, and what remains."
((or ('struct . _)
('union . _)) (walk-struct form))
(('enum . _) (walk-enum form))
;; A target is a filename and not an identifier: GL/gl.h is a path,
;; and unkebabify would spell it GLːgl.h
(('include target) (list '%include target))
(('define name . rest) `(%define ,(atom-to-fmt-c name) ,@rest))
(else (walk-expr form))))