mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 19:29:45 +00:00
All programs print version and exit successfully.
* All programs are now using the ProgName variable as well.
This commit is contained in:
parent
d9a2452b81
commit
bad8412131
@ -121,7 +121,7 @@ int main (int argc, char* argv [])
|
||||
break;
|
||||
|
||||
case 'V':
|
||||
fprintf (stderr, "ar65 V%s\n", GetVersionAsString ());
|
||||
fprintf (stderr, "%s V%s\n", ProgName, GetVersionAsString ());
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -619,7 +619,8 @@ static void OptVersion (const char* Opt attribute ((unused)),
|
||||
const char* Arg attribute ((unused)))
|
||||
/* Print the assembler version */
|
||||
{
|
||||
fprintf (stderr, "ca65 V%s\n", GetVersionAsString ());
|
||||
fprintf (stderr, "%s V%s\n", ProgName, GetVersionAsString ());
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
@ -742,7 +742,7 @@ static void OptVersion (const char* Opt attribute ((unused)),
|
||||
const char* Arg attribute ((unused)))
|
||||
/* Print the compiler version */
|
||||
{
|
||||
fprintf (stderr, "cc65 V%s\n", GetVersionAsString ());
|
||||
fprintf (stderr, "%s V%s\n", ProgName, GetVersionAsString ());
|
||||
exit (EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
@ -220,6 +220,7 @@ static void OptVersion (const char* Opt attribute ((unused)),
|
||||
{
|
||||
fprintf (stderr,
|
||||
"%s V%s\n", ProgName, GetVersionAsString ());
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1233,7 +1233,8 @@ static void OptVersion (const char* Opt attribute ((unused)),
|
||||
const char* Arg attribute ((unused)))
|
||||
/* Print version number */
|
||||
{
|
||||
fprintf (stderr, "cl65 V%s\n", GetVersionAsString ());
|
||||
fprintf (stderr, "%s V%s\n", ProgName, GetVersionAsString ());
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
@ -263,7 +263,8 @@ static void OptVersion (const char* Opt attribute ((unused)),
|
||||
const char* Arg attribute ((unused)))
|
||||
/* Print the assembler version */
|
||||
{
|
||||
fprintf (stderr, "co65 V%s\n", GetVersionAsString ());
|
||||
fprintf (stderr, "%s V%s\n", ProgName, GetVersionAsString ());
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
@ -340,7 +340,8 @@ static void OptVersion (const char* Opt attribute ((unused)),
|
||||
const char* Arg attribute ((unused)))
|
||||
/* Print the disassembler version */
|
||||
{
|
||||
fprintf (stderr, "da65 V%s\n", GetVersionAsString ());
|
||||
fprintf (stderr, "%s V%s\n", ProgName, GetVersionAsString ());
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
@ -166,7 +166,8 @@ static void OptVersion (const char* Opt attribute ((unused)),
|
||||
const char* Arg attribute ((unused)))
|
||||
/* Print the program version */
|
||||
{
|
||||
fprintf (stderr, "grc65 V%s\n", GetVersionAsString ());
|
||||
fprintf (stderr, "%s V%s\n", ProgName, GetVersionAsString ());
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
@ -543,7 +543,8 @@ static void OptVersion (const char* Opt attribute ((unused)),
|
||||
const char* Arg attribute ((unused)))
|
||||
/* Print the assembler version */
|
||||
{
|
||||
fprintf (stderr, "ld65 V%s\n", GetVersionAsString ());
|
||||
fprintf (stderr, "%s V%s\n", ProgName, GetVersionAsString ());
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
@ -209,6 +209,7 @@ static void OptVersion (const char* Opt attribute ((unused)),
|
||||
/* Print the assembler version */
|
||||
{
|
||||
fprintf (stderr, "%s V%s\n", ProgName, GetVersionAsString ());
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
@ -121,7 +121,8 @@ static void OptVersion (const char* Opt attribute ((unused)),
|
||||
const char* Arg attribute ((unused)))
|
||||
/* Print the simulator version */
|
||||
{
|
||||
fprintf (stderr, "sim65 V%s\n", GetVersionAsString ());
|
||||
fprintf (stderr, "%s V%s\n", ProgName, GetVersionAsString ());
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
static void OptQuitXIns (const char* Opt attribute ((unused)),
|
||||
|
@ -286,6 +286,7 @@ static void OptVersion (const char* Opt attribute ((unused)),
|
||||
/* Print the assembler version */
|
||||
{
|
||||
fprintf (stderr, "%s V%s\n", ProgName, GetVersionAsString ());
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user