Skip to content

Agent API_p17

grisun0 edited this page Oct 30, 2026 · 15 revisions

API (page 17 of 21)

Previous: API_p16.md

progs/freedomui/ps2_keymap.c

Depends on: kernel/string.c, progs/freedomui/ps2_keymap.h

progs/freedomui/ps2_keymap.h

Imported by: progs/freedomui/platform_minios.c, progs/freedomui/ps2_keymap.c, tests/test_ps2_keymap.c

  • ps2_init (function) progs/freedomui/ps2_keymap.h:47 void ps2_init(ps2_state *s); -- int extended; /* an E0 prefix is pending int skip; /* bytes of an E1 sequence still to swallow }...
  • arguments (function) progs/freedomui/ps2_keymap.h:51 * arguments (out is then left untouched). */ int ps2_feed(ps2_state *s, uint8_t byte, ps2_key *out);

progs/lisp/lisp.c

Depends on: kernel/string.c, progs/minios_abi.h

  • numbers (function) progs/lisp/lisp.c:9 * * Language surface: numbers (int64), strings, symbols, cons cells, closures * with lexical scope, and the special...
  • lisp_version (function) progs/lisp/lisp.c:62 static const char *lisp_version(void) -- Version string printed by --version and the REPL banner.
  • msys (function) progs/lisp/lisp.c:205 static long msys(long n, long a1, long a2, long a3) -- Raw 3-argument syscall through the x86-64 Linux ABI.
  • msys5 (function) progs/lisp/lisp.c:218 static long msys5(long n, long a1, long a2, long a3, long a4, long a5) -- Raw 5-argument syscall for SYS_SPAWN with path, redirect, argc, argv.
  • fatal (function) progs/lisp/lisp.c:233 static void fatal(Runtime *rt, const char *message) -- Report a fatal internal failure and terminate the process.
  • xalloc (function) progs/lisp/lisp.c:242 static void *xalloc(Runtime *rt, size_t size) -- Allocate zeroed tracked memory that frees with the runtime.
  • xstrdup (function) progs/lisp/lisp.c:266 static char *xstrdup(Runtime *rt, const char *source) -- Duplicate a string into tracked memory.
  • make_node (function) progs/lisp/lisp.c:284 static Node *make_node(Runtime *rt, NodeType type) -- Allocate a node of the given type in tracked memory.
  • make_error (function) progs/lisp/lisp.c:293 static Node *make_error(Runtime *rt, const char *message) -- Build an error value carrying a diagnostic message.
  • make_num (function) progs/lisp/lisp.c:302 static Node *make_num(Runtime *rt, int64_t value) -- Build a numeric value node.
  • make_str (function) progs/lisp/lisp.c:311 static Node *make_str(Runtime *rt, const char *value) -- Build a string value node from a NUL-terminated source.
  • make_sym (function) progs/lisp/lisp.c:320 static Node *make_sym(Runtime *rt, const char *value) -- Build a symbol value node from a NUL-terminated name.
  • make_prim (function) progs/lisp/lisp.c:329 static Node *make_prim(Runtime *rt, PrimFn function) -- Build a primitive function value node.
  • cons (function) progs/lisp/lisp.c:338 static Node *cons(Runtime *rt, Node *car, Node *cdr) -- Build a cons cell from two values.
  • is_nil (function) progs/lisp/lisp.c:348 static bool is_nil(Runtime *rt, const Node *node) -- Test whether a node is the empty list in any of its spellings.
  • make_file (function) progs/lisp/lisp.c:355 static Node *make_file(Runtime *rt, FILE *handle) -- Register an open FILE handle and wrap it in a file value node.
  • cleanup (function) progs/lisp/lisp.c:377 static void cleanup(Runtime *rt) -- Close every tracked file and release every tracked allocation.
  • runtime_init (function) progs/lisp/lisp.c:399 static void runtime_init(Runtime *rt) -- Initialize a runtime with streams, constants and empty tables.
  • env_new (function) progs/lisp/lisp.c:411 static Env *env_new(Runtime *rt, Env *parent) -- Allocate a new environment frame with an optional parent.
  • env_bind (function) progs/lisp/lisp.c:421 static void env_bind(Runtime *rt, Env *env, Node *symbol, Node *value) -- Bind a symbol to a value in the innermost frame.
  • env_set (function) progs/lisp/lisp.c:432 static bool env_set(Env *env, Node *symbol, Node *value) -- Update the nearest visible binding of a symbol.
  • env_lookup (function) progs/lisp/lisp.c:454 static Node *env_lookup(Env *env, Node *symbol) -- Resolve the nearest visible binding of a symbol.
  • reader_peek (function) progs/lisp/lisp.c:475 static char reader_peek(const Reader *reader) -- Peek at the current reader character without consuming it.
  • reader_next (function) progs/lisp/lisp.c:482 static char reader_next(Reader *reader) -- Consume one reader character and track line and column.
  • reader_at_end (function) progs/lisp/lisp.c:500 static bool reader_at_end(const Reader *reader) -- Test whether the reader reached the end of its buffer.
  • skip_space_and_comments (function) progs/lisp/lisp.c:507 static void skip_space_and_comments(Reader *reader) -- Skip whitespace and line comments starting with a semicolon.
  • sb_init (function) progs/lisp/lisp.c:523 static void sb_init(StringBuilder *builder) -- Initialize a string builder with a bounded initial capacity.
  • sb_push (function) progs/lisp/lisp.c:536 static void sb_push(StringBuilder *builder, char value) -- Append one byte to a string builder with overflow-checked growth.
  • parse_ok (function) progs/lisp/lisp.c:562 static ParseResult parse_ok(Node *value) -- Build a successful parse result.
  • parse_eof (function) progs/lisp/lisp.c:573 static ParseResult parse_eof(void) -- Build an end-of-input parse result.
  • parse_error (function) progs/lisp/lisp.c:584 static ParseResult parse_error(const char *message) -- Build a parse error result with a bounded message.
  • read_list (function) progs/lisp/lisp.c:596 static ParseResult read_list(Runtime *rt, Reader *reader) -- Read a parenthesized list terminated by a closing paren.
  • read_string (function) progs/lisp/lisp.c:626 static ParseResult read_string(Runtime *rt, Reader *reader) -- Read a double-quoted string with backslash escapes.
  • token_delimiter (function) progs/lisp/lisp.c:677 static bool token_delimiter(char c) -- Test whether a character terminates an atom token.
  • read_atom (function) progs/lisp/lisp.c:685 static ParseResult read_atom(Runtime *rt, Reader *reader) -- Read a number, nil, t or symbol token.
  • read_expr (function) progs/lisp/lisp.c:721 static ParseResult read_expr(Runtime *rt, Reader *reader) -- Read one expression, skipping whitespace and comments first.
  • list_count (function) progs/lisp/lisp.c:750 static size_t list_count(Runtime *rt, Node *list, bool *proper) -- Count proper list elements and report whether the spine is proper.
  • has_arity (function) progs/lisp/lisp.c:767 static bool has_arity(Runtime *rt, Node *args, size_t expected) -- Test whether an argument list has exactly the expected length.
  • arg_at (function) progs/lisp/lisp.c:775 static Node *arg_at(Runtime *rt, Node *args, size_t index) -- Fetch the positional argument at an index or NULL when absent.
  • arg_matches (function) progs/lisp/lisp.c:815 static bool arg_matches(const Node *value, ArgKind kind) -- Test whether an already-fetched argument matches one ArgKind.
  • check_args (function) progs/lisp/lisp.c:841 static bool check_args(Runtime *rt, Node *args, const ArgKind *kinds, size_t n, Node **out) -- Validate that args is a proper list of exactly n elements whose types match kinds[0..n), writing each fetched...
  • arity0 (function) progs/lisp/lisp.c:861 static bool arity0(Runtime *rt, Node *args) -- Validate that args is the empty argument list.
  • prim_add (function) progs/lisp/lisp.c:869 static Node *prim_add(Runtime *rt, Node *args) -- Add two numbers with overflow reported as an error value.
  • prim_sub (function) progs/lisp/lisp.c:885 static Node *prim_sub(Runtime *rt, Node *args) -- Subtract two numbers with overflow reported as an error value.
  • prim_mul (function) progs/lisp/lisp.c:901 static Node *prim_mul(Runtime *rt, Node *args) -- Multiply two numbers with overflow reported as an error value.
  • prim_div (function) progs/lisp/lisp.c:917 static Node *prim_div(Runtime *rt, Node *args) -- Divide two numbers with zero and overflow reported as errors.
  • prim_eq (function) progs/lisp/lisp.c:939 static Node *prim_eq(Runtime *rt, Node *args) -- Compare two numbers for equality.
  • prim_lt (function) progs/lisp/lisp.c:951 static Node *prim_lt(Runtime *rt, Node *args) -- Compare two numbers with less-than.
  • prim_car (function) progs/lisp/lisp.c:963 static Node *prim_car(Runtime *rt, Node *args) -- Return the first element of a cons cell or nil.
  • prim_cdr (function) progs/lisp/lisp.c:975 static Node *prim_cdr(Runtime *rt, Node *args) -- Return the rest of a cons cell or nil.
  • prim_cons (function) progs/lisp/lisp.c:987 static Node *prim_cons(Runtime *rt, Node *args) -- Build a cons cell from two values.
  • prim_string_concat (function) progs/lisp/lisp.c:999 static Node *prim_string_concat(Runtime *rt, Node *args) -- Concatenate two strings with an overflow-checked allocation.
  • prim_string_eq (function) progs/lisp/lisp.c:1026 static Node *prim_string_eq(Runtime *rt, Node *args) -- Compare two strings for equality.
  • prim_string_length (function) progs/lisp/lisp.c:1038 static Node *prim_string_length(Runtime *rt, Node *args) -- Return the byte length of a string.
  • prim_string_at (function) progs/lisp/lisp.c:1050 static Node *prim_string_at(Runtime *rt, Node *args) -- Return the one-character string at a byte index or nil when out of range.
  • prim_char_code (function) progs/lisp/lisp.c:1072 static Node *prim_char_code(Runtime *rt, Node *args) -- Convert between a one-character string and its byte value.
  • prim_print (function) progs/lisp/lisp.c:1094 static Node *prim_print(Runtime *rt, Node *args) -- Print a value without a trailing newline.
  • prim_println (function) progs/lisp/lisp.c:1108 static Node *prim_println(Runtime *rt, Node *args) -- Print a value with a trailing newline.
  • file_mode_allowed (function) progs/lisp/lisp.c:1123 static bool file_mode_allowed(const char *mode) -- Test whether a file mode string belongs to the safe whitelist.
  • prim_read_char (function) progs/lisp/lisp.c:1183 static Node *prim_read_char(Runtime *rt, Node *args) -- Read one byte from a file or nil at end of file.
  • prim_write (function) progs/lisp/lisp.c:1200 static Node *prim_write(Runtime *rt, Node *args) -- Write a string or byte value to an open file.
  • prim_close_file (function) progs/lisp/lisp.c:1224 static Node *prim_close_file(Runtime *rt, Node *args) -- Close an open file and release its runtime slot.
  • prim_null_p (function) progs/lisp/lisp.c:1249 static Node *prim_null_p(Runtime *rt, Node *args) -- Test whether a value is nil.
  • prim_number_p (function) progs/lisp/lisp.c:1261 static Node *prim_number_p(Runtime *rt, Node *args) -- Test whether a value is a number.
  • prim_string_p (function) progs/lisp/lisp.c:1273 static Node *prim_string_p(Runtime *rt, Node *args) -- Test whether a value is a string.
  • prim_error_message (function) progs/lisp/lisp.c:1285 static Node *prim_error_message(Runtime *rt, Node *args) -- Return the message of an error value or nil for other values.
  • arity (function) progs/lisp/lisp.c:1300 * * Variable arity (0 or 1);
  • prim_exit (function) progs/lisp/lisp.c:1303 static Node *prim_exit(Runtime *rt, Node *args) -- Terminate the process with a numeric exit status.
  • prim_time_ms (function) progs/lisp/lisp.c:1330 static Node *prim_time_ms(Runtime *rt, Node *args) -- Return milliseconds since boot through the kernel time service.
  • prim_rtc (function) progs/lisp/lisp.c:1340 static Node *prim_rtc(Runtime *rt, Node *args) -- Return the clock time as a three-element list or nil when unavailable.
  • prim_fb_info (function) progs/lisp/lisp.c:1357 static Node *prim_fb_info(Runtime *rt, Node *args) -- Return framebuffer width, height and pitch or nil when unavailable.
  • prim_vol (function) progs/lisp/lisp.c:1377 static Node *prim_vol(Runtime *rt, Node *args) -- Read or set the speaker volume, clamped to the valid range.
  • prim_pal (function) progs/lisp/lisp.c:1405 static Node *prim_pal(Runtime *rt, Node *args) -- Load a 768-byte VGA palette from a string value.
  • prim_pcspeaker (function) progs/lisp/lisp.c:1421 static Node *prim_pcspeaker(Runtime *rt, Node *args) -- Play a speaker tone for a bounded millisecond duration.
  • prim_minios_run (function) progs/lisp/lisp.c:1465 static Node *prim_minios_run(Runtime *rt, Node *args) -- Run a program through SYS_SPAWN and return its exit code.
  • eval_list (function) progs/lisp/lisp.c:1527 static Node *eval_list(Runtime *rt, Node *list, Env *env) -- Evaluate every element of a list into a fresh proper list.
  • eval_sequence (function) progs/lisp/lisp.c:1551 static Node *eval_sequence(Runtime *rt, Node *body, Env *env) -- Evaluate a body sequence and return the last value.
  • valid_params (function) progs/lisp/lisp.c:1569 static bool valid_params(Runtime *rt, Node *params) -- Test whether a parameter list holds only symbols.
  • eval (function) progs/lisp/lisp.c:1583 static Node *eval(Runtime *rt, Node *expression, Env *env) -- Evaluate an expression with tail-call reuse and a bounded depth.
  • print_escaped_string (function) progs/lisp/lisp.c:1846 static void print_escaped_string(FILE *out, const char *value) -- Write a string with escape sequences for readable output.
  • print_node (function) progs/lisp/lisp.c:1877 static void print_node(Runtime *rt, Node *node, bool readable) -- Print a value in readable or display form with a bounded depth.
  • bind_primitive (function) progs/lisp/lisp.c:1948 static void bind_primitive(Runtime *rt, Env *env, const char *name, PrimFn function) -- Register one named primitive in an environment frame.
  • init_env (function) progs/lisp/lisp.c:2004 static Env *init_env(Runtime *rt) -- Build the global environment with arithmetic, strings, files and MiniOS.
  • bind_argv (function) progs/lisp/lisp.c:2017 static void bind_argv(Runtime *rt, Env *env, int argc, char **argv, int first) -- Expose the script argument vector as a proper list of strings.
  • read_all_file (function) progs/lisp/lisp.c:2029 static char *read_all_file(const char *filename, size_t max_bytes) -- Read a whole file into memory with a hard size cap.
  • process_source (function) progs/lisp/lisp.c:2087 static int process_source(Runtime *rt, const char *source, const char *source_name, bool echo) -- Evaluate every form in a source buffer and report the first failure.
  • process_inline (function) progs/lisp/lisp.c:2129 static int process_inline(Runtime *rt, const char *code) -- Evaluate one inline expression from the -e flag.
  • print_usage (function) progs/lisp/lisp.c:2136 static void print_usage(Runtime *rt) -- Print usage for the command line interface.
  • repl (function) progs/lisp/lisp.c:2143 static int repl(Runtime *rt) -- Run the interactive read-eval loop on the runtime input stream.
  • main (function) progs/lisp/lisp.c:2190 int main(int argc, char **argv) -- Entry point with -e, script and REPL modes plus bounded arguments.

