--- rxvt-unicode/src/rxvtperl.h 2012/06/05 22:23:07 1.26 +++ rxvt-unicode/src/rxvtperl.h 2020/06/30 07:31:24 1.29 @@ -51,9 +51,13 @@ { char **perl_environ; + #if 0 // see rxvtperl.xs ~rxvt_perl_interp (); + #endif + void init (); void init (rxvt_term *term); + void eval (const char *str); bool invoke (rxvt_term *term, hook_type htype, ...); void line_update (rxvt_term *term); void selection_finish (rxvt_selection *sel, char *data, unsigned int len); @@ -61,10 +65,10 @@ enum { - RESOURCE_AVAILABLE = 0, - RESOURCE_BOOLEAN = 1 + RESOURCE_AVAILABLE = 1, // whether the option is valid + RESOURCE_ARG = 2 // whether the option eats the next arg }; - uint8_t resource (rxvt_term *term, const char *name, bool arg, bool longopt, bool flag, const char *value); + uint8_t parse_resource (rxvt_term *term, const char *name, bool arg, bool longopt, bool flag, const char *value); }; extern struct rxvt_perl_interp rxvt_perl;