- case 'c': { param_argument(0); break; } /* compile */
- case 'a': { param_argument(1); break; } /* assemble */
- case 'i': { param_argument(2); break; } /* includes */
- #undef parm_argument
- default:
- if (util_strncmpexact(&argv[1][1], "debug" , 5)) { opts_debug = true; break; }
- if (util_strncmpexact(&argv[1][1], "memchk", 6)) { opts_memchk = true; break; }
- if (util_strncmpexact(&argv[1][1], "help", 4)) {
- return usage(app);
- break;
- }
- /* compiler type selection */
- if (util_strncmpexact(&argv[1][1], "std=qcc" , 7 )) { opts_compiler = COMPILER_QCC; break; }
- if (util_strncmpexact(&argv[1][1], "std=fteqcc", 10)) { opts_compiler = COMPILER_FTEQCC; break; }
- if (util_strncmpexact(&argv[1][1], "std=qccx", 8 )) { opts_compiler = COMPILER_QCCX; break; }
- if (util_strncmpexact(&argv[1][1], "std=gmqcc", 9 )) { opts_compiler = COMPILER_GMQCC; break; }
- if (util_strncmpexact(&argv[1][1], "std=", 4 )) {
- printf("invalid std selection, supported types:\n"
- " -std=qcc -- original QuakeC\n"
- " -std=ftqecc -- fteqcc QuakeC\n"
- " -std=qccx -- qccx QuakeC\n"
- " -std=gmqcc -- this compiler QuakeC (default selection)\n");
- return 0;
- }