Re: XS tips and tricks, unused variables
- From: "Ross McFarland" <rwmcfa1 neces com>
- To: gtk-perl-list gnome org
- Subject: Re: XS tips and tricks, unused variables
- Date: Mon, 13 Oct 2003 10:20:53 -0400 (EDT)
Ross McFarland said:
copy-n-paste bugs, note that the parameters are no longer in both the C and XS
style.
the same thing works for any paramter that needs to be passed to a wrapper
function, but will not be used, for example functions that accept any number
of paramters. so
gboolean
some_function_that_takes_n_params (foo, bar, first_label, ...)
int foo
double bar
char * first_label
CODE:
/* do the stack magic, which wouldn't use first_label */
can be done as
gboolean
some_function_that_takes_n_params (foo, bar, first_label, ...)
int foo
double bar
CODE:
/* do the stack magic, which wouldn't use first_label */
-rm
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]