@@ -43,7 +43,7 @@ unsafe fn compat53_findfield(L: *mut lua_State, objidx: c_int, level: c_int) ->
4343 } else if compat53_findfield ( L , objidx, level - 1 ) != 0 {
4444 // try recursively
4545 lua_remove ( L , -2 ) ; // remove table (but keep name)
46- lua_pushliteral ( L , c ".") ;
46+ lua_pushliteral ( L , "." ) ;
4747 lua_insert ( L , -2 ) ; // place '.' between the two names
4848 lua_concat ( L , 3 ) ;
4949 return 1 ;
@@ -77,7 +77,7 @@ unsafe fn compat53_pushfuncname(L: *mut lua_State, level: c_int, ar: *mut lua_De
7777 lua_pushfstring ( L , cstr ! ( "function '%s'" ) , lua_tostring ( L , -1 ) ) ;
7878 lua_remove ( L , -2 ) ; // remove name
7979 } else {
80- lua_pushliteral ( L , c "?") ;
80+ lua_pushliteral ( L , "?" ) ;
8181 }
8282}
8383
@@ -192,7 +192,7 @@ pub unsafe fn lua_rawgetp(L: *mut lua_State, idx: c_int, p: *const c_void) -> c_
192192pub unsafe fn lua_getuservalue ( L : * mut lua_State , mut idx : c_int ) -> c_int {
193193 luaL_checkstack ( L , 2 , cstr ! ( "not enough stack slots available" ) ) ;
194194 idx = lua_absindex ( L , idx) ;
195- lua_pushliteral ( L , c "__mlua_uservalues") ;
195+ lua_pushliteral ( L , "__mlua_uservalues" ) ;
196196 if lua_rawget ( L , LUA_REGISTRYINDEX ) != LUA_TTABLE {
197197 return LUA_TNIL ;
198198 }
@@ -229,13 +229,13 @@ pub unsafe fn lua_rawsetp(L: *mut lua_State, idx: c_int, p: *const c_void) {
229229pub unsafe fn lua_setuservalue ( L : * mut lua_State , mut idx : c_int ) {
230230 luaL_checkstack ( L , 4 , cstr ! ( "not enough stack slots available" ) ) ;
231231 idx = lua_absindex ( L , idx) ;
232- lua_pushliteral ( L , c "__mlua_uservalues") ;
232+ lua_pushliteral ( L , "__mlua_uservalues" ) ;
233233 lua_pushvalue ( L , -1 ) ;
234234 if lua_rawget ( L , LUA_REGISTRYINDEX ) != LUA_TTABLE {
235235 lua_pop ( L , 1 ) ;
236236 lua_createtable ( L , 0 , 2 ) ; // main table
237237 lua_createtable ( L , 0 , 1 ) ; // metatable
238- lua_pushliteral ( L , c "k") ;
238+ lua_pushliteral ( L , "k" ) ;
239239 lua_setfield ( L , -2 , cstr ! ( "__mode" ) ) ;
240240 lua_setmetatable ( L , -2 ) ;
241241 lua_pushvalue ( L , -2 ) ;
@@ -309,7 +309,7 @@ pub unsafe fn luaL_checkstack(L: *mut lua_State, sz: c_int, msg: *const c_char)
309309 if !msg. is_null ( ) {
310310 luaL_error ( L , cstr ! ( "stack overflow (%s)" ) , msg) ;
311311 } else {
312- lua_pushliteral ( L , c "stack overflow") ;
312+ lua_pushliteral ( L , "stack overflow" ) ;
313313 lua_error ( L ) ;
314314 }
315315 }
@@ -430,19 +430,19 @@ pub unsafe fn luaL_traceback(L: *mut lua_State, L1: *mut lua_State, msg: *const
430430 if !msg. is_null ( ) {
431431 lua_pushfstring ( L , cstr ! ( "%s\n " ) , msg) ;
432432 }
433- lua_pushliteral ( L , c "stack traceback:") ;
433+ lua_pushliteral ( L , "stack traceback:" ) ;
434434 while lua_getinfo ( L1 , level, cstr ! ( "" ) , & mut ar) != 0 {
435435 if level + 1 == mark {
436436 // too many levels?
437- lua_pushliteral ( L , c "\n \t ...") ; // add a '...'
437+ lua_pushliteral ( L , "\n \t ..." ) ; // add a '...'
438438 level = numlevels - COMPAT53_LEVELS2 ; // and skip to last ones
439439 } else {
440440 lua_getinfo ( L1 , level, cstr ! ( "sln" ) , & mut ar) ;
441441 lua_pushfstring ( L , cstr ! ( "\n \t %s:" ) , ar. short_src ) ;
442442 if ar. currentline > 0 {
443443 lua_pushfstring ( L , cstr ! ( "%d:" ) , ar. currentline ) ;
444444 }
445- lua_pushliteral ( L , c " in ") ;
445+ lua_pushliteral ( L , " in " ) ;
446446 compat53_pushfuncname ( L , level, & mut ar) ;
447447 lua_concat ( L , lua_gettop ( L ) - top) ;
448448 }
@@ -456,16 +456,16 @@ pub unsafe fn luaL_tolstring(L: *mut lua_State, mut idx: c_int, len: *mut usize)
456456 if luaL_callmeta ( L , idx, cstr ! ( "__tostring" ) ) == 0 {
457457 match lua_type ( L , idx) {
458458 LUA_TNIL => {
459- lua_pushliteral ( L , c "nil") ;
459+ lua_pushliteral ( L , "nil" ) ;
460460 }
461461 LUA_TSTRING | LUA_TNUMBER => {
462462 lua_pushvalue ( L , idx) ;
463463 }
464464 LUA_TBOOLEAN => {
465465 if lua_toboolean ( L , idx) == 0 {
466- lua_pushliteral ( L , c "false") ;
466+ lua_pushliteral ( L , "false" ) ;
467467 } else {
468- lua_pushliteral ( L , c "true") ;
468+ lua_pushliteral ( L , "true" ) ;
469469 }
470470 }
471471 t => {
0 commit comments