--- rxvt-unicode/src/rxvtperl.h 2006/08/26 06:37:11 1.22 +++ rxvt-unicode/src/rxvtperl.h 2011/02/21 07:41:03 1.23 @@ -6,15 +6,14 @@ #define RXVTPERL_H_ #if ENABLE_PERL -# define SHOULD_INVOKE(htype) \ - ( (htype) == HOOK_INIT \ - || (htype) == HOOK_DESTROY \ - || (htype) == HOOK_REFRESH_BEGIN \ - || (htype) == HOOK_REFRESH_END \ - || perl.should_invoke [htype]) -# define HOOK_INVOKE(args) rxvt_perl.invoke args -#include "rxvt.h" +#define SHOULD_INVOKE(htype) \ + ( (htype) == HOOK_INIT \ + || (htype) == HOOK_DESTROY \ + || (htype) == HOOK_REFRESH_BEGIN \ + || (htype) == HOOK_REFRESH_END \ + || perl.should_invoke [htype]) +#define HOOK_INVOKE(args) rxvt_perl.invoke args enum data_type { DT_END, // no further arguments @@ -55,8 +54,10 @@ extern struct rxvt_perl_interp rxvt_perl; #else -# define SHOULD_INVOKE(htype) false -# define HOOK_INVOKE(args) false + +#define SHOULD_INVOKE(htype) false +#define HOOK_INVOKE(args) false + #endif #endif