Index
Records
- ast_cmd
- ast_node
- ast_redir
- ast_run_bg
- ast_seq
- ast_subshell
- cmd_write_proc_ctx
- context
- cursor
- edit_command_buf
- edit_line
- editor
- parse_rule
- parser
- posvar
- strbuf
- token
Functions
strbuf_append
void strbuf_append(struct strbuf * strbuf, char c)
Defined at strbuf.c#6
cprintf
void cprintf(struct context * context, const char * fmt)
Defined at context.c#9
get_token
static struct token * get_token(struct list_node_link * link)
Defined at parser.c#20
strbuf_append_str
void strbuf_append_str(struct strbuf * strbuf, const char * s)
Defined at strbuf.c#23
advance
static struct token * advance(struct parser * parser)
Defined at parser.c#28
strbuf_append_n
void strbuf_append_n(struct strbuf * strbuf, const char * s, size_t n)
Defined at strbuf.c#29
interp_is_running
_Bool interp_is_running()
Defined at interp.c#32
wmalloc
void * wmalloc(void * ctx, size_t size)
Defined at ce.c#36
interp_shutdown
void interp_shutdown()
Defined at interp.c#37
wrealloc
void * wrealloc(void * ctx, void * mem, size_t old, size_t new)
Defined at ce.c#42
human_size
static void human_size(double size, double * out, char ** str)
Defined at interp.c#42
parse_precedence
static struct ast_node * parse_precedence(struct parser * parser, int precedence)
Defined at parser.c#42
wfree
void wfree(void * ctx, void * mem)
Defined at ce.c#48
warena_malloc
void * warena_malloc(void * ctx, size_t size)
Defined at ce.c#54
echo
static void echo(struct context * context, char ** strings, size_t strings_count)
Defined at interp.c#56
warena_realloc
void * warena_realloc(void * ctx, void * mem, size_t old, size_t new)
Defined at ce.c#60
warena_free
void warena_free(void * ctx, void * mem)
Defined at ce.c#66
mkfile
static void mkfile(struct context * context, char ** file_paths, size_t files_count)
Defined at interp.c#66
word_nud
struct ast_node * word_nud(struct parser * parser, struct token * token)
Defined at parser.c#68
prepare_lines_cb
static _Bool prepare_lines_cb(void * ctx, const char * start, size_t len)
Defined at edit.c#73
exec_line
static void exec_line(const char * line)
Defined at ce.c#76
terminfo
static void terminfo(struct context * context)
Defined at interp.c#80
oparen_nud
struct ast_node * oparen_nud(struct parser * parser, struct token * token)
Defined at parser.c#85
procinfo
static void procinfo(struct context * context)
Defined at interp.c#87
split_lines_cb
static _Bool split_lines_cb(void * ctx, const char * start, size_t len)
Defined at ce.c#89
prepare_lines
static void prepare_lines(const char * text, size_t len)
Defined at edit.c#99
semicolon_led
struct ast_node * semicolon_led(struct parser * parser, struct token * token, struct ast_node * left)
Defined at parser.c#100
app_main
void app_main()
Defined at ce.c#105
update_horz_scroll
static void update_horz_scroll(size_t screen_cols)
Defined at edit.c#107
redir_led
struct ast_node * redir_led(struct parser * parser, struct token * token, struct ast_node * left)
Defined at parser.c#113
update_vert_scroll
static void update_vert_scroll(size_t screen_rows)
Defined at edit.c#116
mkdir
static void mkdir(struct context * context, char ** dir_paths, size_t dirs_count)
Defined at interp.c#116
rm
static void rm(struct context * context, char ** paths, size_t count)
Defined at interp.c#125
count_digits
static size_t count_digits(size_t n)
Defined at edit.c#125
run_bg_led
struct ast_node * run_bg_led(struct parser * parser, struct token * token, struct ast_node * left)
Defined at parser.c#128
cat
static void cat(struct context * context, char ** file_paths, size_t files_count)
Defined at interp.c#134
handle_escape
static char handle_escape(char c)
Defined at parser.c#139
edit_start
void edit_start(const char * path, const char * text, size_t text_len, _Bool readonly)
Defined at edit.c#139
tokenize
void tokenize(struct list_node_link ** tokens, const char * text)
Defined at parser.c#165
copy
static void copy(struct context * context, const char * path_a, const char * path_b)
Defined at interp.c#180
ls
static void ls(struct context * context, const char * path)
Defined at interp.c#228
parse_and_execute
void parse_and_execute(struct list_node_link * tokens)
Defined at parser.c#259
edit
static void edit(struct context * context, const char * path)
Defined at interp.c#270
view
static void view(struct context * context, const char * path)
Defined at interp.c#297
quit1
static void quit1(struct context * context)
Defined at interp.c#324
cls
static void cls(struct context * context)
Defined at interp.c#330
stall
static void stall(uint64_t ms)
Defined at interp.c#335
help
static void help(struct context * context)
Defined at interp.c#340
cmd_write_proc
static void cmd_write_proc(void * arg)
Defined at interp.c#365
cmd_collect_proc
static void cmd_collect_proc(void * arg)
Defined at interp.c#384
execute_cmd
static void execute_cmd(struct ast_cmd * cmd, struct context * context, _Bool run_bg)
Defined at interp.c#406
execute_redir
static void execute_redir(struct ast_redir * redir, struct context * context)
Defined at interp.c#507
execute
void execute(struct ast_node * root, struct context * context, _Bool run_bg)
Defined at interp.c#553