Changeset 61abb18 for functions.c


Ignore:
Timestamp:
Aug 10, 2008, 10:53:16 AM (16 years ago)
Author:
Geoffrey Thomas <geofft@mit.edu>
Branches:
barnowl_perlaim
Parents:
3dcccba
Message:
Now it compiles. Highly likely to leak or crash, although it seems to work for me...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r3dcccba r61abb18  
    268268  owl_global_set_typwin_active(&g);
    269269
    270   owl_global_set_buffercommand(&g, line);
    271   owl_global_set_buffercallback(&g, &owl_callback_zwrite);
     270  owl_global_set_buffercallback(&g, &owl_callback_zwrite, line);
    272271}
    273272
     
    293292  owl_global_set_typwin_active(&g);
    294293
    295   owl_global_set_buffercommand(&g, "loopwrite");
    296   owl_global_set_buffercallback(&g, &owl_callback_loopwrite);
    297 }
    298 
    299 void owl_callback_zwrite(owl_editwin *e) {
    300   owl_function_zwrite(owl_editwin_get_command(e),
    301                       owl_editwin_get_text(e));
     294  owl_global_set_buffercallback(&g, &owl_callback_loopwrite, "loopwrite");
     295}
     296
     297void owl_callback_zwrite(void *cbdata, char *text) {
     298  owl_function_zwrite((char *)cbdata, text);
    302299}
    303300
     
    398395}
    399396
    400 void owl_callback_loopwrite(owl_editwin *e) {
    401   owl_function_loopwrite(owl_editwin_get_text(e));
     397void owl_callback_loopwrite(void *cbdata, char *text) {
     398  owl_function_loopwrite(text);
    402399}
    403400
Note: See TracChangeset for help on using the changeset viewer.