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

Go to the source code of this file.

Macros

#define ZPMOD_ZSH_IMPORTS_H
 

Functions

void * zalloc (size_t size)
 
void zfree (void *ptr, size_t size)
 
void zsfree (char *ptr)
 
void * zrealloc (void *ptr, size_t size)
 
char * ztrdup (const char *s)
 
char * dupstring (const char *s)
 
char * metafy (char *s, int len, int how)
 
char * unmetafy (char *s, int *len)
 
char * getsparam (const char *name)
 
char ** getaparam (const char *name)
 
void setsparam (const char *name, char *value)
 
void setaparam (const char *name, char **value)
 
void unsetparam (const char *name)
 
HashNode gethashnode2 (HashTable ht, const char *name)
 
int optlookup (const char *name)
 
void zwarnnam (const char *cmd, const char *fmt,...)
 
char ** featuresarray (Module m, Features features)
 
int handlefeatures (Module m, Features features, int **enables)
 
int setfeatureenables (Module m, Features features, int **enables)
 

Variables

HashTable paramtab
 

Macro Definition Documentation

◆ ZPMOD_ZSH_IMPORTS_H

#define ZPMOD_ZSH_IMPORTS_H

Definition at line 11 of file zpmod_imports.h.

Function Documentation

◆ dupstring()

char* dupstring ( const char *  s)

Referenced by bin_custom_dot(), cmd_fpath_index(), and custom_source().

Here is the caller graph for this function:

◆ featuresarray()

char** featuresarray ( Module  m,
Features  features 
)

Referenced by features_().

Here is the caller graph for this function:

◆ getaparam()

char** getaparam ( const char *  name)

Referenced by cmd_fpath_index(), cmd_source_hot(), rh_collect_current(), zp_cc_collect_dirs(), zp_cc_incremental_update(), zp_path_warmup_core(), and zp_pathstat_core().

Here is the caller graph for this function:

◆ gethashnode2()

HashNode gethashnode2 ( HashTable  ht,
const char *  name 
)

◆ getsparam()

char* getsparam ( const char *  name)

Referenced by custom_load_dump_header(), custom_try_source_file(), zp_cc_base_cache_dir(), zp_icons_enabled(), and zp_rh_base_cache_dir().

Here is the caller graph for this function:

◆ handlefeatures()

int handlefeatures ( Module  m,
Features  features,
int **  enables 
)

Referenced by enables_().

Here is the caller graph for this function:

◆ metafy()

char* metafy ( char *  s,
int  len,
int  how 
)

Referenced by zp_dirlist_core(), zp_pathstat_core(), and zp_readfile_core().

Here is the caller graph for this function:

◆ optlookup()

int optlookup ( const char *  name)

Referenced by zp_setup_options_table().

Here is the caller graph for this function:

◆ setaparam()

void setaparam ( const char *  name,
char **  value 
)

Referenced by bin_readarray(), zp_dirlist_core(), zp_path_warmup_core(), zp_pathstat_core(), and zp_readfile_core().

Here is the caller graph for this function:

◆ setfeatureenables()

int setfeatureenables ( Module  m,
Features  features,
int **  enables 
)

Referenced by cleanup_().

Here is the caller graph for this function:

◆ setsparam()

void setsparam ( const char *  name,
char *  value 
)

Referenced by bin_readarray(), zp_dirlist_core(), zp_pathstat_core(), and zp_readfile_core().

Here is the caller graph for this function:

◆ unmetafy()

char* unmetafy ( char *  s,
int *  len 
)

Referenced by zp_unmetafy_zalloc().

Here is the caller graph for this function:

◆ unsetparam()

void unsetparam ( const char *  name)

Referenced by bin_readarray(), zp_dirlist_core(), zp_pathstat_core(), and zp_readfile_core().

Here is the caller graph for this function:

◆ zalloc()

◆ zfree()

void zfree ( void *  ptr,
size_t  size 
)

Referenced by bb_vec_free(), bin_readarray(), cmd_report_append(), cmd_source_hot(), custom_check_dump_file(), custom_source(), custom_try_source_file(), rh_vec_free(), zp_build_source_report(), zp_cc_vec_free(), zp_dirlist_core(), zp_free_sevent_node(), zp_pathstat_core(), zp_readfile_core(), and zp_unmetafy_zalloc().

Here is the caller graph for this function:

◆ zrealloc()

void* zrealloc ( void *  ptr,
size_t  size 
)

Referenced by bb_vec_push(), bin_readarray(), rh_vec_push(), zp_build_source_report(), zp_cc_vec_push(), and zp_readfile_core().

Here is the caller graph for this function:

◆ zsfree()

◆ ztrdup()

char* ztrdup ( const char *  s)

◆ zwarnnam()

void zwarnnam ( const char *  cmd,
const char *  fmt,
  ... 
)

Variable Documentation

◆ paramtab

HashTable paramtab
extern

Referenced by zp_append_report().