"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libedit/map.h" between
tnftp-20151004.tar.gz and tnftp-20200705.tar.gz

About: tnftp is an enhanced ftp client (prior name "lukemftp").

map.h  (tnftp-20151004):map.h  (tnftp-20200705)
/* $NetBSD: map.h,v 1.2 2005/05/11 01:17:39 lukem Exp $ */ /* $NetBSD: map.h,v 1.4 2020/07/04 13:43:21 lukem Exp $ */
/* from NetBSD: map.h,v 1.8 2003/08/07 16:44:32 agc Exp */ /* from NetBSD: map.h,v 1.13 2016/05/09 21:46:56 christos Exp */
/*- /*-
* Copyright (c) 1992, 1993 * Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved. * The Regents of the University of California. All rights reserved.
* *
* This code is derived from software contributed to Berkeley by * This code is derived from software contributed to Berkeley by
* Christos Zoulas of Cornell University. * Christos Zoulas of Cornell University.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
skipping to change at line 44 skipping to change at line 44
* *
* @(#)map.h 8.1 (Berkeley) 6/4/93 * @(#)map.h 8.1 (Berkeley) 6/4/93
*/ */
/* /*
* el.map.h: Editor maps * el.map.h: Editor maps
*/ */
#ifndef _h_el_map #ifndef _h_el_map
#define _h_el_map #define _h_el_map
typedef el_action_t (*el_func_t)(EditLine *, wint_t);
typedef struct el_bindings_t { /* for the "bind" shell command */ typedef struct el_bindings_t { /* for the "bind" shell command */
const char *name; /* function name for bind command */ const wchar_t *name; /* function name for bind command */
int func; /* function numeric value */ int func; /* function numeric value */
const char *description; /* description of function */ const wchar_t *description; /* description of function */
} el_bindings_t; } el_bindings_t;
typedef struct el_map_t { typedef struct el_map_t {
el_action_t *alt; /* The current alternate key map */ el_action_t *alt; /* The current alternate key map */
el_action_t *key; /* The current normal key map */ el_action_t *key; /* The current normal key map */
el_action_t *current; /* The keymap we are using */ el_action_t *current; /* The keymap we are using */
const el_action_t *emacs; /* The default emacs key map */ const el_action_t *emacs; /* The default emacs key map */
const el_action_t *vic; /* The vi command mode key map */ const el_action_t *vic; /* The vi command mode key map */
const el_action_t *vii; /* The vi insert mode key map */ const el_action_t *vii; /* The vi insert mode key map */
int type; /* Emacs or vi */ int type; /* Emacs or vi */
el_bindings_t *help; /* The help for the editor functions */ el_bindings_t *help; /* The help for the editor functions */
el_func_t *func; /* List of available functions */ el_func_t *func; /* List of available functions */
int nfunc; /* The number of functions/help items */ size_t nfunc; /* The number of functions/help items */
} el_map_t; } el_map_t;
#define MAP_EMACS 0 #define MAP_EMACS 0
#define MAP_VI 1 #define MAP_VI 1
protected int map_bind(EditLine *, int, const char **); #define N_KEYS 256
protected int map_init(EditLine *);
protected void map_end(EditLine *); libedit_private int map_bind(EditLine *, int, const wchar_t **);
protected void map_init_vi(EditLine *); libedit_private int map_init(EditLine *);
protected void map_init_emacs(EditLine *); libedit_private void map_end(EditLine *);
protected int map_set_editor(EditLine *, char *); libedit_private void map_init_vi(EditLine *);
protected int map_get_editor(EditLine *, const char **); libedit_private void map_init_emacs(EditLine *);
protected int map_addfunc(EditLine *, const char *, const char *, el_func_t); libedit_private int map_set_editor(EditLine *, wchar_t *);
libedit_private int map_get_editor(EditLine *, const wchar_t **);
libedit_private int map_addfunc(EditLine *, const wchar_t *, const wchar_t *,
el_func_t);
#endif /* _h_el_map */ #endif /* _h_el_map */
 End of changes. 6 change blocks. 
13 lines changed or deleted 18 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)