Mercurial > pidgin
view libpurple/plugins/perl/common/Stringref.xs @ 25262:df6d3c3574ce
Make Purple::PluginPref->get_bounds be more perl-like.
It no longer expects to be called as:
$ppref->get_bounds($min, $max)
or
$ppref->get_bounds(\$min, \$max)
(I'm not even sure which one of those was intended to be correct, but
apparently they both crash.)
It now expects to be called like this:
my ($min, $max) = $ppref->get_bounds();
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Tue, 06 Jan 2009 05:36:39 +0000 |
parents | 2f8274ce570a |
children |
line wrap: on
line source
#include "module.h" MODULE = Purple::Stringref PACKAGE = Purple::Stringref PREFIX = purple_stringref_ PROTOTYPES: ENABLE int purple_stringref_cmp(s1, s2) Purple::Stringref s1 Purple::Stringref s2 size_t purple_stringref_len(stringref) Purple::Stringref stringref Purple::Stringref purple_stringref_new(class, value) const char *value C_ARGS: value Purple::Stringref purple_stringref_new_noref(class, value) const char *value C_ARGS: value Purple::Stringref purple_stringref_ref(stringref) Purple::Stringref stringref void purple_stringref_unref(stringref) Purple::Stringref stringref const char * purple_stringref_value(stringref) Purple::Stringref stringref