|
From: | ian |
Subject: | Re: [Tinycc-devel] Implementation of '--' argument |
Date: | Mon, 17 Apr 2023 15:39:31 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 |
Hi all.
Honestly ? When I read "-- option to tcc", I laughed at lot !
I consider this particularly irrelevant, and Grishka's comment is
right
("For example, not to support compilation of files such as -c.c is
not a problem as long as we assume that such files do not exist.")
Considering other cases, I just tried a very simple test case :
#!/usr/bin/env -S tcc inc.o
-run
#include <stdio.h>
#include "inc.h"
int main(int argc, const char* argv[]) {
for (int i=0;i<argc;i++)
printf("argv[%d]=%s\n",i,argv[i]);
printf("Finally : %d\n",myNum()); // defined in inc.h
return 0;
}
which runs perfectly fine.
So, no, IMHO, the 'end of args --" does not make any sense.
Regards.
For example, not to support compilation of files such as -c.c is
İȃɲ ƝᵋᵃʳᶩỾ -- MeNearly@gmail.com |
[Prev in Thread] | Current Thread | [Next in Thread] |