projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
exit str_cmp enters m_strcmp
[apps/madmutt.git]
/
keymap.c
diff --git
a/keymap.c
b/keymap.c
index
641f232
..
76ac63c
100644
(file)
--- a/
keymap.c
+++ b/
keymap.c
@@
-15,9
+15,9
@@
#include <lib-lib/ascii.h>
#include <lib-lib/str.h>
#include <lib-lib/macros.h>
#include <lib-lib/ascii.h>
#include <lib-lib/str.h>
#include <lib-lib/macros.h>
+#include <lib-lib/buffer.h>
#include "mutt.h"
#include "mutt.h"
-#include "buffer.h"
#include "mutt_menu.h"
#include "mutt_curses.h"
#include "keymap.h"
#include "mutt_menu.h"
#include "mutt_curses.h"
#include "keymap.h"
@@
-516,7
+516,7
@@
struct keymap_t *km_find_func (int menu, int func)
void km_init (void)
{
void km_init (void)
{
-
memset (Keymaps, 0, sizeof (struct keymap_t *) *
MENU_MAX);
+
p_clear(Keymaps,
MENU_MAX);
create_bindings (OpAttach, MENU_ATTACH);
create_bindings (OpBrowser, MENU_FOLDER);
create_bindings (OpAttach, MENU_ATTACH);
create_bindings (OpBrowser, MENU_FOLDER);
@@
-677,7
+677,7
@@
static char *parse_keymap (int *menu, BUFFER * s, int maxmenus, int *nummenus,
int i = 0;
char *p, *q;
int i = 0;
char *p, *q;
-
memset (&buf, 0, sizeof (buf)
);
+
p_clear(&buf, 1
);
/* menu name */
mutt_extract_token (&buf, s, 0);
/* menu name */
mutt_extract_token (&buf, s, 0);
@@
-722,7
+722,7
@@
try_bind (char *key, int menu, char *func, struct binding_t *bindings)
int i;
for (i = 0; bindings[i].name; i++)
int i;
for (i = 0; bindings[i].name; i++)
- if (
str_cmp
(func, bindings[i].name) == 0) {
+ if (
m_strcmp
(func, bindings[i].name) == 0) {
km_bindkey (key, menu, bindings[i].op);
return (0);
}
km_bindkey (key, menu, bindings[i].op);
return (0);
}