[1841] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[PATCH 0/7] Generic perl data export routines

daemon@ATHENA.MIT.EDU (David Benjamin)
Thu Oct 29 18:23:04 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@lunatique.mit.edu
From: David Benjamin <davidben@MIT.EDU>
To: barnowl-dev@mit.edu
Date: Sat, 24 Oct 2009 13:43:34 -0400

I've been sitting on these for a while, and they're probably clean by now, so I
guess I'll go email them.

These patches add owl_new_av and owl_new_hv functions to copy owl arrays and
dicts to perl lists and hashes. owl_new_av is also used to export the names of
the keymaps into perl for completion the show command. (Because I apparently
have a thing for adding completers to everything.)

owl_new_av needs a cast for most of its uses, which is a little ugly, but so
does owl_list_free. Using void* in C is wonderful like that.

David Benjamin (7):
  Add typedefs for AV and HV
  Add owl_new_av to abstract owl_list to AV*
  Add owl_filter_to_sv for exporting filters
  Use owl_new_av in exported functions
  Export BarnOwl::all_keymaps to perl
  Further complete the show command
  Add owl_new_hv for future Perl code

 filter.c                            |    5 +++
 owl.h                               |    2 +
 perl/lib/BarnOwl/Complete/Client.pm |    4 +++
 perlconfig.c                        |   38 +++++++++++++++++++++++++++
 perlglue.xs                         |   49 +++++++++++++++-------------------
 5 files changed, 71 insertions(+), 27 deletions(-)


home help back first fref pref prev next nref lref last post