summaryrefslogtreecommitdiff
path: root/src/luac.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/luac.cc')
-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 */