aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
authorgrischka <grischka>2014-04-07 11:20:45 +0200
committergrischka <grischka>2014-04-07 11:20:45 +0200
commitf90bad092510c751afbd9286b9946691a416d2a1 (patch)
treeade8035d4181b3b962434670e63808cdfb772cf3 /libtcc.c
parent76accfb8d5b16664207fa8ae43d02b015bc8e019 (diff)
downloadtinycc-f90bad092510c751afbd9286b9946691a416d2a1.tar.gz
tinycc-f90bad092510c751afbd9286b9946691a416d2a1.tar.bz2
tests2: cleanup
- remove -norunsrc switch Meaning and usage (-run -norun...???) look sort of screwed. Also general usefulness is unclear, so it was actually to support exactly one (not even very interesting) test This partially reverts e31579b0769e1f9c0947d12e83316d1149307b1a
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/libtcc.c b/libtcc.c
index cc84cd7..5df1949 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -1666,7 +1666,6 @@ enum {
TCC_OPTION_pedantic,
TCC_OPTION_pthread,
TCC_OPTION_run,
- TCC_OPTION_norunsrc,
TCC_OPTION_v,
TCC_OPTION_w,
TCC_OPTION_pipe,
@@ -1709,7 +1708,6 @@ static const TCCOption tcc_options[] = {
{ "pedantic", TCC_OPTION_pedantic, 0},
{ "pthread", TCC_OPTION_pthread, 0},
{ "run", TCC_OPTION_run, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
- { "norunsrc", TCC_OPTION_norunsrc, 0 },
{ "rdynamic", TCC_OPTION_rdynamic, 0 },
{ "r", TCC_OPTION_r, 0 },
{ "s", TCC_OPTION_s, 0 },
@@ -1748,7 +1746,6 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv)
const TCCOption *popt;
const char *optarg, *r;
int run = 0;
- int norunsrc = 0;
int pthread = 0;
int optind = 0;
@@ -1761,8 +1758,7 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv)
r = argv[optind++];
if (r[0] != '-' || r[1] == '\0') {
/* add a new file */
- if (!run || !norunsrc)
- dynarray_add((void ***)&s->files, &s->nb_files, tcc_strdup(r));
+ dynarray_add((void ***)&s->files, &s->nb_files, tcc_strdup(r));
if (run) {
optind--;
/* argv[0] will be this file */
@@ -1888,9 +1884,6 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv)
tcc_set_options(s, optarg);
run = 1;
break;
- case TCC_OPTION_norunsrc:
- norunsrc = 1;
- break;
case TCC_OPTION_v:
do ++s->verbose; while (*optarg++ == 'v');
break;