diff options
author | Timo Sirainen <cras@irssi.org> | 2001-07-29 09:17:53 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-07-29 09:17:53 +0000 |
commit | 6c2f9c685aaf4aa79c9ea3f29efe0c22aa0a98ee (patch) | |
tree | 0f6377555e2b9cdc881731fd06dc3723632150ac /src/perl/module.h | |
parent | 2d5edb8c4d56f75f4dab93929072cc2699ec5ccd (diff) | |
download | irssi-6c2f9c685aaf4aa79c9ea3f29efe0c22aa0a98ee.zip |
--enable-perl* -> --with-perl*. Added a new libfe_perl which handles /SCRIPT
commands. /RUN -> /SCRIPT LOAD, /PERLFLUSH -> /SCRIPT FLUSH, /PERL ->
/SCRIPT EXEC. Added /SCRIPT UNLOAD, /SCRIPT LIST. Lots of cleanups.
filename_complete() has extra argument for "default directory" which is
searched if no path is given when completing.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1680 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/perl/module.h')
-rw-r--r-- | src/perl/module.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/perl/module.h b/src/perl/module.h index 46fb4548..9c9f7399 100644 --- a/src/perl/module.h +++ b/src/perl/module.h @@ -1,20 +1,21 @@ -#include <EXTERN.h> -#ifndef _SEM_SEMUN_UNDEFINED -#define HAS_UNION_SEMUN -#endif -#include <perl.h> +#ifdef NEED_PERL_H +# include <EXTERN.h> +# ifndef _SEM_SEMUN_UNDEFINED +# define HAS_UNION_SEMUN +# endif +# include <perl.h> -#undef _ -#undef PACKAGE +# undef _ +# undef PACKAGE /* For compatibility with perl 5.004 and older */ -#ifndef ERRSV -# define ERRSV GvSV(errgv) +# ifndef ERRSV +# define ERRSV GvSV(errgv) +# endif + +extern PerlInterpreter *my_perl; /* must be called my_perl or some perl implementations won't work */ #endif #include "common.h" #define MODULE_NAME "irssi-perl" - -extern GSList *perl_scripts; -extern PerlInterpreter *my_perl; /* must be called my_perl or some perl implementations won't work */ |