progs/lisp/tin.c

progs/lua/lua_main.c

Depends on: kernel/string.c

progs/lua/minios.c

Depends on: progs/minios_abi.h Imported by: progs/micropython/variants/minios/lib/hello.py, progs/micropython/variants/minios/lib/mip.py, progs/src/shell.py, progs/src/test.py

  • msys5 (function) progs/lua/minios.c:37 static long msys5(long n, long a1, long a2, long a3, long a4, long a5) -- /* ── raw syscall helpers (x86-64 Linux ABI) ─────────────────────────── static long msys(long n, long a1, long a2...
  • minios_time_ms (function) progs/lua/minios.c:62 static int minios_time_ms(lua_State *L) -- } /* ── MiniOS syscall numbers (canonical table from minios_abi.h) ─────── #include "minios_abi.h" #define...
  • minios_rtc (function) progs/lua/minios.c:68 static int minios_rtc(lua_State *L) -- #define SYS_PCSPK_INIT MINIOS_SYS_PCSPK_INIT #define SYS_PCSPK_TONE MINIOS_SYS_PCSPK_TONE #define SYS_RTC...
  • minios_fb_info (function) progs/lua/minios.c:82 static int minios_fb_info(lua_State *L) -- static int minios_rtc(lua_State *L) { int h, m, s; if (msys(SYS_RTC, (long)&h, (long)&m, (long)&s) < 0) {...
  • minios_vol (function) progs/lua/minios.c:96 static int minios_vol(lua_State *L) -- static int minios_fb_info(lua_State *L) { int w, h, p; if (msys(SYS_FB_INFO, (long)&w, (long)&h, (long)&p) < 0) {...
  • minios_pal (function) progs/lua/minios.c:109 static int minios_pal(lua_State *L) -- /* ── minios.vol([v]) -> current volume ─────────────────────────────── static int minios_vol(lua_State *L) { if...
  • minios_pcspeaker (function) progs/lua/minios.c:119 static int minios_pcspeaker(lua_State *L) -- return 1; } /* ── minios.pal(buf) -- load a 768-byte VGA DAC palette ────────────── static int minios_pal(lua_State...
  • minios_run (function) progs/lua/minios.c:136 static int minios_run(lua_State *L) -- ── minios.run(path[, args][, redirect]) -> exit code ─────────────── Runs a program through SYS_SPAWN (215)...
  • luaopen_minios (function) progs/lua/minios.c:192 int luaopen_minios(lua_State *L)

progs/micropython/variants/minios/lib/mip.py

Depends on: progs/lua/minios.c Imported by: progs/src/test_py.py

progs/micropython/variants/minios/minios_module.c

Depends on: progs/minios_abi.h

progs/minicraft/minicraft.c

Depends on: kernel/string.c, progs/minios_abi.h

progs/minios_abi.h

Imported by: headers/kernel.h, headers/vga_fb.h, progs/doomedit/doomedit.c, progs/doomgeneric/doomgeneric_minios.c, progs/doomgeneric/i_minios_sound.c, progs/file/file.c, progs/freedomui/freedomui_minios.c, progs/freedomui/platform_minios.c, progs/lisp/lisp.c, progs/lua/minios.c, progs/micropython/variants/minios/minios_module.c, progs/minicraft/minicraft.c, progs/nuklear/node_editor.c, progs/nuklear/nuklear_minios.h, progs/paint/paint.c, progs/piano/piano.c, progs/pokemon/platform_minios.c, progs/quake2generic/q2generic_minios.c, progs/quake2generic/snddma_minios.c, progs/src/audio.c, progs/src/fptest.c, progs/src/freedom_wl.c, progs/src/lxproc.c, progs/src/mthreads.h, progs/src/opl3.c, progs/src/pip.c, progs/src/sbtone.c, progs/src/thdemo.c, progs/wl/wlcomp.c, tests/test_abi.c, tests/test_wl.c, tools/abi_stamp.c

  • DOOM_BACKBUF_ADDR (function) progs/minios_abi.h:133 * * All three sit in the reserved tail above DOOM_BACKBUF_ADDR (the brk cap), * so a growing heap or mmap region can...
  • range (function) progs/minios_abi.h:334 * number inside the MiniOS window and outside the pcm2 range (246-248). */ #define MINIOS_SYS_LZ4_DECOMPRESS 255...

