-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcmd.h
More file actions
executable file
·39 lines (34 loc) · 1.02 KB
/
cmd.h
File metadata and controls
executable file
·39 lines (34 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef CMD_H
#define CMD_H
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include "types.h"
#include "str.h"
#include "buffer.h"
#include "line.h"
#include "editor.h"
extern int q_flag;
int command(editor_t* e, int key);
int read_file(editor_t* e, int key);
int write_file(editor_t* e, int key);
int beg_of_line(editor_t* e, int key);
int end_of_line(editor_t* e, int key);
int next_char(editor_t* e, int key);
int prev_char(editor_t* e, int key);
int next_word(editor_t* e, int key);
int prev_word(editor_t* e, int key);
int next_line(editor_t* e, int key);
int prev_line(editor_t* e, int key);
int new_line(editor_t* e, int key);
int back_char(editor_t* e, int key);
int del_char(editor_t* e, int key);
int add_char(editor_t* e, int key);
int add_tab(editor_t* e, int key);
int new_buffer(editor_t* e, int key);
int del_buffer(editor_t* e, int key);
int next_buffer(editor_t* e, int key);
int prev_buffer(editor_t* e, int key);
int beg_of_buffer(editor_t* e, int key);
int end_of_buffer(editor_t* e, int key);
#endif /* CMD_H */