فهرست منبع

Remove obsolete '--enable-coroutines' option

Hugo Musso Gualandi 4 سال پیش
والد
کامیت
40f3d298b5
2فایلهای تغییر یافته به همراه0 افزوده شده و 10 حذف شده
  1. 0 5
      src/luaot-trampoline.c
  2. 0 5
      src/luaot.c

+ 0 - 5
src/luaot-trampoline.c

@@ -34,7 +34,6 @@ static const char *program_name    = "luaot";
 static const char *input_filename  = NULL;
 static const char *output_filename = NULL;
 static const char *module_name     = NULL;
-static int enable_coroutines = 0;
 static FILE * output_file = NULL;
 static int nfunctions = 0;
 static TString **tmname;
@@ -93,10 +92,6 @@ static void doargs(int argc, char **argv)
         if (do_opts && arg[0] == '-') {
             if (0 == strcmp(arg, "--")) {
                 do_opts = 0;
-            } else if (0 == strcmp(arg, "--coro")) {
-                enable_coroutines = 1;
-            } else if (0 == strcmp(arg, "--no-coro")) {
-                enable_coroutines = 0;
             } else if (0 == strcmp(arg, "-h")) {
                 usage();
                 exit(0);

+ 0 - 5
src/luaot.c

@@ -34,7 +34,6 @@ static const char *program_name    = "luaot";
 static const char *input_filename  = NULL;
 static const char *output_filename = NULL;
 static const char *module_name     = NULL;
-static int enable_coroutines = 0;
 static FILE * output_file = NULL;
 static int nfunctions = 0;
 static TString **tmname;
@@ -93,10 +92,6 @@ static void doargs(int argc, char **argv)
         if (do_opts && arg[0] == '-') {
             if (0 == strcmp(arg, "--")) {
                 do_opts = 0;
-            } else if (0 == strcmp(arg, "--coro")) {
-                enable_coroutines = 1;
-            } else if (0 == strcmp(arg, "--no-coro")) {
-                enable_coroutines = 0;
             } else if (0 == strcmp(arg, "-h")) {
                 usage();
                 exit(0);