zpmod  b19981f
High-performance Zsh module for script optimization and filesystem helpers
zpmod_compat.h File Reference
#include <sys/types.h>
#include <time.h>
Include dependency graph for zpmod_compat.h:
This graph shows which files directly or indirectly include this file:

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...
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ZP_OPT_INVALID__ 
FUNCTIONARGZERO__ 
PATHDIRS__ 
POSIXBUILTINS__ 
SHINSTDIN__ 
SOURCETRACE__ 
ZP_OPT_COUNT__ 

Definition at line 14 of file zpmod_compat.h.

Function Documentation

◆ zp_conv_opt()

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().

Here is the caller graph for this function:

◆ zp_setup_options_table()

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_().

Here is the call graph for this function:
Here is the caller graph for this function: