nx_glsl_tok_lib.nx
buildroot/runtime/nx_glsl_tok_lib.nx
about
dependencies 1 imports · 43 importers
diagram shows first 10 each side; +0 more imports, +33 more importers in the complete lists below.
imports: nx_syscalls.nx
imported by: nx_craft_affine_fit_t342.nxnx_craft_body_affine_alpha_fit_t361.nxnx_craft_body_fit_t138.nxnx_craft_body_semantic_alpha_fit_t345.nxnx_craft_body_winding_alpha_fit_t365.nxnx_craft_canonical_fit_t135.nxnx_craft_eye_fit_t138.nxnx_craft_gait_fit_t139.nxnx_craft_garment_fit_t132.nxnx_craft_hair_attachment_fit_t263.nxnx_craft_hair_attachment_fit_t283.nxnx_craft_hair_probe_fit_t280.nxnx_craft_imported_fit_t262.nxnx_craft_inspection_alpha_fit_t342.nxnx_craft_inspection_canonical_fit_t142.nxnx_craft_inspection_distance_fit_t235.nxnx_craft_inspection_fit_t142.nxnx_craft_integrated_fit_t73.nxnx_craft_length_fit_t140.nxnx_craft_mip_fit_t241.nxnx_craft_motion_fit_t328.nxnx_craft_person_alpha_fit_t343.nxnx_craft_procedural_review_fit_candidate_t333.nxnx_craft_rig_comparison_fit_t332.nxnx_craft_rig_inspection_fit_t230.nxnx_craft_rig_observation_fit_t331.nxnx_craft_rigview_host_fit_t341.nxnx_craft_rigview_workbench_fit_t342.nxnx_craft_scene_light_alpha_fit_t364.nxnx_craft_skin_canonical_diag_t140.nxnx_craft_skin_canonical_fit_t140.nxnx_craft_skin_fit_t138.nxnx_craft_skin_wrap_fit_t261.nxnx_craft_static_fit_t338.nxnx_craft_toon_region_fit_t143.nxnx_craft_visitors_canonical_fit_t142.nxnx_craft_visitors_fit_t140.nxnx_craft_visitors_inspection_fit_t142.nxnx_craft_visitors_lit_fit_t181.nxnx_craft_visitors_material_fit_t181.nxnx_craft_visitors_owned_fit_t219.nxnx_glsl_tokdiff.nxnx_glsl_tokdiff_gate.nx
structs
| none |
consts
| 18 | const GT_K_IDENT: i64 = 1 |
| 19 | const GT_K_NUM: i64 = 2 |
| 20 | const GT_K_OP: i64 = 3 |
| 21 | const GT_TW: i64 = 3 |
| 22 | const GT_R_TOKA: i64 = 0 |
| 23 | const GT_R_TOKB: i64 = 1 |
| 24 | const GT_R_EXPA: i64 = 2 |
| 25 | const GT_R_EXPB: i64 = 3 |
| 26 | const GT_R_FIRSTDIFF: i64 = 4 |
| 27 | const GT_R_VERDICT: i64 = 5 |
| 28 | const GT_R_REFUSED: i64 = 6 |
| 29 | const GT_R_SLOTS: i64 = 20 |
| 30 | const GT_V_IDENTICAL: i64 = 0 |
| 31 | const GT_V_DIFFERS: i64 = 1 |
| 32 | const GT_V_UNREADABLE: i64 = 2 |
| 33 | const GT_CANON_CAP: i64 = 512 |
| 34 | const GT_NUMBUF: i64 = 32 |
| 35 | const C_TAB: i64 = 9 |
| 36 | const C_NL: i64 = 10 |
| 37 | const C_CR: i64 = 13 |
| 38 | const C_SP: i64 = 32 |
| 39 | const C_BANG: i64 = 33 |
| 40 | const C_AMP: i64 = 38 |
| 41 | const C_LPAR: i64 = 40 |
| 42 | const C_RPAR: i64 = 41 |
| 43 | const C_STAR: i64 = 42 |
| 44 | const C_PLUS: i64 = 43 |
| 45 | const C_MINUS: i64 = 45 |
| 46 | const C_DOT: i64 = 46 |
| 47 | const C_SLASH: i64 = 47 |
| 48 | const C_0: i64 = 48 |
| 49 | const C_9: i64 = 57 |
| 50 | const C_LT: i64 = 60 |
| 51 | const C_EQ: i64 = 61 |
| 52 | const C_GT: i64 = 62 |
| 53 | const C_A: i64 = 65 |
| 54 | const C_E: i64 = 69 |
| 55 | const C_F: i64 = 70 |
| 56 | const C_U: i64 = 85 |
| 57 | const C_Z: i64 = 90 |
| 58 | const C_LBR: i64 = 91 |
| 59 | const C_RBR: i64 = 93 |
| 60 | const C_USCORE: i64 = 95 |
| 61 | const C_a: i64 = 97 |
| 62 | const C_e: i64 = 101 |
| 63 | const C_f: i64 = 102 |
| 64 | const C_u: i64 = 117 |
| 65 | const C_z: i64 = 122 |
| 66 | const C_BAR: i64 = 124 |
| 376 | const GN_KIND: i64 = 0 |
| 377 | const GN_TOK: i64 = 1 |
| 378 | const GN_A: i64 = 2 |
| 379 | const GN_B: i64 = 3 |
| 380 | const GN_C: i64 = 4 |
| 381 | const GN_NEXT: i64 = 5 |
| 382 | const GN_SLOTS: i64 = 6 |
| 383 | const GN_LEAF: i64 = 1 |
| 384 | const GN_BIN: i64 = 2 |
| 385 | const GN_UN: i64 = 3 |
| 386 | const GN_TERN: i64 = 4 |
| 387 | const GN_CALL: i64 = 5 |
| 388 | const GN_INDEX: i64 = 6 |
| 389 | const GN_SWZ: i64 = 7 |
| 390 | const GN_ASSIGN: i64 = 8 |
| 391 | const GN_INCDEC: i64 = 9 |
| 392 | const GP_POS: i64 = 0 |
| 393 | const GP_NTOK: i64 = 1 |
| 394 | const GP_OUT: i64 = 2 |
| 395 | const GP_ERR: i64 = 3 |
| 396 | const GP_NCOUNT: i64 = 4 |
| 397 | const GP_SRC: i64 = 5 |
| 398 | const GP_TOKS: i64 = 6 |
| 399 | const GP_NODES: i64 = 7 |
| 400 | const GP_OUTBUF: i64 = 8 |
| 401 | const GP_CAP: i64 = 9 |
| 402 | const GP_OVER: i64 = 10 |
| 403 | const GP_TMP: i64 = 11 |
| 404 | const GP_SLOTS: i64 = 12 |
| 405 | const GP_M_ASSIGN: i64 = 1 |
| 406 | const GP_M_TERN: i64 = 2 |
| 407 | const GP_M_BIN: i64 = 3 |
| 408 | const GP_M_UNARY: i64 = 4 |
| 409 | const GP_P_LOR: i64 = 1 |
| 410 | const GP_P_LAND: i64 = 2 |
| 411 | const GP_P_BOR: i64 = 3 |
| 412 | const GP_P_BXOR: i64 = 4 |
| 413 | const GP_P_BAND: i64 = 5 |
| 414 | const GP_P_EQ: i64 = 6 |
| 415 | const GP_P_REL: i64 = 7 |
| 416 | const GP_P_SHIFT: i64 = 8 |
| 417 | const GP_P_ADD: i64 = 9 |
| 418 | const GP_P_MUL: i64 = 10 |
| 419 | const GP_INV_NONE: i64 = 0 |
| 420 | const GP_INV_GE: i64 = 1 |
| 421 | const GP_INV_LE: i64 = 2 |
| 422 | const GP_INV_GT: i64 = 3 |
| 423 | const GP_INV_LT: i64 = 4 |
| 424 | const GP_INV_NE: i64 = 5 |
| 425 | const GP_INV_EQ: i64 = 6 |
| 426 | const C_QMARK: i64 = 63 |
| 427 | const C_COLON: i64 = 58 |
| 428 | const C_SEMI: i64 = 59 |
| 429 | const C_COMMA: i64 = 44 |
| 430 | const C_LBRACE: i64 = 123 |
| 431 | const C_RBRACE: i64 = 125 |
| 432 | const C_CARET: i64 = 94 |
| 433 | const C_PCT: i64 = 37 |
| 434 | const C_1: i64 = 49 |
| 437 | const GT_CANON_OUT_MULT: i64 = 8 |
| 438 | const GT_CANON_OUT_HEAD: i64 = 4096 |
| 440 | const GT_R_CANA: i64 = 7 |
| 441 | const GT_R_CANB: i64 = 8 |
| 442 | const GT_R_ERRA: i64 = 9 |
| 443 | const GT_R_ERRB: i64 = 10 |
| 444 | const GT_R_ERRLA: i64 = 11 |
| 445 | const GT_R_ERRLB: i64 = 12 |
| 446 | const GT_R_CAPTR_A: i64 = 13 |
| 447 | const GT_R_CALEN_A: i64 = 14 |
| 448 | const GT_R_CAPTR_B: i64 = 15 |
| 449 | const GT_R_CALEN_B: i64 = 16 |
| 450 | const GT_R_SRCA: i64 = 17 |
| 451 | const GT_R_SRCB: i64 = 18 |
| 452 | const GT_R_OVER: i64 = 19 |
functions
| 68 | func gt_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 69 | func gt_fputs(fd: i64, s: *u8) -> i64 { sys_write(fd, s, gt_slen(s)); return 0 } called by 6: gt_put_expanded_tokgt_reportgt_report_canontd_extracttd_rawmain calls 2: sys_writegt_slen |
| 70 | func gt_fputn(fd: i64, v: i64) -> i64 |
| 83 | func gt_isalpha(c: i64) -> i64 called by 1: gt_tokenize |
| 89 | func gt_isdigit(c: i64) -> i64 { if c >= C_0 { if c <= C_9 { return 1 } } return 0 } called by 1: gt_tokenize |
| 90 | func gt_isspace(c: i64) -> i64 called by 1: gt_tokenize |
| 98 | func gt_op2(a: i64, b: i64) -> i64 called by 1: gt_tokenize |
| 119 | func gt_tokenize(src: *u8, n: i64, toks: *i64) -> i64 |
| 186 | func gt_canon(src: *u8, toks: *i64, t: i64, out: *u8, cap: i64) -> i64 |
| 212 | func gt_is_compound(src: *u8, toks: *i64, t: i64) -> i64 |
| 224 | func gt_tok_is(src: *u8, toks: *i64, t: i64, ch: i64) -> i64 called by 1: gt_lvalue_start |
| 232 | func gt_lvalue_start(src: *u8, toks: *i64, last: i64) -> i64 |
| 262 | func gt_expand(src: *u8, toks: *i64, k: i64, xt: *i64, box: *i64) -> i64 |
| 287 | func gt_diff(a: *u8, na: i64, b: *u8, nb: i64, r: *i64) -> i64 |
| 325 | func gt_put_expanded_tok(fd: i64, src: *u8, n: i64, i: i64) -> i64 called by 2: gt_reportgt_report_canon calls 6: sys_mmapgt_tokenizegt_expandgt_fputsgt_canonsys_write |
| 338 | func gt_report(fd: i64, a: *u8, na: i64, b: *u8, nb: i64, r: *i64) -> i64 |
| 454 | func gp_tk(ps: *i64, t: i64, w: i64) -> i64 { let tk: *i64 = ps[GP_TOKS] as *i64; return tk[t * GT_TW + w] } |
| 455 | func gp_byte(ps: *i64, t: i64, i: i64) -> i64 { let s: *u8 = ps[GP_SRC] as *u8; return s[gp_tk(ps, t, 0) + i] as i64 } |
| 456 | func gp_kind(ps: *i64, t: i64) -> i64 |
| 461 | func gp_is1(ps: *i64, t: i64, ch: i64) -> i64 |
| 467 | func gp_is2(ps: *i64, t: i64, a: i64, b: i64) -> i64 |
| 474 | func gp_isword(ps: *i64, t: i64, w: *u8) -> i64 |
| 482 | func gp_fail(ps: *i64, t: i64) -> i64 { if ps[GP_ERR] < 0 { ps[GP_ERR] = t } return 0 } |
| 483 | func gp_n(ps: *i64, id: i64, w: i64) -> i64 { let nd: *i64 = ps[GP_NODES] as *i64; return nd[id * GN_SLOTS + w] } called by 1: gp_print |
| 484 | func gp_nset(ps: *i64, id: i64, w: i64, v: i64) -> i64 { let nd: *i64 = ps[GP_NODES] as *i64; nd[id * GN_SLOTS + w] = v; return 0 } |
| 485 | func gp_node(ps: *i64, kind: i64, tok: i64, a: i64, b: i64, c: i64) -> i64 |
| 491 | func gp_putc(ps: *i64, ch: i64) -> i64 |
| 498 | func gp_emit_c(ps: *i64, ch: i64) -> i64 { gp_putc(ps, ch); gp_putc(ps, C_SP); return 0 } |
| 499 | func gp_emit_s(ps: *i64, s: *u8) -> i64 |
| 506 | func gp_emit_tok(ps: *i64, t: i64) -> i64 |
| 514 | func gp_take(ps: *i64) -> i64 { ps[GP_POS] = ps[GP_POS] + 1; return 0 } |
| 516 | func gp_expect(ps: *i64, ch: i64) -> i64 |
| 522 | func gp_binprec(ps: *i64, t: i64) -> i64 |
| 554 | func gp_parse(ps: *i64, mode: i64, minp: i64) -> i64 called by 3: gp_parsegp_stmtgp_toplevel calls 10: gp_parsegt_is_compoundgp_takegp_nodegp_is1gp_fail+4 |
| 668 | func gp_inv(ps: *i64, t: i64) -> i64 |
| 684 | func gp_emit_inv(ps: *i64, inv: i64) -> i64 |
| 695 | func gp_print(ps: *i64, id: i64) -> i64 |
| 744 | func gp_stmt(ps: *i64, wrap: i64) -> i64 |
| 889 | func gp_toplevel(ps: *i64) -> i64 |
| 907 | func gt_canon_text(src: *u8, n: i64, out: *u8, cap: i64, box: *i64) -> i64 |
| 933 | func gt_diff_canon(a: *u8, na: i64, b: *u8, nb: i64, r: *i64) -> i64 |
| 966 | func gt_slice_prefix(r: *i64) -> i64 called by 1: gt_report_canon |
| 982 | func gt_report_canon(fd: i64, r: *i64) -> i64 |