-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathed.h
61 lines (52 loc) · 2.3 KB
/
ed.h
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef ED_H
#define ED_H
#include "ll.h"
char *get_prompt();
void set_prompt(char *s);
char *get_default_filename();
void set_default_filename(char *s);
/* For storing shell commands sent to '!' by the user */
void set_command_buf(char *cmd);
char *get_command_buf();
void append_command_buf(char *s);
/* Initialize the ds_t buffers for various ed_ functions */
void gbl_buffers_init();
void gbl_buffers_free();
int set_mark(node_t *node, int at);
node_t *get_mark(int at);
void clear_mark(int at);
int edit_aux(char *rest);
void ed_append(node_t *from, node_t *to, char *rest);
void ed_print(node_t *from, node_t *to, char *rest);
void ed_print_n(node_t *from, node_t *to, char *rest);
void ed_delete(node_t *from, node_t *to, char *rest);
void ed_change(node_t *from, node_t *to, char *rest);
void ed_move(node_t *from, node_t *to, char *rest);
void ed_newline(node_t *from, node_t *to, char *rest);
void ed_prompt(node_t *from, node_t *to, char *rest);
void ed_insert(node_t *from, node_t *to, char *rest);
void ed_shell(node_t *from, node_t *to, char *rest);
void ed_edit(node_t *from, node_t *to, char *rest);
void ed_edit_force(node_t *from, node_t *to, char *rest);
void ed_file(node_t *from, node_t *to, char *rest);
void ed_join(node_t *from, node_t *to, char *rest);
void ed_quit(node_t *from, node_t *to, char *rest);
void ed_quit_force(node_t *from, node_t *to, char *rest);
void ed_read(node_t *from, node_t *to, char *rest);
void ed_mark(node_t *from, node_t *to, char *rest);
void ed_write(node_t *from, node_t *to, char *rest);
void ed_equals(node_t *from, node_t *to, char *rest);
void ed_comment(node_t *from, node_t *to, char *rest);
void ed_semicolon(node_t *from, node_t *to, char *rest);
void ed_write_append(node_t *from, node_t *to, char *rest);
void ed_transfer(node_t *from, node_t *to, char *rest);
void ed_yank(node_t *from, node_t *to, char *rest);
void ed_paste(node_t *from, node_t *to, char *rest);
void ed_subs(node_t *from, node_t *to, char *rest);
void ed_global(node_t *from, node_t *to, char *rest);
void ed_global_interact(node_t *from, node_t *to, char *rest);
void ed_global_invert(node_t *from, node_t *to, char *rest);
void ed_global_interact_invert(node_t *from, node_t *to, char *rest);
void ed_undo(node_t *from, node_t *to, char *rest);
void ed_redo(node_t *from, node_t *to, char *rest);
#endif