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#34
interp_shutdown
void interp_shutdown()
Defined at interp.c#39
wmalloc
void * wmalloc(void * ctx, size_t size)
Defined at ce.c#39
parse_precedence
static struct ast_node * parse_precedence(struct parser * parser, int precedence)
Defined at parser.c#42
human_size
static void human_size(double size, double * out, char ** str)
Defined at interp.c#44
wrealloc
void * wrealloc(void * ctx, void * mem, size_t old, size_t new)
Defined at ce.c#45
wfree
void wfree(void * ctx, void * mem)
Defined at ce.c#51
warena_malloc
void * warena_malloc(void * ctx, size_t size)
Defined at ce.c#57
echo
static void echo(struct context * context, char ** strings, size_t strings_count)
Defined at interp.c#58
warena_realloc
void * warena_realloc(void * ctx, void * mem, size_t old, size_t new)
Defined at ce.c#63
mkfile
static void mkfile(struct context * context, char ** file_paths, size_t files_count)
Defined at interp.c#68
word_nud
struct ast_node * word_nud(struct parser * parser, struct token * token)
Defined at parser.c#68
warena_free
void warena_free(void * ctx, void * mem)
Defined at ce.c#69
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#79
terminfo
static void terminfo(struct context * context)
Defined at interp.c#82
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#89
split_lines_cb
static _Bool split_lines_cb(void * ctx, const char * start, size_t len)
Defined at ce.c#92
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
update_horz_scroll
static void update_horz_scroll(size_t screen_cols)
Defined at edit.c#107
split_args_cb
static _Bool split_args_cb(void * ctx, const char * start, size_t len)
Defined at ce.c#108
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#123
app_main
void app_main()
Defined at ce.c#123
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
rm
static void rm(struct context * context, char ** paths, size_t count)
Defined at interp.c#132
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
cat
static void cat(struct context * context, char ** file_paths, size_t files_count)
Defined at interp.c#141
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#187
ls
static void ls(struct context * context, const char * path)
Defined at interp.c#235
edit
static void edit(struct context * context, const char * path)
Defined at interp.c#277
parse_and_execute
void parse_and_execute(struct list_node_link * tokens)
Defined at parser.c#284
view
static void view(struct context * context, const char * path)
Defined at interp.c#304
quit1
static void quit1(struct context * context)
Defined at interp.c#331
cls
static void cls(struct context * context)
Defined at interp.c#337
stall
static void stall(uint64_t ms)
Defined at interp.c#342
help
static void help(struct context * context)
Defined at interp.c#347
cmd_write_proc
static void cmd_write_proc(void * arg)
Defined at interp.c#372
cmd_collect_proc
static void cmd_collect_proc(void * arg)
Defined at interp.c#391
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#499
execute
void execute(struct ast_node * root, struct context * context, _Bool run_bg)
Defined at interp.c#545