… | |
… | |
392 | hv_store ((HV *)SvRV ((SV *)term->perl.self), "_selection", 10, newRV_noinc ((SV *)newAV ()), 0); |
392 | hv_store ((HV *)SvRV ((SV *)term->perl.self), "_selection", 10, newRV_noinc ((SV *)newAV ()), 0); |
393 | } |
393 | } |
394 | } |
394 | } |
395 | |
395 | |
396 | void |
396 | void |
397 | rxvt_perl_interp::usage (int type) |
397 | rxvt_perl_interp::usage (rxvt_term *term, int type) |
398 | { |
398 | { |
399 | localise_env set_environ (perl_environ); |
399 | localise_env set_environ (perl_environ); |
400 | |
400 | |
401 | ENTER; |
401 | ENTER; |
402 | SAVETMPS; |
402 | SAVETMPS; |
403 | |
403 | |
404 | dSP; |
404 | dSP; |
|
|
405 | EXTEND (SP, 2); |
|
|
406 | PUSHs (sv_2mortal (newSVterm (term))); |
405 | XPUSHs (sv_2mortal (newSViv (type))); |
407 | PUSHs (sv_2mortal (newSViv (type))); |
406 | PUTBACK; |
408 | PUTBACK; |
407 | call_pv ("urxvt::usage", G_VOID | G_DISCARD | G_EVAL); |
409 | call_pv ("urxvt::usage", G_VOID | G_DISCARD | G_EVAL); |
408 | |
410 | |
409 | FREETMPS; |
411 | FREETMPS; |
410 | LEAVE; |
412 | LEAVE; |
… | |
… | |
879 | for (civ = const_iv + ecb_array_length (const_iv); civ > const_iv; civ--) |
881 | for (civ = const_iv + ecb_array_length (const_iv); civ > const_iv; civ--) |
880 | newCONSTSUB (stash, (char *)civ[-1].name, newSViv (civ[-1].iv)); |
882 | newCONSTSUB (stash, (char *)civ[-1].name, newSViv (civ[-1].iv)); |
881 | } |
883 | } |
882 | |
884 | |
883 | void |
885 | void |
|
|
886 | log (const char *msg) |
|
|
887 | CODE: |
|
|
888 | rxvt_log ("%s", msg); |
|
|
889 | |
|
|
890 | void |
884 | warn (const char *msg) |
891 | warn (const char *msg) |
885 | CODE: |
892 | CODE: |
886 | rxvt_warn ("%s", msg); |
893 | rxvt_warn ("%s", msg); |
887 | |
894 | |
888 | void |
895 | void |