From fc0142c22ecd3b13e59d37d066dd2acbc805d6b6 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 20 Sep 2014 20:20:54 +0300 Subject: [PATCH] client/app: Fix coding style; also add a minor thing to util/codestyle.sh --- src/client/app.cpp | 2 +- util/codestyle.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/app.cpp b/src/client/app.cpp index 3e78331..fa23886 100644 --- a/src/client/app.cpp +++ b/src/client/app.cpp @@ -742,7 +742,7 @@ struct CApp: public Polycode::EventHandler, public App } ar(num_entries); lua_pushnil(L); - int i=1; + int i = 1; while(lua_next(L, value_L) != 0){ log_d(MODULE, "array[%i]", i); binary_output_write_value(L, -1, array_type_L, ar); diff --git a/util/codestyle.sh b/util/codestyle.sh index bf45d05..563e1d9 100755 --- a/util/codestyle.sh +++ b/util/codestyle.sh @@ -41,5 +41,6 @@ sed -i -e 's/ &>/&>/g' $header_files $cpp_files sed -i -e 's/\*\s\+>/\*>/g' $header_files $cpp_files sed -i -e 's/ + "/+"/g' $header_files $cpp_files sed -i -e 's/" + /"+/g' $header_files $cpp_files +sed -i -e 's/" *+$/"+/g' $header_files $cpp_files sed -i -e 's/^\(\t\+\) \+/\1\t\t/g' $header_files $cpp_files