refactor(lang): rename the ptr/ptrs types to pointer/pointers
Expand the abbreviated pointer types to full words on the language surface: ptr -> pointer (a raw address / FFI handle) ptrs -> pointers (a buffer of pointers) The Ludic type name is distinct from LLVM's own `ptr` spelling: llty() maps `pointer`/`pointers` to LLVM `ptr`, and the emitted IR keeps `ptr`, so only the Ludic-level surface changes. Rewrites type annotations across all sources, the 8 hardcoded pointer type-tags, the `pointers`-buffer indexing in emit_addr, the grammars/LSP/JetBrains tokens, and the docs (type-ptr -> type-pointer, type-ptrs -> type-pointers). int/bool keep their conventional short spelling (like Math). Reseeded; C-free fixpoint holds; all suites green (45/24/29); site + check.py OK. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
b7745a4600
commit
effb3f637f
76 changed files with 516 additions and 516 deletions
|
|
@ -72,8 +72,8 @@ var ui_rh: words = null
|
|||
var ui_visible: words = null
|
||||
var ui_fired: words = null
|
||||
var ui_hasdyn: words = null
|
||||
var ui_dyn: ptr = null # UI_MAX * 96 bytes
|
||||
var ui_text: ptrs = null # UI_MAX static string pointers
|
||||
var ui_dyn: pointer = null # UI_MAX * 96 bytes
|
||||
var ui_text: pointers = null # UI_MAX static string pointers
|
||||
|
||||
var ui_n: int = 0
|
||||
var ui_active: int = -1
|
||||
|
|
@ -175,14 +175,14 @@ function rt_ui_static_text(i: int, s: string) -> void {
|
|||
}
|
||||
|
||||
# ---- text helpers: TrueType when a font is loaded, bitmap otherwise -------
|
||||
function ui_str(i: int) -> ptr {
|
||||
function ui_str(i: int) -> pointer {
|
||||
if ui_hasdyn[i] == 1 { return offset(ui_dyn, i * 96) }
|
||||
let t = ui_text[i]
|
||||
if (t == null) { return offset(ui_dyn, i * 96) }
|
||||
return t
|
||||
}
|
||||
|
||||
function ui_draw_text(font: int, x: int, y: int, s: ptr, colour: int, size: int) -> void {
|
||||
function ui_draw_text(font: int, x: int, y: int, s: pointer, colour: int, size: int) -> void {
|
||||
if font >= 0 {
|
||||
if font < tt_n {
|
||||
rt_text_ttf(font, x, y, s, colour, size)
|
||||
|
|
@ -192,7 +192,7 @@ function ui_draw_text(font: int, x: int, y: int, s: ptr, colour: int, size: int)
|
|||
rt_text(x, y, s, colour, max(size / 8, 1))
|
||||
}
|
||||
|
||||
function ui_tw(font: int, s: ptr, size: int) -> int {
|
||||
function ui_tw(font: int, s: pointer, size: int) -> int {
|
||||
if font >= 0 {
|
||||
if font < tt_n { return rt_text_w(font, s, size) }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue