1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Still more version changes .. Irssi::version() now returns the version in

"date.time" format, so now it's also possible to "use Irssi 20011216.0149;".

Also fixed a memory leak for Irssi::parse_special().


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2260 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-12-15 23:49:35 +00:00 committed by cras
parent 5f271da0a4
commit 5916b9dcb8

View File

@ -419,10 +419,12 @@ parse_special(cmd, data="", flags=0)
char *cmd
char *data
int flags
CODE:
RETVAL = parse_special_string(cmd, NULL, NULL, data, NULL, flags);
OUTPUT:
RETVAL
PREINIT:
char *ret;
PPCODE:
ret = parse_special_string(cmd, NULL, NULL, data, NULL, flags);
XPUSHs(sv_2mortal(new_pv(ret)));
g_free_not_null(ret);
char *
get_irssi_dir()
@ -438,19 +440,16 @@ CODE:
OUTPUT:
RETVAL
int
char *
version()
PREINIT:
char version[100];
CODE:
RETVAL = IRSSI_VERSION_DATE;
g_snprintf(version, sizeof(version), "%d.%d",
IRSSI_VERSION_DATE, IRSSI_VERSION_TIME);
RETVAL = version;
OUTPUT:
RETVAL
int
version_time()
CODE:
RETVAL = IRSSI_VERSION_TIME;
OUTPUT:
RETVAL
RETVAL
#*******************************
MODULE = Irssi::Core PACKAGE = Irssi::Server