Skip to content

Index

Records

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#21

wmalloc

void * wmalloc(void * ctx, size_t size)

Defined at ce.c#25

strbuf_append_n

void strbuf_append_n(struct strbuf * strbuf, const char * s, size_t n)

Defined at strbuf.c#26

advance

static struct token * advance(struct parser * parser)

Defined at parser.c#27

wrealloc

void * wrealloc(void * ctx, void * mem, size_t old, size_t new)

Defined at ce.c#30

wfree

void wfree(void * ctx, void * mem)

Defined at ce.c#35

interp_is_running

_Bool interp_is_running()

Defined at interp.c#37

interp_shutdown

void interp_shutdown()

Defined at interp.c#39

warena_malloc

void * warena_malloc(void * ctx, size_t size)

Defined at ce.c#40

parse_precedence

static struct ast_node * parse_precedence(struct parser * parser, int precedence)

Defined at parser.c#40

human_size

static void human_size(double size, double * out, char ** str)

Defined at interp.c#41

warena_realloc

void * warena_realloc(void * ctx, void * mem, size_t old, size_t new)

Defined at ce.c#45

warena_free

void warena_free(void * ctx, void * mem)

Defined at ce.c#50

echo

static void echo(struct context * context, char ** strings, size_t strings_count)

Defined at interp.c#54

exec_line

static void exec_line(const char * line)

Defined at ce.c#57

mkfile

static void mkfile(struct context * context, char ** file_paths, size_t files_count)

Defined at interp.c#63

word_nud

struct ast_node * word_nud(struct parser * parser, struct token * token)

Defined at parser.c#64

split_lines_cb

static _Bool split_lines_cb(void * ctx, const char * start, size_t len)

Defined at ce.c#66

prepare_lines_cb

static _Bool prepare_lines_cb(void * ctx, const char * start, size_t len)

Defined at edit.c#72

oparen_nud

struct ast_node * oparen_nud(struct parser * parser, struct token * token)

Defined at parser.c#80

split_args_cb

static _Bool split_args_cb(void * ctx, const char * start, size_t len)

Defined at ce.c#81

terminfo

static void terminfo(struct context * context)

Defined at interp.c#89

semicolon_led

struct ast_node * semicolon_led(struct parser * parser, struct token * token, struct ast_node * left)

Defined at parser.c#94

procinfo

static void procinfo(struct context * context)

Defined at interp.c#95

app_main

void app_main()

Defined at ce.c#95

prepare_lines

static void prepare_lines(const char * text, size_t len)

Defined at edit.c#97

update_horz_scroll

static void update_horz_scroll(size_t screen_cols)

Defined at edit.c#104

redir_led

struct ast_node * redir_led(struct parser * parser, struct token * token, struct ast_node * left)

Defined at parser.c#105

update_vert_scroll

static void update_vert_scroll(size_t screen_rows)

Defined at edit.c#112

mkdir

static void mkdir(struct context * context, char ** dir_paths, size_t dirs_count)

Defined at interp.c#113

run_bg_led

struct ast_node * run_bg_led(struct parser * parser, struct token * token, struct ast_node * left)

Defined at parser.c#119

count_digits

static size_t count_digits(size_t n)

Defined at edit.c#120

handle_escape

static char handle_escape(char c)

Defined at parser.c#129

edit_start

void edit_start(const char * volume, const char * path, const char * text, size_t text_len)

Defined at edit.c#133

rm

static void rm(struct context * context, char ** paths, size_t count)

Defined at interp.c#137

tokenize

void tokenize(struct list_node_link ** tokens, const char * text)

Defined at parser.c#154

cat

static void cat(struct context * context, char ** file_paths, size_t files_count)

Defined at interp.c#161

copy

static void copy(struct context * context, const char * path_a, const char * path_b)

Defined at interp.c#210

parse_and_execute

void parse_and_execute(struct list_node_link * tokens)

Defined at parser.c#269

ls

static void ls(struct context * context, const char * path_string)

Defined at interp.c#300

edit

static void edit(struct context * context, const char * path_string)

Defined at interp.c#351

quit1

static void quit1(struct context * context)

Defined at interp.c#393

cls

static void cls(struct context * context)

Defined at interp.c#398

mkvol

static void mkvol(struct context * context, const char * volume, const char * str_fs_type, const char * device)

Defined at interp.c#400

stall

static void stall(uint64_t ms)

Defined at interp.c#423

help

static void help(struct context * context)

Defined at interp.c#425

cmd_collect_proc

static void cmd_collect_proc(void * arg)

Defined at interp.c#449

cmd_write_proc

static void cmd_write_proc(void * arg)

Defined at interp.c#462

execute_cmd

static void execute_cmd(struct ast_cmd * cmd, struct context * context, _Bool run_bg)

Defined at interp.c#480

execute_redir

static void execute_redir(struct ast_redir * redir, struct context * context)

Defined at interp.c#599

execute

void execute(struct ast_node * root, struct context * context, _Bool run_bg)

Defined at interp.c#647