diff options
| author | Tom Feist <shabble@cowu.be> | 2010-08-21 23:46:54 +0000 | 
|---|---|---|
| committer | Tom Feist <shabble@cowu.be> | 2010-08-21 23:46:54 +0000 | 
| commit | 123a5732bdc59c9221694c1d349c2336b1e232ed (patch) | |
| tree | 5cb2058db477ec395ccd63b4c84dacac08885542 /patches | |
| parent | renamed patch file with svn rev patched against (diff) | |
| download | irssi-scripts-123a5732bdc59c9221694c1d349c2336b1e232ed.tar.gz irssi-scripts-123a5732bdc59c9221694c1d349c2336b1e232ed.zip | |
move fail. Meh
Diffstat (limited to 'patches')
| -rw-r--r-- | patches/add_bindings_interface-r5190.patch | 31 | 
1 files changed, 27 insertions, 4 deletions
| diff --git a/patches/add_bindings_interface-r5190.patch b/patches/add_bindings_interface-r5190.patch index 8286444..43a5d7b 100644 --- a/patches/add_bindings_interface-r5190.patch +++ b/patches/add_bindings_interface-r5190.patch @@ -2,11 +2,13 @@ Index: ui/UI.xs  ===================================================================  --- ui/UI.xs	(revision 5190)  +++ ui/UI.xs	(working copy) -@@ -106,3 +106,47 @@ +@@ -106,3 +106,71 @@   	irssi_boot(UI__Formats);   	irssi_boot(UI__Themes);   	irssi_boot(UI__Window);  + ++MODULE = Irssi::UI  PACKAGE = Irssi ++  +HV*  +bindings()  +PREINIT: @@ -41,7 +43,7 @@ Index: ui/UI.xs  +                    : newSV(0));  +  +            /* wedge it all into a reference so we can use it in the hash */ -+            SV* value_ref = newRV_inc((SV*)value_array); ++            SV* value_ref = newRV_noinc((SV*)value_array);  +  +            /* and finally, set up the hash */  +            hv_store(RETVAL, key_rec->key, strlen(key_rec->key), @@ -50,13 +52,34 @@ Index: ui/UI.xs  +    }  +OUTPUT:  +    RETVAL ++ ++SV* ++binding_add(key, function, data) ++char *key ++char *function ++char *data ++CODE: ++ ++    if (key_info_find(function) == NULL) ++        RETVAL = &PL_sv_no; ++	else { ++        key_configure_add(function, key, data); ++        RETVAL = &PL_sv_yes; ++    } ++OUTPUT: ++   RETVAL ++ ++void ++binding_remove(key) ++char *key ++CODE: ++    key_configure_remove(key);  Index: ui/module.h  ===================================================================  --- ui/module.h	(revision 5190)  +++ ui/module.h	(working copy) -@@ -12,3 +12,5 @@ +@@ -12,3 +12,4 @@   typedef TEXT_DEST_REC *Irssi__UI__TextDest;   typedef THEME_REC *Irssi__UI__Theme;   typedef KEYINFO_REC *Irssi__UI__Keyinfo;  +typedef KEY_REC *Irssi__UI__Key; -+ | 
