Changeset ce68f23 for perlglue.xs
- Timestamp:
- Jun 25, 2011, 3:26:16 AM (13 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- c266281
- Parents:
- 3cdd6d2
- git-author:
- David Benjamin <davidben@mit.edu> (06/11/11 20:06:46)
- git-committer:
- David Benjamin <davidben@mit.edu> (06/25/11 03:26:16)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perlglue.xs
rbcde7926 rce68f23 329 329 all_filters() 330 330 PREINIT: 331 owl_list fl; 332 CODE: 333 { 334 owl_list_create(&fl); 335 owl_dict_get_keys(&g.filters, &fl); 336 RETVAL = owl_new_av(&fl, (SV*(*)(const void*))owl_new_sv); 331 GPtrArray *fl; 332 CODE: 333 { 334 fl = owl_dict_get_keys(&g.filters); 335 RETVAL = owl_new_av(fl, (SV*(*)(const void*))owl_new_sv); 337 336 sv_2mortal((SV*)RETVAL); 338 owl_ list_cleanup(&fl, g_free);337 owl_ptr_array_free(fl, g_free); 339 338 } 340 339 OUTPUT: … … 344 343 all_styles() 345 344 PREINIT: 346 owl_list l; 347 CODE: 348 { 349 owl_list_create(&l); 350 owl_global_get_style_names(&g, &l); 351 RETVAL = owl_new_av(&l, (SV*(*)(const void*))owl_new_sv); 345 GPtrArray *l; 346 CODE: 347 { 348 l = owl_global_get_style_names(&g); 349 RETVAL = owl_new_av(l, (SV*(*)(const void*))owl_new_sv); 352 350 sv_2mortal((SV*)RETVAL); 353 351 } … … 355 353 RETVAL 356 354 CLEANUP: 357 owl_ list_cleanup(&l, g_free);355 owl_ptr_array_free(l, g_free); 358 356 359 357 … … 361 359 all_variables() 362 360 PREINIT: 363 owl_list l; 364 CODE: 365 { 366 owl_list_create(&l); 367 owl_dict_get_keys(owl_global_get_vardict(&g), &l); 368 RETVAL = owl_new_av(&l, (SV*(*)(const void*))owl_new_sv); 361 GPtrArray *l; 362 CODE: 363 { 364 l = owl_dict_get_keys(owl_global_get_vardict(&g)); 365 RETVAL = owl_new_av(l, (SV*(*)(const void*))owl_new_sv); 369 366 sv_2mortal((SV*)RETVAL); 370 367 } … … 372 369 RETVAL 373 370 CLEANUP: 374 owl_ list_cleanup(&l, g_free);371 owl_ptr_array_free(l, g_free); 375 372 376 373 … … 378 375 all_keymaps() 379 376 PREINIT: 380 owl_listl;377 GPtrArray *l; 381 378 const owl_keyhandler *kh; 382 379 CODE: 383 380 { 384 381 kh = owl_global_get_keyhandler(&g); 385 owl_list_create(&l); 386 owl_keyhandler_get_keymap_names(kh, &l); 387 RETVAL = owl_new_av(&l, (SV*(*)(const void*))owl_new_sv); 382 l = owl_keyhandler_get_keymap_names(kh); 383 RETVAL = owl_new_av(l, (SV*(*)(const void*))owl_new_sv); 388 384 sv_2mortal((SV*)RETVAL); 389 385 } … … 391 387 RETVAL 392 388 CLEANUP: 393 owl_ list_cleanup(&l, g_free);389 owl_ptr_array_free(l, g_free); 394 390 395 391 void
Note: See TracChangeset
for help on using the changeset viewer.