diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 12:14:09 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 12:14:09 +0200 |
commit | c41419c4f47bbf0737d3fedf58128c835d2c4e3b (patch) | |
tree | 764ae18c107df39fd90af718922036bd245561ca /crawl-ref/source/luaterp.cc | |
parent | b80adef8882143cad34f3c8bcc9a8ccbd4440223 (diff) | |
download | crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.tar.gz crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.zip |
Drop parentheses around scalar values in "return".
Diffstat (limited to 'crawl-ref/source/luaterp.cc')
-rw-r--r-- | crawl-ref/source/luaterp.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/luaterp.cc b/crawl-ref/source/luaterp.cc index 8aef3dc531..bb5af468d4 100644 --- a/crawl-ref/source/luaterp.cc +++ b/crawl-ref/source/luaterp.cc @@ -46,7 +46,7 @@ static int _pushline(lua_State *ls, int firstline) size_t l; std::string prompt = firstline ? "> " : ". "; if (msgwin_get_line_autohist(prompt, buffer, sizeof(buffer))) - return (0); + return 0; l = strlen(b); // XXX: get line doesn't return newline? @@ -57,7 +57,7 @@ static int _pushline(lua_State *ls, int firstline) lua_pushfstring(ls, "return %s", b+1); // change it to `return' else lua_pushstring(ls, b); - return (1); + return 1; } static int _loadline(lua_State *ls) @@ -90,7 +90,7 @@ static int _docall(lua_State *ls) { int status; status = lua_pcall(ls, 0, LUA_MULTRET, 0); - return (status); + return status; } static int _report(lua_State *ls, int status) @@ -137,7 +137,7 @@ static void _run_dlua_interpreter(lua_State *ls) bool luaterp_running() { - return (_luaterp_running); + return _luaterp_running; } static bool _loaded_terp_files = false; |