aboutsummaryrefslogtreecommitdiff
path: root/lib/xixanta/src/object.rs
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-02-25 22:12:31 +0100
committerMiquel Sabaté Solà <mssola@mssola.com>2026-02-25 22:12:31 +0100
commite895b44291891cd13bd1b50b5fd414c15341b5e0 (patch)
tree691bc15732c4700da2c8f3e2278da134b02246d9 /lib/xixanta/src/object.rs
parent988c14ed959739da3da4c3548b8355a21b945fd0 (diff)
downloadtools.nes-e895b44291891cd13bd1b50b5fd414c15341b5e0.tar.gz
tools.nes-e895b44291891cd13bd1b50b5fd414c15341b5e0.zip
Define the global scope to a more obscure name
By how we define scopes, we needed an internal name for the global scope. All the way back to my first commit 587dd5bb8036 ("Initial commit"), I simply picked "Global". That is troublesome, as it can easily be typed by a human. If a programmer writes a scope with "global" definitions via this scope, this can be messed up with nasm's internal Global scope. Change that to a more obscure name for this internal global scope. If a programmer is so dead from the inside that wants to have a scope named like that, so be it. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'lib/xixanta/src/object.rs')
-rw-r--r--lib/xixanta/src/object.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xixanta/src/object.rs b/lib/xixanta/src/object.rs
index 170d872..c70afb7 100644
--- a/lib/xixanta/src/object.rs
+++ b/lib/xixanta/src/object.rs
@@ -4,7 +4,7 @@ use crate::opcodes::CONTROL_FUNCTIONS;
use std::collections::HashMap;
/// The name of the global context as used internally.
-const GLOBAL_CONTEXT: &str = "Global";
+const GLOBAL_CONTEXT: &str = "__internal_nasm_global_scope";
/// A Bundle represents a set of bytes that can be encoded as binary data.
#[derive(Debug, Default, Clone, Eq, Ord, PartialEq, PartialOrd)]