From af7a9b22bd010d37685169889b4d3fba5b48b844 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 30 Apr 2026 13:17:52 +0200 Subject: Rename "raw address" to "label" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is much clearer to the programmer. Signed-off-by: Miquel Sabaté Solà --- crates/nasm/README.md | 2 +- lib/xixanta/src/object.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/nasm/README.md b/crates/nasm/README.md index 355b28b..9a44eaa 100644 --- a/crates/nasm/README.md +++ b/crates/nasm/README.md @@ -261,7 +261,7 @@ foo: Then you will get: ``` -warning: raw address 'foo' is unused (unused.s) +warning: label 'foo' is unused (unused.s) ``` In the case for subroutines defined via `.proc`, this warning will actually be diff --git a/lib/xixanta/src/object.rs b/lib/xixanta/src/object.rs index 8867af3..1887b77 100644 --- a/lib/xixanta/src/object.rs +++ b/lib/xixanta/src/object.rs @@ -126,7 +126,7 @@ pub enum ObjectType { impl std::fmt::Display for ObjectType { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { match self { - ObjectType::Address => write!(f, "raw address"), + ObjectType::Address => write!(f, "label"), ObjectType::Proc => write!(f, "proc"), ObjectType::Value => write!(f, "variable"), ObjectType::Argument => write!(f, "macro argument"), @@ -260,7 +260,7 @@ impl Context { var.accessed += 1; Ok(var.clone()) } - // If it's a .proc or a raw address, then we account for the + // If it's a .proc or a label, then we account for the // number of times it was accessed, and we return the // resolved value. ObjectType::Address | ObjectType::Proc => { -- cgit v1.2.3