[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] [PATCH] make the version a macro (TCC_VERSION)
From: |
Peter \"Firefly\" Lund |
Subject: |
[Tinycc-devel] [PATCH] make the version a macro (TCC_VERSION) |
Date: |
Thu, 6 Mar 2003 23:53:20 +0100 (MET) |
I got this from vlindos as part of another patch. I think this change is
totally uncontroversial, so let's get it in right away. We can quible
about the rest later, perhaps (whether to have a --run flag or to use
argv[0] to distinguish between the gcc drop-in compatible compiler and the
interpreter).
-Peter
PS: The copyright date is also fixed. I think there are some stupid US
rules that distinguish between "2001, 2002, 2003" and "2001-2003" but I
can't remember them. This will have to do for now.
--- tcc-3b/tcc.c Thu Mar 6 23:39:09 2003
+++ tcc-3b/tcc-fnyp.c Thu Mar 6 23:38:52 2003
@@ -44,6 +44,7 @@
#include "libtcc.h"
+#define TCC_VERSION "0.9.16"
/* parser debug */
//#define PARSE_DEBUG
/* preprocessor debug */
@@ -9302,7 +9303,7 @@
void help(void)
{
- printf("tcc version 0.9.16 - Tiny C Compiler - Copyright (C) 2001, 2002
Fabrice Bellard\n"
+ printf("tcc version " TCC_VERSION " - Tiny C Compiler - Copyright (C)
2001, 2002, 2003 Fabrice Bellard\n"
"usage: tcc [-c] [-o outfile] [-Bdir] [-bench] [-Idir]
[-Dsym[=val]] [-Usym]\n"
" [-g] [-b] [-bt N] [-Ldir] [-llib] [-shared] [-static]\n"
" [--] infile1 [infile2... --] [infile_args...]\n"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Tinycc-devel] [PATCH] make the version a macro (TCC_VERSION),
Peter \"Firefly\" Lund <=