bugfix with escaping strings in includes
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 14 Mar 2022 13:25:00 +0000 (08:25 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 14 Mar 2022 13:25:00 +0000 (08:25 -0500)
modules/openal/ build.bat [new file with mode: 0644]
src/symres.c

diff --git a/modules/openal/ build.bat b/modules/openal/ build.bat
new file mode 100644 (file)
index 0000000..afbba2c
--- /dev/null
@@ -0,0 +1,3 @@
+@echo off
+
+cl /MT /std:c17 /TC /I include /I lib/common/include /I "C:\Program Files (x86)\OpenAL 1.1 SDK\include" /D_USRDLL /D_WINDLL modules\openal\onyx_openal.c /link "C:\Program Files (x86)\OpenAL 1.1 SDK\libs\Win64\OpenAL32.lib" /DLL /OUT:onyx_openal.dll
\ No newline at end of file
index 092f85d2434024ee22473a40337a1cc29a23ba3b..bf173503acf76d3c00f7c681db8e5a65d6667299 100644 (file)
@@ -1470,6 +1470,7 @@ static SymresStatus symres_include(AstInclude* include) {
     if (str_token != NULL) {
         token_toggle_end(str_token);
         include->name = bh_strdup(context.ast_alloc, str_token->text);
+        string_process_escape_seqs(include->name, include->name, strlen(include->name));
         token_toggle_end(str_token);
     }