keymacro_init(): * Initialize the key maps */
| 101 | * Initialize the key maps |
| 102 | */ |
| 103 | protected int |
| 104 | keymacro_init(EditLine *el) |
| 105 | { |
| 106 | |
| 107 | el->el_keymacro.buf = el_malloc(KEY_BUFSIZ * |
| 108 | sizeof(*el->el_keymacro.buf)); |
| 109 | if (el->el_keymacro.buf == NULL) |
| 110 | return -1; |
| 111 | el->el_keymacro.map = NULL; |
| 112 | keymacro_reset(el); |
| 113 | return 0; |
| 114 | } |
| 115 | |
| 116 | /* keymacro_end(): |
| 117 | * Free the key maps |
no test coverage detected