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

strbuf_append_str

void strbuf_append_str(struct strbuf * strbuf, const char * s)

Defined at strbuf.c#22

get_token

static struct token * get_token(struct list_node_link * link)

Defined at parser.c#23

strbuf_append_n

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

Defined at strbuf.c#28

advance

static struct token * advance(struct parser * parser)

Defined at parser.c#31

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

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

prepare_lines_cb

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

Defined at edit.c#71

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

procinfo

static void procinfo(struct context * context)

Defined at interp.c#86

oparen_nud

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

Defined at parser.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#97

update_horz_scroll

static void update_horz_scroll(size_t screen_cols)

Defined at edit.c#105

app_main

void app_main()

Defined at ce.c#105

update_vert_scroll

static void update_vert_scroll(size_t screen_rows)

Defined at edit.c#114

count_digits

static size_t count_digits(size_t n)

Defined at edit.c#123

edit_start

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

Defined at edit.c#137

semicolon_led

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

Defined at parser.c#102

mkdir

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

Defined at interp.c#114

redir_led

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

Defined at parser.c#114

rm

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

Defined at interp.c#123

run_bg_led

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

Defined at parser.c#129

cat

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

Defined at interp.c#132

handle_escape

static char handle_escape(char c)

Defined at parser.c#140

tokenize

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

Defined at parser.c#166

copy

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

Defined at interp.c#175

ls

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

Defined at interp.c#222

parse_and_execute

void parse_and_execute(struct list_node_link * tokens)

Defined at parser.c#260

edit

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

Defined at interp.c#262

view

static void view(struct context * context, const char * path)

Defined at interp.c#288

quit1

static void quit1(struct context * context)

Defined at interp.c#314

cls

static void cls(struct context * context)

Defined at interp.c#320

stall

static void stall(uint64_t ms)

Defined at interp.c#325

help

static void help(struct context * context)

Defined at interp.c#330

execute_cmd

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

Defined at interp.c#350

execute_redir

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

Defined at interp.c#437

execute

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

Defined at interp.c#479