From 85c81f618c05bd213a3f4a04143dcd865e1c1a06 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Mon, 11 Sep 2017 13:25:05 -0400 Subject: [PATCH] ignore test files fix using wrong mode in the improper place --- .gitignore | 2 ++ single/sol/sol.hpp | 6 +++--- sol/compatibility/compat-5.3.c | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index d881776b..b99bdf02 100644 --- a/.gitignore +++ b/.gitignore @@ -82,3 +82,5 @@ temp.good.lua catch_mock.hpp main_aux.cpp main.hpp +tmp_thingy_user.lua +tmp_thingy.lua diff --git a/single/sol/sol.hpp b/single/sol/sol.hpp index cfed22ba..728fed0c 100644 --- a/single/sol/sol.hpp +++ b/single/sol/sol.hpp @@ -20,8 +20,8 @@ // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // This file was generated with a script. -// Generated 2017-09-11 17:13:51.701888 UTC -// This header was generated with sol v2.18.2 (revision b4c1ab0) +// Generated 2017-09-11 17:24:33.633292 UTC +// This header was generated with sol v2.18.2 (revision ac849a5) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -2434,7 +2434,7 @@ COMPAT53_API int luaL_loadfilex (lua_State *L, const char *filename, const char * which does lock the file on VC++, define the macro used below */ #if COMPAT53_FOPEN_NO_LOCK - lf.f = _fsopen(filename, mode, _SH_DENYNO); /* do not lock the file in any way */ + lf.f = _fsopen(filename, "r", _SH_DENYNO); /* do not lock the file in any way */ if (lf.f == NULL) { return compat53_errfile(L, "open", fnameindex); } diff --git a/sol/compatibility/compat-5.3.c b/sol/compatibility/compat-5.3.c index 7e9b7f64..8bdf1d86 100644 --- a/sol/compatibility/compat-5.3.c +++ b/sol/compatibility/compat-5.3.c @@ -540,7 +540,7 @@ COMPAT53_API int luaL_loadfilex (lua_State *L, const char *filename, const char * which does lock the file on VC++, define the macro used below */ #if COMPAT53_FOPEN_NO_LOCK - lf.f = _fsopen(filename, mode, _SH_DENYNO); /* do not lock the file in any way */ + lf.f = _fsopen(filename, "r", _SH_DENYNO); /* do not lock the file in any way */ if (lf.f == NULL) { return compat53_errfile(L, "open", fnameindex); }