diff options
author | Timo Sirainen <cras@irssi.org> | 2001-12-15 19:28:44 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-12-15 19:28:44 +0000 |
commit | 1aed7cb956b9926aaa7c09893b526d99ed18b391 (patch) | |
tree | 8edf9f6fd1cd7b562bdd62420f88ef905b2e5c11 /src | |
parent | c0620e08041d8fe7dfc0d04f33c30a16c55de2d5 (diff) | |
download | irssi-1aed7cb956b9926aaa7c09893b526d99ed18b391.zip |
IRSSI_VERSION_DATE is now a number, so you can do #iffing with it
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2252 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/core/expandos.c | 3 | ||||
-rw-r--r-- | src/fe-common/core/fe-common-core.c | 2 | ||||
-rw-r--r-- | src/fe-common/core/fe-core-commands.c | 4 | ||||
-rw-r--r-- | src/perl/common/Core.xs | 2 |
4 files changed, 6 insertions, 5 deletions
diff --git a/src/core/expandos.c b/src/core/expandos.c index 84c5e855..25d407db 100644 --- a/src/core/expandos.c +++ b/src/core/expandos.c @@ -363,7 +363,8 @@ static char *expando_target(SERVER_REC *server, void *item, int *free_ret) /* client release date (numeric version string) */ static char *expando_releasedate(SERVER_REC *server, void *item, int *free_ret) { - return IRSSI_VERSION_DATE; + *free_ret = TRUE; + return g_strdup_printf("%d", IRSSI_VERSION_DATE); } /* current working directory */ diff --git a/src/fe-common/core/fe-common-core.c b/src/fe-common/core/fe-common-core.c index 32855340..4399c4d6 100644 --- a/src/fe-common/core/fe-common-core.c +++ b/src/fe-common/core/fe-common-core.c @@ -97,7 +97,7 @@ void fe_core_commands_deinit(void); static void print_version(void) { - printf(PACKAGE" " IRSSI_VERSION" ("IRSSI_VERSION_DATE")\n"); + printf(PACKAGE" " IRSSI_VERSION" (%d)\n", IRSSI_VERSION_DATE); exit(0); } diff --git a/src/fe-common/core/fe-core-commands.c b/src/fe-common/core/fe-core-commands.c index 32c9f0cc..733d1f1b 100644 --- a/src/fe-common/core/fe-core-commands.c +++ b/src/fe-common/core/fe-core-commands.c @@ -96,8 +96,8 @@ static void cmd_version(char *data) if (*data == '\0') { printtext(NULL, NULL, MSGLEVEL_CLIENTNOTICE, - "Client: "PACKAGE" " IRSSI_VERSION - " ("IRSSI_VERSION_DATE")"); + "Client: "PACKAGE" " IRSSI_VERSION" (%s)", + IRSSI_VERSION_DATE); } } diff --git a/src/perl/common/Core.xs b/src/perl/common/Core.xs index e5d8e948..cf01de40 100644 --- a/src/perl/common/Core.xs +++ b/src/perl/common/Core.xs @@ -438,7 +438,7 @@ CODE: OUTPUT: RETVAL -char * +int version() CODE: RETVAL = IRSSI_VERSION_DATE; |