@@ -41,7 +41,7 @@ unsafe fn compat53_findfield(L: *mut lua_State, objidx: c_int, level: c_int) ->
4141 } else if compat53_findfield ( L , objidx, level - 1 ) != 0 {
4242 // try recursively
4343 lua_remove ( L , -2 ) ; // remove table (but keep name)
44- lua_pushliteral ( L , "." ) ;
44+ lua_pushliteral ( L , c ".") ;
4545 lua_insert ( L , -2 ) ; // place '.' between the two names
4646 lua_concat ( L , 3 ) ;
4747 return 1 ;
@@ -75,7 +75,7 @@ unsafe fn compat53_pushfuncname(L: *mut lua_State, level: c_int, ar: *mut lua_De
7575 lua_pushfstring ( L , cstr ! ( "function '%s'" ) , lua_tostring ( L , -1 ) ) ;
7676 lua_remove ( L , -2 ) ; // remove name
7777 } else {
78- lua_pushliteral ( L , "?" ) ;
78+ lua_pushliteral ( L , c "?") ;
7979 }
8080}
8181
@@ -196,7 +196,7 @@ pub unsafe fn lua_rawgetp(L: *mut lua_State, idx: c_int, p: *const c_void) -> c_
196196pub unsafe fn lua_getuservalue ( L : * mut lua_State , mut idx : c_int ) -> c_int {
197197 luaL_checkstack ( L , 2 , cstr ! ( "not enough stack slots available" ) ) ;
198198 idx = lua_absindex ( L , idx) ;
199- lua_pushliteral ( L , "__mlua_uservalues" ) ;
199+ lua_pushliteral ( L , c "__mlua_uservalues") ;
200200 if lua_rawget ( L , LUA_REGISTRYINDEX ) != LUA_TTABLE {
201201 return LUA_TNIL ;
202202 }
@@ -234,13 +234,13 @@ pub unsafe fn lua_rawsetp(L: *mut lua_State, idx: c_int, p: *const c_void) {
234234pub unsafe fn lua_setuservalue ( L : * mut lua_State , mut idx : c_int ) {
235235 luaL_checkstack ( L , 4 , cstr ! ( "not enough stack slots available" ) ) ;
236236 idx = lua_absindex ( L , idx) ;
237- lua_pushliteral ( L , "__mlua_uservalues" ) ;
237+ lua_pushliteral ( L , c "__mlua_uservalues") ;
238238 lua_pushvalue ( L , -1 ) ;
239239 if lua_rawget ( L , LUA_REGISTRYINDEX ) != LUA_TTABLE {
240240 lua_pop ( L , 1 ) ;
241241 lua_createtable ( L , 0 , 2 ) ; // main table
242242 lua_createtable ( L , 0 , 1 ) ; // metatable
243- lua_pushliteral ( L , "k" ) ;
243+ lua_pushliteral ( L , c "k") ;
244244 lua_setfield ( L , -2 , cstr ! ( "__mode" ) ) ;
245245 lua_setmetatable ( L , -2 ) ;
246246 lua_pushvalue ( L , -2 ) ;
@@ -301,7 +301,7 @@ pub unsafe fn luaL_checkstack(L: *mut lua_State, sz: c_int, msg: *const c_char)
301301 if !msg. is_null ( ) {
302302 luaL_error ( L , cstr ! ( "stack overflow (%s)" ) , msg) ;
303303 } else {
304- lua_pushliteral ( L , "stack overflow" ) ;
304+ lua_pushliteral ( L , c "stack overflow") ;
305305 lua_error ( L ) ;
306306 }
307307 }
@@ -440,19 +440,19 @@ pub unsafe fn luaL_traceback(L: *mut lua_State, L1: *mut lua_State, msg: *const
440440 if !msg. is_null ( ) {
441441 lua_pushfstring ( L , cstr ! ( "%s\n " ) , msg) ;
442442 }
443- lua_pushliteral ( L , "stack traceback:" ) ;
443+ lua_pushliteral ( L , c "stack traceback:") ;
444444 while lua_getinfo ( L1 , level, cstr ! ( "" ) , & mut ar) != 0 {
445445 if level + 1 == mark {
446446 // too many levels?
447- lua_pushliteral ( L , "\n \t ..." ) ; // add a '...'
447+ lua_pushliteral ( L , c "\n \t ...") ; // add a '...'
448448 level = numlevels - COMPAT53_LEVELS2 ; // and skip to last ones
449449 } else {
450450 lua_getinfo ( L1 , level, cstr ! ( "sln" ) , & mut ar) ;
451451 lua_pushfstring ( L , cstr ! ( "\n \t %s:" ) , ar. short_src ) ;
452452 if ar. currentline > 0 {
453453 lua_pushfstring ( L , cstr ! ( "%d:" ) , ar. currentline ) ;
454454 }
455- lua_pushliteral ( L , " in " ) ;
455+ lua_pushliteral ( L , c " in ") ;
456456 compat53_pushfuncname ( L , level, & mut ar) ;
457457 lua_concat ( L , lua_gettop ( L ) - top) ;
458458 }
@@ -466,16 +466,16 @@ pub unsafe fn luaL_tolstring(L: *mut lua_State, mut idx: c_int, len: *mut usize)
466466 if luaL_callmeta ( L , idx, cstr ! ( "__tostring" ) ) == 0 {
467467 match lua_type ( L , idx) {
468468 LUA_TNIL => {
469- lua_pushliteral ( L , "nil" ) ;
469+ lua_pushliteral ( L , c "nil") ;
470470 }
471471 LUA_TSTRING | LUA_TNUMBER => {
472472 lua_pushvalue ( L , idx) ;
473473 }
474474 LUA_TBOOLEAN => {
475475 if lua_toboolean ( L , idx) == 0 {
476- lua_pushliteral ( L , "false" ) ;
476+ lua_pushliteral ( L , c "false") ;
477477 } else {
478- lua_pushliteral ( L , "true" ) ;
478+ lua_pushliteral ( L , c "true") ;
479479 }
480480 }
481481 t => {
0 commit comments