summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpixel <pixel>2007-05-28 07:17:10 +0000
committerpixel <pixel>2007-05-28 07:17:10 +0000
commit2f80dce604f3eaea8429c104e97ff11e0d121283 (patch)
tree4c1fff6c00995d0d2ac731a2e6435242de6fb74a /src
parent142b5016d7cfb17e008d7c7dbea19bd7c2e0216d (diff)
Fixing luac compilation.
Diffstat (limited to 'src')
-rw-r--r--src/luac.cc31
1 files changed, 17 insertions, 14 deletions
diff --git a/src/luac.cc b/src/luac.cc
index 882d41a..0a95422 100644
--- a/src/luac.cc
+++ b/src/luac.cc
@@ -28,26 +28,29 @@ void showhelp() {
}
virtual int startup() throw (GeneralException) {
+ char c;
Lua * L = new Lua();
bool strip = true;
char * output = "a.clua";
bool todo;
while ((c = getopt_long(argc, argv, "Hhvo:d", long_options, NULL)) != EOF) {
- case 'h':
- case 'H':
- case '?':
- showhelp();
- return 0;
- case 'v':
- verbosity = M_INFO;
- break;
- case 'o':
- output = strdup(optarg);
- break;
- case 'd':
- strip = false;
- break;
+ switch (c) {
+ case 'h':
+ case 'H':
+ case '?':
+ showhelp();
+ return 0;
+ case 'v':
+ verbosity = M_INFO;
+ break;
+ case 'o':
+ output = strdup(optarg);
+ break;
+ case 'd':
+ strip = false;
+ break;
+ }
}
/* Loading all the scripts */