Changeset 2fec14b
- Timestamp:
- Jan 19, 2010, 10:53:08 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- fde6d80
- Parents:
- 0f8efe0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perlglue.xs
r129e609 r2fec14b 179 179 owl_function_start_question(line); 180 180 181 owl_editwin_set_cbdata(owl_global_get_typwin(&g), SvREFCNT_inc(callback));181 owl_editwin_set_cbdata(owl_global_get_typwin(&g), newSVsv(callback)); 182 182 owl_editwin_set_callback(owl_global_get_typwin(&g), owl_perlconfig_edit_callback); 183 183 } … … 195 195 owl_function_start_password(line); 196 196 197 owl_editwin_set_cbdata(owl_global_get_typwin(&g), SvREFCNT_inc(callback));197 owl_editwin_set_cbdata(owl_global_get_typwin(&g), newSVsv(callback)); 198 198 owl_editwin_set_callback(owl_global_get_typwin(&g), owl_perlconfig_edit_callback); 199 199 } … … 208 208 croak("Callback must be a subref"); 209 209 210 owl_function_start_edit_win(line, owl_perlconfig_edit_callback, SvREFCNT_inc(callback));210 owl_function_start_edit_win(line, owl_perlconfig_edit_callback, newSVsv(callback)); 211 211 } 212 212 … … 279 279 { 280 280 s = owl_malloc(sizeof(owl_style)); 281 owl_style_create_perl(s, name, object);281 owl_style_create_perl(s, name, sv_2mortal(newSVsv(object))); 282 282 owl_global_add_style(&g, s); 283 283 } … … 444 444 } 445 445 cmd.name = name; 446 cmd.cmd_perl = SvREFCNT_inc(func);446 cmd.cmd_perl = newSVsv(func); 447 447 cmd.summary = summary; 448 448 cmd.usage = usage; … … 504 504 SV * cb 505 505 CODE: 506 owl_select_add_perl_io_dispatch(fd, mode, SvREFCNT_inc(cb));506 owl_select_add_perl_io_dispatch(fd, mode, newSVsv(cb)); 507 507 508 508 IV
Note: See TracChangeset
for help on using the changeset viewer.