mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
changing {} style to match majority of previous style
This commit is contained in:
parent
da6cdf014b
commit
961d929f4d
320 changed files with 5502 additions and 10485 deletions
|
@ -29,8 +29,7 @@ LUAI_DDEF const char *const luaT_typenames_[LUA_TOTALTAGS] = {
|
|||
};
|
||||
|
||||
|
||||
void luaT_init(lua_State *L)
|
||||
{
|
||||
void luaT_init(lua_State *L) {
|
||||
static const char *const luaT_eventname[] = { /* ORDER TM */
|
||||
"__index", "__newindex",
|
||||
"__gc", "__mode", "__len", "__eq",
|
||||
|
@ -50,8 +49,7 @@ void luaT_init(lua_State *L)
|
|||
** function to be used with macro "fasttm": optimized for absence of
|
||||
** tag methods
|
||||
*/
|
||||
const TValue *luaT_gettm(Table *events, TMS event, TString *ename)
|
||||
{
|
||||
const TValue *luaT_gettm(Table *events, TMS event, TString *ename) {
|
||||
const TValue *tm = luaH_getstr(events, ename);
|
||||
lua_assert(event <= TM_EQ);
|
||||
if (ttisnil(tm)) { /* no tag method? */
|
||||
|
@ -61,8 +59,7 @@ const TValue *luaT_gettm(Table *events, TMS event, TString *ename)
|
|||
}
|
||||
|
||||
|
||||
const TValue *luaT_gettmbyobj(lua_State *L, const TValue *o, TMS event)
|
||||
{
|
||||
const TValue *luaT_gettmbyobj(lua_State *L, const TValue *o, TMS event) {
|
||||
Table *mt;
|
||||
switch (ttypenv(o)) {
|
||||
case LUA_TTABLE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue