FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
macros.c File Reference
+ Include dependency graph for macros.c:

Go to the source code of this file.

Data Structures

struct  name_sort_t
 

Functions

static int macro_isalnum (i8 c)
 
static i8builtin_eval (clib_macro_main_t *mm, i8 *varname, i32 complain)
 
__clib_export int clib_macro_unset (clib_macro_main_t *mm, char *name)
 
__clib_export int clib_macro_set_value (clib_macro_main_t *mm, char *name, char *value)
 
i8clib_macro_get_value (clib_macro_main_t *mm, char *name)
 
__clib_export i8clib_macro_eval (clib_macro_main_t *mm, i8 *s, i32 complain, u16 level, u16 max_level)
 
__clib_export i8clib_macro_eval_dollar (clib_macro_main_t *mm, i8 *s, i32 complain)
 
__clib_export void clib_macro_add_builtin (clib_macro_main_t *mm, char *name, void *eval_fn)
 
static i8eval_hostname (clib_macro_main_t *mm, i32 complain)
 
__clib_export void clib_macro_init (clib_macro_main_t *mm)
 
__clib_export void clib_macro_free (clib_macro_main_t *mm)
 
static int name_compare (void *a1, void *a2)
 
__clib_export u8format_clib_macro_main (u8 *s, va_list *args)
 

Function Documentation

◆ builtin_eval()

static i8* builtin_eval ( clib_macro_main_t mm,
i8 varname,
i32  complain 
)
static

Definition at line 31 of file macros.c.

+ Here is the caller graph for this function:

◆ clib_macro_add_builtin()

__clib_export void clib_macro_add_builtin ( clib_macro_main_t mm,
char *  name,
void *  eval_fn 
)

Definition at line 213 of file macros.c.

◆ clib_macro_eval()

__clib_export i8* clib_macro_eval ( clib_macro_main_t mm,
i8 s,
i32  complain,
u16  level,
u16  max_level 
)

Definition at line 95 of file macros.c.

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

◆ clib_macro_eval_dollar()

__clib_export i8* clib_macro_eval_dollar ( clib_macro_main_t mm,
i8 s,
i32  complain 
)

Definition at line 201 of file macros.c.

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

◆ clib_macro_free()

__clib_export void clib_macro_free ( clib_macro_main_t mm)

Definition at line 247 of file macros.c.

+ Here is the caller graph for this function:

◆ clib_macro_get_value()

i8* clib_macro_get_value ( clib_macro_main_t mm,
char *  name 
)

Definition at line 79 of file macros.c.

+ Here is the caller graph for this function:

◆ clib_macro_init()

__clib_export void clib_macro_init ( clib_macro_main_t mm)

Definition at line 230 of file macros.c.

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

◆ clib_macro_set_value()

__clib_export int clib_macro_set_value ( clib_macro_main_t mm,
char *  name,
char *  value 
)

Definition at line 64 of file macros.c.

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

◆ clib_macro_unset()

__clib_export int clib_macro_unset ( clib_macro_main_t mm,
char *  name 
)

Definition at line 44 of file macros.c.

+ Here is the caller graph for this function:

◆ eval_hostname()

static i8* eval_hostname ( clib_macro_main_t mm,
i32  complain 
)
static

Definition at line 220 of file macros.c.

+ Here is the caller graph for this function:

◆ format_clib_macro_main()

__clib_export u8* format_clib_macro_main ( u8 s,
va_list *  args 
)

Definition at line 286 of file macros.c.

+ Here is the call graph for this function:

◆ macro_isalnum()

static int macro_isalnum ( i8  c)
inlinestatic

Definition at line 22 of file macros.c.

+ Here is the caller graph for this function:

◆ name_compare()

static int name_compare ( void *  a1,
void *  a2 
)
static

Definition at line 276 of file macros.c.

+ Here is the caller graph for this function: