mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-17 07:32:45 +08:00
Switch locale_variables and curses_variables from vector to array
No reason to have these be a heap-allocated vector.
This commit is contained in:
parent
fe4eaba563
commit
35f77a5473
|
@ -60,15 +60,15 @@
|
|||
|
||||
/// List of all locale environment variable names that might trigger (re)initializing the locale
|
||||
/// subsystem.
|
||||
static const wcstring_list_t locale_variables({L"LANG", L"LANGUAGE", L"LC_ALL", L"LC_ADDRESS",
|
||||
L"LC_COLLATE", L"LC_CTYPE", L"LC_IDENTIFICATION",
|
||||
L"LC_MEASUREMENT", L"LC_MESSAGES", L"LC_MONETARY",
|
||||
L"LC_NAME", L"LC_NUMERIC", L"LC_PAPER",
|
||||
L"LC_TELEPHONE", L"LC_TIME", L"LOCPATH"});
|
||||
static const wcstring locale_variables[] = {
|
||||
L"LANG", L"LANGUAGE", L"LC_ALL", L"LC_ADDRESS", L"LC_COLLATE",
|
||||
L"LC_CTYPE", L"LC_IDENTIFICATION", L"LC_MEASUREMENT", L"LC_MESSAGES", L"LC_MONETARY",
|
||||
L"LC_NAME", L"LC_NUMERIC", L"LC_PAPER", L"LC_TELEPHONE", L"LC_TIME",
|
||||
L"LOCPATH"};
|
||||
|
||||
/// List of all curses environment variable names that might trigger (re)initializing the curses
|
||||
/// subsystem.
|
||||
static const wcstring_list_t curses_variables({L"TERM", L"TERMINFO", L"TERMINFO_DIRS"});
|
||||
static const wcstring curses_variables[] = {L"TERM", L"TERMINFO", L"TERMINFO_DIRS"};
|
||||
|
||||
class var_dispatch_table_t {
|
||||
using named_callback_t = std::function<void(const wcstring &, env_stack_t &)>;
|
||||
|
|
Loading…
Reference in New Issue
Block a user