comparison plugins/perl/perl-common.h @ 12419:455610a80747

[gaim-migrate @ 14726] Avoid nested extern warnings. This is probably as clean as the prototyping can get on perl, unless someone can get the XS stuff to generated .h files as well. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 08 Dec 2005 21:08:15 +0000
parents 0e9e2b923d09
children 202ce52b77a9
comparison
equal deleted inserted replaced
12418:a4229dd9c76a 12419:455610a80747
15 ((o) && SvROK(o) && SvRV(o) && (SvTYPE(SvRV(o)) == SVt_PVHV)) 15 ((o) && SvROK(o) && SvRV(o) && (SvTYPE(SvRV(o)) == SVt_PVHV))
16 16
17 #define hvref(o) \ 17 #define hvref(o) \
18 (is_hvref(o) ? (HV *)SvRV(o) : NULL); 18 (is_hvref(o) ? (HV *)SvRV(o) : NULL);
19 19
20 #define GAIM_PERL_BOOT_PROTO(x) \
21 extern void boot_Gaim__##x(pTHX_ CV *cv);
22
20 #define GAIM_PERL_BOOT(x) \ 23 #define GAIM_PERL_BOOT(x) \
21 { \ 24 gaim_perl_callXS(boot_Gaim__##x, cv, mark)
22 extern void boot_Gaim__##x(pTHX_ CV *cv); \
23 gaim_perl_callXS(boot_Gaim__##x, cv, mark); \
24 }
25 25
26 void gaim_perl_normalize_script_name(char *name); 26 void gaim_perl_normalize_script_name(char *name);
27 27
28 28
29 SV *newSVGChar(const char *str); 29 SV *newSVGChar(const char *str);