From ecb0ab5f347718c44a6453f99485bee185a6d4ab Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Mon, 10 Apr 2023 09:55:56 +0200 Subject: [PATCH] common.rs: remove G_ prefix from globals --- fish-rust/src/common.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fish-rust/src/common.rs b/fish-rust/src/common.rs index 7d6a24856..b14ac97d9 100644 --- a/fish-rust/src/common.rs +++ b/fish-rust/src/common.rs @@ -1001,7 +1001,7 @@ pub fn get_obfuscation_read_char() -> char { } /// Profiling flag. True if commands should be profiled. -pub static G_PROFILING_ACTIVE: RelaxedAtomicBool = RelaxedAtomicBool::new(false); +pub static PROFILING_ACTIVE: RelaxedAtomicBool = RelaxedAtomicBool::new(false); /// Name of the current program. Should be set at startup. Used by the debug function. pub static mut PROGRAM_NAME: Lazy<&'static wstr> = Lazy::new(|| L!("")); @@ -1015,11 +1015,11 @@ pub const HAS_WORKING_TTY_TIMESTAMPS: bool = true; /// A global, empty string. This is useful for functions which wish to return a reference to an /// empty string. -pub static G_EMPTY_STRING: WString = WString::new(); +pub static EMPTY_STRING: WString = WString::new(); /// A global, empty wcstring_list_t. This is useful for functions which wish to return a reference /// to an empty string. -pub static G_EMPTY_STRING_LIST: Vec = vec![]; +pub static EMPTY_STRING_LIST: Vec = vec![]; /// A function type to check for cancellation. /// \return true if execution should cancel. @@ -1419,7 +1419,7 @@ fn fish_setlocale() { Ordering::Relaxed, ); } - G_PROFILING_ACTIVE.store(true); + PROFILING_ACTIVE.store(true); } /// Test if the character can be encoded using the current locale.