Changeset 5a35c708 for owl.c


Ignore:
Timestamp:
Jun 1, 2009, 11:22:12 PM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
eab5aa1
Parents:
7433402
Message:
Fix the build for 'make test'

The tester build doesn't include owl.c, so owl.c cannot define any
functions called from outside owl.c.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    rb8bf727 r5a35c708  
    629629}
    630630
    631 void owl_process_input_char(owl_input j)
    632 {
    633   int ret;
    634   owl_popwin *pw;
    635   owl_editwin *tw;
    636 
    637   owl_global_set_lastinputtime(&g, time(NULL));
    638   pw=owl_global_get_popwin(&g);
    639   tw=owl_global_get_typwin(&g);
    640 
    641   owl_global_set_lastinputtime(&g, time(NULL));
    642   /* find and activate the current keymap.
    643    * TODO: this should really get fixed by activating
    644    * keymaps as we switch between windows...
    645    */
    646   if (pw && owl_popwin_is_active(pw) && owl_global_get_viewwin(&g)) {
    647     owl_context_set_popless(owl_global_get_context(&g),
    648                             owl_global_get_viewwin(&g));
    649     owl_function_activate_keymap("popless");
    650   } else if (owl_global_is_typwin_active(&g)
    651              && owl_editwin_get_style(tw)==OWL_EDITWIN_STYLE_ONELINE) {
    652     /*
    653       owl_context_set_editline(owl_global_get_context(&g), tw);
    654       owl_function_activate_keymap("editline");
    655     */
    656   } else if (owl_global_is_typwin_active(&g)
    657              && owl_editwin_get_style(tw)==OWL_EDITWIN_STYLE_MULTILINE) {
    658     owl_context_set_editmulti(owl_global_get_context(&g), tw);
    659     owl_function_activate_keymap("editmulti");
    660   } else {
    661     owl_context_set_recv(owl_global_get_context(&g));
    662     owl_function_activate_keymap("recv");
    663   }
    664   /* now actually handle the keypress */
    665   ret = owl_keyhandler_process(owl_global_get_keyhandler(&g), j);
    666   if (ret!=0 && ret!=1) {
    667     owl_function_makemsg("Unable to handle keypress");
    668   }
    669 }
    670 
    671631void sig_handler(int sig, siginfo_t *si, void *data)
    672632{
Note: See TracChangeset for help on using the changeset viewer.