zpmod
b19981f
High-performance Zsh module for script optimization and filesystem helpers
|
Stable-to-runtime option mapping across zsh versions. More...
Go to the source code of this file.
Data Structures | |
struct | zp_option_name |
Functions | |
void | zp_setup_options_table (void) |
Populate runtime option indices for the stable enum table. More... | |
int | zp_conv_opt (int zp_opt_num) |
Convert a stable option enum to a runtime option index (sign-preserving). More... | |
Variables | |
static int | zp_opt_for_zsh_version [64] = {0} |
static struct zp_option_name | zp_options [] |
Stable-to-runtime option mapping across zsh versions.
Provides zp_setup_options_table()
to resolve version-stable enum values to runtime option indices using zsh’s optlookup()
, and zp_conv_opt()
to convert an enum for use with isset()
/dosetopt()
.
Definition in file options.c.
int zp_conv_opt | ( | int | zp_opt_num | ) |
Convert a stable option enum to a runtime option index (sign-preserving).
Definition at line 52 of file options.c.
References ZP_OPT_COUNT__, and zp_opt_for_zsh_version.
Referenced by bin_custom_dot(), and custom_source().
void zp_setup_options_table | ( | void | ) |
Populate runtime option indices for the stable enum table.
Definition at line 37 of file options.c.
References zp_option_name::enum_val, zp_option_name::name, optlookup(), zp_opt_for_zsh_version, and zp_options.
Referenced by setup_().
|
static |
Definition at line 15 of file options.c.
Referenced by zp_conv_opt(), and zp_setup_options_table().
|
static |
Definition at line 15 of file options.c.
Referenced by zp_setup_options_table().