better separation of function pointers and void*

use CmdFunc typedef for generic command function pointers
no longer use \e for escape use \033 instead
use memcpy trick to prevent gcc warning on dlsym in -pedantic mode
This commit is contained in:
Charlie Gordon 2008-04-20 12:01:34 +00:00
commit 04ebeb7606
6 changed files with 39 additions and 22 deletions

View file

@ -825,7 +825,7 @@ void do_undo(EditState *s)
if (!b->log_buffer)
return;
if (s->qe_state->last_cmd_func != do_undo)
if (s->qe_state->last_cmd_func != (CmdFunc)do_undo)
b->log_current = 0;
if (b->log_current == 0) {