Changeset 7fd450f for perlglue.xs
- Timestamp:
- Mar 1, 2010, 8:33:47 PM (15 years ago)
- Branches:
- release-1.5
- Children:
- 7d6a751
- Parents:
- 65fca7a0
- git-author:
- Nelson Elhage <nelhage@mit.edu> (01/19/10 22:53:08)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (03/01/10 20:33:47)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perlglue.xs
r129e609 r7fd450f 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.