zpmod
b19981f
High-performance Zsh module for script optimization and filesystem helpers
|
#include <sys/types.h>
#include <time.h>
Go to the source code of this file.
Enumerations | |
enum | { ZP_OPT_INVALID__ = 0 , FUNCTIONARGZERO__ , PATHDIRS__ , POSIXBUILTINS__ , SHINSTDIN__ , SOURCETRACE__ , ZP_OPT_COUNT__ } |
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... | |
anonymous enum |
Enumerator | |
---|---|
ZP_OPT_INVALID__ | |
FUNCTIONARGZERO__ | |
PATHDIRS__ | |
POSIXBUILTINS__ | |
SHINSTDIN__ | |
SOURCETRACE__ | |
ZP_OPT_COUNT__ |
Definition at line 14 of file zpmod_compat.h.
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_().