diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-10-15 01:55:59 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-10-15 01:55:59 +0200 |
commit | 555734fcd3aef4c83605d70d0456dda28b7b5ace (patch) | |
tree | 9c34fe5bc58d5f3d4c0a7622045adc7aa1d17a98 /crawl-ref/source/l_file.cc | |
parent | acf5187334f2cfb983a1a8de07d1e77f73e4283a (diff) | |
download | crawl-ref-555734fcd3aef4c83605d70d0456dda28b7b5ace.tar.gz crawl-ref-555734fcd3aef4c83605d70d0456dda28b7b5ace.zip |
Massive spacing fixes: "( spaces after parentheses )".
I did review it manually to find places where they made sense (like some
tables), but for a massive sed job like this there might be places that
I missed.
Diffstat (limited to 'crawl-ref/source/l_file.cc')
-rw-r--r-- | crawl-ref/source/l_file.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/l_file.cc b/crawl-ref/source/l_file.cc index f44f1ee32b..082e2512a9 100644 --- a/crawl-ref/source/l_file.cc +++ b/crawl-ref/source/l_file.cc @@ -30,7 +30,7 @@ static int file_marshall(lua_State *ls) { if (lua_gettop(ls) != 2) luaL_error(ls, "Need two arguments: tag header and value"); - writer &th(*static_cast<writer*>( lua_touserdata(ls, 1) )); + writer &th(*static_cast<writer*>(lua_touserdata(ls, 1))); if (lua_isnumber(ls, 2)) marshallInt(th, luaL_checklong(ls, 2)); else if (lua_isboolean(ls, 2)) @@ -49,7 +49,7 @@ static int file_unmarshall_boolean(lua_State *ls) { if (lua_gettop(ls) != 1) luaL_error(ls, "Need reader as one argument"); - reader &th(*static_cast<reader*>( lua_touserdata(ls, 1) )); + reader &th(*static_cast<reader*>(lua_touserdata(ls, 1))); lua_pushboolean(ls, unmarshallByte(th)); return (1); } @@ -58,7 +58,7 @@ static int file_unmarshall_number(lua_State *ls) { if (lua_gettop(ls) != 1) luaL_error(ls, "Need reader as one argument"); - reader &th(*static_cast<reader*>( lua_touserdata(ls, 1) )); + reader &th(*static_cast<reader*>(lua_touserdata(ls, 1))); lua_pushnumber(ls, unmarshallInt(th)); return (1); } @@ -67,7 +67,7 @@ static int file_unmarshall_string(lua_State *ls) { if (lua_gettop(ls) != 1) luaL_error(ls, "Need reader as one argument"); - reader &th(*static_cast<reader*>( lua_touserdata(ls, 1) )); + reader &th(*static_cast<reader*>(lua_touserdata(ls, 1))); lua_pushstring(ls, unmarshallString(th).c_str()); return (1); } @@ -76,7 +76,7 @@ static int file_unmarshall_fn(lua_State *ls) { if (lua_gettop(ls) != 1) luaL_error(ls, "Need reader as one argument"); - reader &th(*static_cast<reader*>( lua_touserdata(ls, 1) )); + reader &th(*static_cast<reader*>(lua_touserdata(ls, 1))); const std::string s(unmarshallString(th, LUA_CHUNK_MAX_SIZE)); dlua_chunk chunk = dlua_chunk::precompiled(s); if (chunk.load(dlua)) @@ -99,7 +99,7 @@ static int file_marshall_meta(lua_State *ls) if (lua_gettop(ls) != 2) luaL_error(ls, "Need two arguments: tag header and value"); - writer &th(*static_cast<writer*>( lua_touserdata(ls, 1) )); + writer &th(*static_cast<writer*>(lua_touserdata(ls, 1))); lua_persist_type ptype = LPT_NONE; if (lua_isnumber(ls, 2)) @@ -124,7 +124,7 @@ static int file_marshall_meta(lua_State *ls) static int file_unmarshall_meta(lua_State *ls) { - reader &th(*static_cast<reader*>( lua_touserdata(ls, 1) )); + reader &th(*static_cast<reader*>(lua_touserdata(ls, 1))); const lua_persist_type ptype = static_cast<lua_persist_type>(unmarshallByte(th)); switch (ptype) |