From: Brendan Hansen Date: Mon, 14 Mar 2022 13:25:00 +0000 (-0500) Subject: bugfix with escaping strings in includes X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=01c3a52c2575b5cc1c450ec75cea2b27dc5692a4;p=onyx.git bugfix with escaping strings in includes --- diff --git a/modules/openal/ build.bat b/modules/openal/ build.bat new file mode 100644 index 00000000..afbba2c2 --- /dev/null +++ b/modules/openal/ build.bat @@ -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 diff --git a/src/symres.c b/src/symres.c index 092f85d2..bf173503 100644 --- a/src/symres.c +++ b/src/symres.c @@ -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); }