progs/minios_png.h

Imported by: progs/file/file.c, progs/pokemon/platform_minios.c, tests/test_minios_png.c

  • mpng_332_idx (function) progs/minios_png.h:58 static int mpng_332_idx(unsigned r, unsigned g, unsigned b) -- static const char *mpng_left_candidates[MPNG_LEFT_N] = { "/icons/doom.png", "/icons/doomedit.png"...
  • mpng_nearest (function) progs/minios_png.h:63 static int mpng_nearest(const unsigned char *pal, long pal_n, unsigned r, ... -- "/icons/nuklear.png", "/icons/vedit.png", "/icons/file.png", "/icons/shell.png", "/icons/paint.png"...
  • mpng_center (function) progs/minios_png.h:84 static int mpng_center(int outer, int inner) -- for (k = 0; k < pal_n; k++) { long dr = (long)pal[k * 3] - (long)r; long dg = (long)pal[k * 3 + 1] - (long)g; long...
  • mpng_fit_scale (function) progs/minios_png.h:93 static int mpng_fit_scale(int sw, int sh, int boxw, int boxh) -- } return (int)best; } /** Docstring: centered offset of inner inside outer, negative when unfit. static int...
  • mpng_rgb_to_idx_scaled (function) progs/minios_png.h:108 static int mpng_rgb_to_idx_scaled(const unsigned char *rgb, int sw, int sh, ... -- int s = 1; int best = 1; if (sw <= 0 || sh <= 0 || boxw <= 0 || boxh <= 0) return -1; for (s = 1; s <= boxw && s <=...
  • bound (function) progs/minios_png.h:140 `* its 512 source bound (pinned by the host suite), so icon and policy
  • art never grow through t...`
  • mpng_rgb_to_332_scaled (function) progs/minios_png.h:172 static int mpng_rgb_to_332_scaled(const unsigned char *rgb, int sw, int sh, ... -- int sy = y * sh / dh; for (x = 0; x < dw; x++) { int sx = x * sw / dw; const unsigned char *p = rgb + (sy * sw + sx)...
  • mpng_blit_idx (function) progs/minios_png.h:196 static int mpng_blit_idx(unsigned char *fb, int fw, int fh, const unsign... -- if (dw > MPNG_MAX_DIM || dh > MPNG_MAX_DIM) return MPNG_ERR_BOUND; for (y = 0; y < dh; y++) { int sy = y * sh / dh...
  • mpng_load_file (function) progs/minios_png.h:222 static int mpng_load_file(const char *path, unsigned char **out, long *out_n, ... -- int dy = oy + y; if (dy < 0 || dy >= fh) continue; for (x = 0; x < tw; x++) { int dx = ox + x; if (dx < 0 || dx >=...

progs/nk_palette.h

Imported by: progs/freedomui/freedomui_minios.c, progs/nuklear/nuklear_minios.c, progs/src/freedom_wl.c, progs/wl/wlcomp.c, tests/test_wl.c

  • nk_palette_build (function) progs/nk_palette.h:22 static int nk_palette_build(unsigned char *pal, long cap)

progs/nuklear/cvm_emit.c

Depends on: kernel/string.c, progs/nuklear/cvm_emit.h

  • module (function) progs/nuklear/cvm_emit.c:3 * * Emits a cvm2 module (format v2) from a dataflow graph. Nodes are * topologically sorted (a true DAG order, so...
  • code (function) progs/nuklear/cvm_emit.c:8 `* exit code (OP_HALT leaves the operand-stack top as the exit status, which
  • the shell reports ...`
  • cb_push (function) progs/nuklear/cvm_emit.c:79 static int cb_push(struct codebuf *cb, unsigned char c)
  • cb_u32 (function) progs/nuklear/cvm_emit.c:91 static int cb_u32(struct codebuf *cb, unsigned long v)
  • cb_i64 (function) progs/nuklear/cvm_emit.c:97 static int cb_i64(struct codebuf *cb, long long v)
  • cb_patch_u32 (function) progs/nuklear/cvm_emit.c:103 static void cb_patch_u32(struct codebuf *cb, size_t pos, unsigned long v)
  • cb_imm (function) progs/nuklear/cvm_emit.c:111 static int cb_imm(struct codebuf *cb, long long v) -- static int cb_i64(struct codebuf *cb, long long v) { for (int i = 0; i < 8; i++) if (cb_push(cb, (unsigned char)(v...
  • req_inputs (function) progs/nuklear/cvm_emit.c:126 static int req_inputs(enum cvm_node_type t) -- if (v >= -128 && v <= 127) { if (cb_push(cb, OP_PUSH_IMM8) < 0) return -1; if (cb_push(cb, (unsigned char)(v &...
  • is_sink (function) progs/nuklear/cvm_emit.c:145 static int is_sink(enum cvm_node_type t)
  • topo_sort (function) progs/nuklear/cvm_emit.c:150 static int topo_sort(const struct cvm_node *nodes, int n, int *order, char *... -- case NODE_EXIT: return 1; case NODE_IF: return 3; default: return 2; } } static int is_sink(enum cvm_node_type t) {...
  • emit_operand (function) progs/nuklear/cvm_emit.c:213 static int emit_operand(struct codebuf *code, const struct cvm_node *nodes, ... -- Emit one operand: the wired local slot or the fallback literal.
  • emit_jz (function) progs/nuklear/cvm_emit.c:224 static int emit_jz(struct codebuf *code, size_t *rel_pos)
  • emit_jmp (function) progs/nuklear/cvm_emit.c:230 static int emit_jmp(struct codebuf *code, size_t *rel_pos)
  • cvm_compile (function) progs/nuklear/cvm_emit.c:236 int cvm_compile(const struct cvm_node *nodes, int n, unsigned char **out, size_t ...
  • w32 (function) progs/nuklear/cvm_emit.c:491 void w32(void *p, unsigned v) -- size_t ft = (size_t)nf * CVM_FUNC_ENTRY_SIZE; size_t gt = (size_t)ng * CVM_GLOBAL_ENTRY_SIZE; size_t nt = (size_t)nn...

progs/nuklear/cvm_emit.h

Imported by: progs/nuklear/cvm_emit.c, progs/nuklear/node_editor.c

  • graph (function) progs/nuklear/cvm_emit.h:6 * * A node graph (constants, arithmetic, bitwise, comparisons, a conditional * select, and string constants feeding...
  • err (function) progs/nuklear/cvm_emit.h:67 * err (err_cap bytes). The module is heap-allocated and owned by the caller * (free it). */ int cvm_compile(const...

progs/nuklear/node_editor.c

Depends on: kernel/string.c, progs/minios_abi.h, progs/nuklear/cvm_emit.h, progs/nuklear/nuklear_minios.h, progs/nuklear/nuklear_theme.h

progs/nuklear/nuklear_minios.c

Depends on: kernel/string.c, progs/nk_palette.h, progs/nuklear/nuklear_minios.h, progs/wl/wl_client.h, progs/wl/wl_mbox.h

progs/nuklear/nuklear_minios.h

Depends on: progs/minios_abi.h Imported by: progs/doomedit/doomedit.c, progs/file/file.c, progs/nuklear/font8x8.c, progs/nuklear/node_editor.c, progs/nuklear/nuklear_minios.c, progs/paint/paint.c, progs/piano/piano.c, progs/vedit/vedit.c

progs/nuklear/nuklear_theme.c

Depends on: kernel/string.c, progs/nuklear/nuklear_theme.h

progs/nuklear/nuklear_theme.h

Imported by: progs/doomedit/doomedit.c, progs/file/file.c, progs/nuklear/node_editor.c, progs/nuklear/nuklear_theme.c, progs/paint/paint.c, progs/piano/piano.c, progs/vedit/vedit.c, tests/test_theme.c

  • nk_theme_active (function) progs/nuklear/nuklear_theme.h:62 int nk_theme_active(char *dst, int cap); -- X(scrollbar_cursor, 24) \ X(scrollbar_cursor_hover, 25) \ X(scrollbar_cursor_active, 26) \ X(tab_header, 27) ...
  • nk_theme_probe (function) progs/nuklear/nuklear_theme.h:65 int nk_theme_probe(const char *name, unsigned char rgb[NK_THEME_KEY_COUNT][3]); -- X(tab_header, 27) \ X(knob, 28) \ X(knob_cursor, 29) \ X(knob_cursor_hover, 30) \ X(knob_cursor_active, 31) #define...
  • nk_theme_apply (function) progs/nuklear/nuklear_theme.h:68 int nk_theme_apply(struct nk_context *ctx, const char *name); -- X(knob_cursor_hover, 30) \ X(knob_cursor_active, 31) #define NK_THEME_KEY_COUNT 32 struct nk_context; /** Resolve...

Next: API_p18.md

Start

Wiki

Agent Docs

Recipes

Clone this wiki locally