diff options
author | pixel <pixel> | 2004-12-27 18:46:43 +0000 |
---|---|---|
committer | pixel <pixel> | 2004-12-27 18:46:43 +0000 |
commit | 8587b087d9c686dd4a35a4f90c56856249f704e6 (patch) | |
tree | 1bbeab0de30768433b5b6526e6596d3b74a73d42 /cd-tool.cpp | |
parent | dcd5161f4721d77d37e45f4281e8882bea2cd879 (diff) |
A few minor changes...
Diffstat (limited to 'cd-tool.cpp')
-rw-r--r-- | cd-tool.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cd-tool.cpp b/cd-tool.cpp index 85f4a8a..3774168 100644 --- a/cd-tool.cpp +++ b/cd-tool.cpp @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: cd-tool.cpp,v 1.38 2004-12-21 11:14:16 pixel Exp $ */ +/* $Id: cd-tool.cpp,v 1.39 2004-12-27 18:46:44 pixel Exp $ */ #define WIP @@ -279,10 +279,11 @@ int sLua_cdtool::cdtool_proceed_statics(Lua * L, int n, int caller) { case CDTOOL_PRINT: eol = "\n"; case CDTOOL_PRINTN: - if (n) - p = L->tostring(1) + eol; - else + if (n) { + p = L->tostring(1) + eol; + } else { p = eol; + } tc = p.strdup(); printm(M_BARE, "%s", tc); free(tc); @@ -567,7 +568,6 @@ virtual int startup() throw (GeneralException) { } catch (GeneralException e) { printm(M_WARNING, "There was an error loading built-in cd-tool.lua: %s\n", e.GetMsg()); - builtin = true; } } @@ -676,6 +676,7 @@ virtual int startup() throw (GeneralException) { /* If there was an error, ignore it, and free the stack */ while(L->gettop()) L->pop(); + printm(M_ERROR, "%s\n", e.GetMsg()); } catch (GeneralException e) { /* A more severe exception... */ |