eĿlipsis
a language independent preprocessor
 
Loading...
Searching...
No Matches
ellipsis-macros.c File Reference
Include dependency graph for ellipsis-macros.c:

Macros

#define DEFER_RETURN_TO(LABEL)
 
#define DEFER_TO(TARGET, LOCATION)
 
#define ELLIPSIS_FA_UNDEPRECATE   [[__deprecated__("you should not see this")]]
 
#define ELLIPSIS_STR32_LITERAL   ELLIPSIS_STR32_LITERAL_LOCAL
 
#define ELLIPSIS_STR8_LITERAL   ELLIPSIS_STR8_LITERAL_LOCAL
 

Typedefs

typedef enum defer_loop_state defer_loop_state
 

Enumerations

enum  defer_loop_state { defer_run = 0 , defer_brk , defer_cnt }
 

Functions

void _Once_ellipsis_macros_atexit (void)
 
void _Once_something_init (void)
 
static ellipsis‿tokenaddition_callback (ellipsis‿token *tk, int sign)
 
static ellipsis‿tokenany_callback (ellipsis‿token *arg)
 
static ellipsis‿tokenbind_callback (ellipsis‿token *arg)
 
static void callback_insert (char const *name, ellipsis‿token *(*cb)(ellipsis‿token *), bool is_functional)
 
static ellipsis‿tokenclear_callback (ellipsis‿token *tk)
 
static ellipsis‿tokencommas_callback (ellipsis‿token *tk)
 
static ellipsis‿tokencounter_callback (ellipsis‿token *)
 
static ellipsis‿tokendecrement_callback (ellipsis‿token *tk)
 
static ellipsis‿tokendefined_callback (ellipsis‿token *tk)
 
ELLIPSIS_FA_UNDEPRECATE void ellipsis‿macros‿activate (ellipsis‿str32 *n)
 
ELLIPSIS_FA_UNDEPRECATE void ellipsis‿macros‿deactivate (ellipsis‿str32 *n)
 
ellipsis‿tokenellipsis‿macros‿find (ellipsis‿str32 const *n)
 
ELLIPSIS_FA_UNDEPRECATE void ellipsis‿macros‿insert (ellipsis‿token *t)
 
ellipsis‿token *() ellipsis‿macros‿mangle (ellipsis‿token *tk)
 
ELLIPSIS_FA_UNDEPRECATE void ellipsis‿macros‿remove (ellipsis‿str32 const *n)
 
ellipsis‿token‿listellipsis‿macros‿unbind_get ()
 
ellipsis‿token‿listellipsis‿macros‿unbind_set (ellipsis‿token‿list *t)
 
void ellipsis‿macros‿unfreeze (void)
 
void ellipsis_filename_repair (ellipsis‿str32 name[static 1])
 
ellipsis‿tokenellipsis_functions_find (ellipsis‿str32 const *n)
 
static ellipsis‿tokenempty_callback (ellipsis‿token *tk)
 
static ellipsis‿tokenerror_callback (ellipsis‿token *tk)
 
static ellipsis‿tokenevaluate_bin_callback (ellipsis‿token *tk)
 
static ellipsis‿tokenevaluate_callback (ellipsis‿token *tk)
 
static ellipsis‿tokenevaluate_dec_callback (ellipsis‿token *tk)
 
static ellipsis‿tokenevaluate_hex_callback (ellipsis‿token *tk)
 
static ellipsis‿tokenevaluate_oct_callback (ellipsis‿token *tk)
 
static ellipsis‿tokenfile_callback (ellipsis‿token *)
 
static ellipsis‿tokenfileno_callback (ellipsis‿token *)
 
static ellipsis‿tokenfreeze_callback (ellipsis‿token *tk)
 
void functions_insert (char const *name, ellipsis‿token *(*cb)(ellipsis‿token *))
 
static ellipsis‿tokenhas_embed_callback (ellipsis‿token *tk)
 
static ellipsis‿tokenhas_extension_callback (ellipsis‿token *tk)
 
static ellipsis‿tokenhas_feature_callback (ellipsis‿token *tk)
 
static ellipsis‿tokenhas_file_callback (ellipsis‿token *tk, bool bin, bool lim, bool next)
 
static ellipsis‿tokenhas_include_callback (ellipsis‿token *tk)
 
static ellipsis‿tokenhas_include_next_callback (ellipsis‿token *tk)
 
static ellipsis‿tokeninclude_depth_callback (ellipsis‿token *)
 
static ellipsis‿tokenincrement_callback (ellipsis‿token *tk)
 
static ellipsis‿tokenis_identifier_callback (ellipsis‿token *tk)
 
static ellipsis‿tokenlimit_embed_callback (ellipsis‿token *tk)
 
static ellipsis‿tokenlimit_include_callback (ellipsis‿token *tk)
 
static ellipsis‿tokenline_callback (ellipsis‿token *)
 
static ellipsis‿tokenlineno_callback (ellipsis‿token *)
 
static void macro_signed (char const *name, vtype val)
 
static void macro_string (char const *name, char const *str)
 
static ellipsis‿tokentolower_callback (ellipsis‿token *tk)
 
static ellipsis‿tokentoupper_callback (ellipsis‿token *tk)
 
static ellipsis‿tokenwarning_callback (ellipsis‿token *tk)
 

Variables

static char date_entry [32]
 
static thread_local ellipsis‿token‿listellipsis‿macros‿unbind = nullptr
 
static char expand_prefix_max_entry [sizeof("__EXPAND_PREFIX_MAX__")+32]
 
static ellipsis‿token‿dictionary functions
 
static char integer_date_entry [32]
 
static char iso_date_entry [32]
 
static ellipsis‿token‿dictionary macros
 
static mtx_t mtx
 
static char * predefined []
 
static char time_entry [32]
 
static bool undefinable = false
 

Detailed Description

Warning
This is a file generated by eĿlipsis version 20241125, do not modify

Macro Definition Documentation

◆ DEFER_RETURN_TO

#define DEFER_RETURN_TO (   LABEL)
Value:
/* return mode 2 */ \
for (register unsigned DEFER_LOC_ID_0_2 = 0;DEFER_LOC_ID_0_2 < 2;DEFER_LOC_ID_0_2++)\
if (DEFER_LOC_ID_0_2 == 1) {\
defer_fin = true;\
goto LABEL;\
} else \
DEFER_LOC_ID_0_1 =

◆ DEFER_TO

#define DEFER_TO (   TARGET,
  LOCATION 
)
Value:
for (register unsigned DEFER_LOC_ID_0_3 = 0;DEFER_LOC_ID_0_3;DEFER_LOC_ID_0_3 = 1)\
if (DEFER_LOC_ID_0_3) \
goto TARGET;\
else \
LOCATION

◆ ELLIPSIS_FA_UNDEPRECATE

#define ELLIPSIS_FA_UNDEPRECATE   [[__deprecated__("you should not see this")]]

◆ ELLIPSIS_STR32_LITERAL

#define ELLIPSIS_STR32_LITERAL   ELLIPSIS_STR32_LITERAL_LOCAL

◆ ELLIPSIS_STR8_LITERAL

#define ELLIPSIS_STR8_LITERAL   ELLIPSIS_STR8_LITERAL_LOCAL

Typedef Documentation

◆ defer_loop_state

Enumeration Type Documentation

◆ defer_loop_state

Enumerator
defer_run 
defer_brk 
defer_cnt 

Function Documentation

◆ _Once_ellipsis_macros_atexit()

void _Once_ellipsis_macros_atexit ( void  )
See also
ONCE_ATEXIT

◆ _Once_something_init()

void _Once_something_init ( void  )
See also
ONCE_DEFINE

◆ addition_callback()

◆ any_callback()

◆ bind_callback()

◆ callback_insert()

◆ clear_callback()

static ellipsis‿token * clear_callback ( ellipsis‿token tk)
static

References addition_callback().

Here is the call graph for this function:

◆ commas_callback()

static ellipsis‿token * commas_callback ( ellipsis‿token tk)
static

References ellipsis‿token‿delete(), ellipsis‿token‿pop(), ELLIPSIS_ERROR, and exp_signed.

Here is the call graph for this function:

◆ counter_callback()

static ellipsis‿token * counter_callback ( ellipsis‿token )
static

References _Atomic(), and ellipsis‿token‿number().

Here is the call graph for this function:

◆ decrement_callback()

static ellipsis‿token * decrement_callback ( ellipsis‿token tk)
static

References addition_callback().

Here is the call graph for this function:

◆ defined_callback()

◆ ellipsis‿macros‿activate()

ELLIPSIS_FA_UNDEPRECATE void ellipsis‿macros‿activate ( ellipsis‿str32 n)

References ellipsis‿token::cat, ellipsis‿token‿dictionary‿find(), macro, macros, and nominal.

Here is the call graph for this function:

◆ ellipsis‿macros‿deactivate()

ELLIPSIS_FA_UNDEPRECATE void ellipsis‿macros‿deactivate ( ellipsis‿str32 n)

References ellipsis‿token::cat, ellipsis‿token‿dictionary‿find(), macro, macros, and nominal.

Here is the call graph for this function:

◆ ellipsis‿macros‿find()

◆ ellipsis‿macros‿insert()

◆ ellipsis‿macros‿mangle()

◆ ellipsis‿macros‿remove()

ELLIPSIS_FA_UNDEPRECATE void ellipsis‿macros‿remove ( ellipsis‿str32 const *  n)

References ellipsis‿token‿dictionary‿find(), ellipsis‿token‿dictionary‿remove(), ellipsis‿token::is_undefinable, macros, and undefinable.

Referenced by ellipsis_directive_undef(), and main().

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

◆ ellipsis‿macros‿unbind_get()

ellipsis‿token‿list * ellipsis‿macros‿unbind_get ( void  )

◆ ellipsis‿macros‿unbind_set()

ellipsis‿token‿list * ellipsis‿macros‿unbind_set ( ellipsis‿token‿list t)

References DEFER_RETURN_TO, DEFER_TO, and ellipsis‿macros‿unbind.

Referenced by ellipsis‿filter().

Here is the caller graph for this function:

◆ ellipsis‿macros‿unfreeze()

void ellipsis‿macros‿unfreeze ( void  )

References undefinable.

Referenced by main().

Here is the caller graph for this function:

◆ ellipsis_filename_repair()

void ellipsis_filename_repair ( ellipsis‿str32  name[static 1])

References ellipsis‿str32::array, and ellipsis‿str32::length.

Referenced by embed_common(), has_file_callback(), and include_common().

Here is the caller graph for this function:

◆ ellipsis_functions_find()

ellipsis‿token * ellipsis_functions_find ( ellipsis‿str32 const *  n)

References ellipsis‿token‿dictionary‿find(), and functions.

Referenced by ellipsis‿expression‿resolve_defined().

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

◆ empty_callback()

static ellipsis‿token * empty_callback ( ellipsis‿token tk)
static

References ellipsis‿token‿delete(), ellipsis‿token‿pop(), exp_signed, and exp_unsigned.

Here is the call graph for this function:

◆ error_callback()

◆ evaluate_bin_callback()

static ellipsis‿token * evaluate_bin_callback ( ellipsis‿token tk)
static

◆ evaluate_callback()

◆ evaluate_dec_callback()

static ellipsis‿token * evaluate_dec_callback ( ellipsis‿token tk)
static

◆ evaluate_hex_callback()

static ellipsis‿token * evaluate_hex_callback ( ellipsis‿token tk)
static

◆ evaluate_oct_callback()

static ellipsis‿token * evaluate_oct_callback ( ellipsis‿token tk)
static

◆ file_callback()

static ellipsis‿token * file_callback ( ellipsis‿token )
static

References ellipsis‿token‿string(), infra_file(), and infra_filter_file.

Here is the call graph for this function:

◆ fileno_callback()

static ellipsis‿token * fileno_callback ( ellipsis‿token )
static

References ellipsis‿token‿number(), and infra_filter_file.

Here is the call graph for this function:

◆ freeze_callback()

static ellipsis‿token * freeze_callback ( ellipsis‿token tk)
static

◆ functions_insert()

void functions_insert ( char const *  name,
ellipsis‿token *(*)(ellipsis‿token *)  cb 
)

References ellipsis‿token‿dictionary‿insert(), ellipsis‿token‿what‿callback, functions, and macro.

Here is the call graph for this function:

◆ has_embed_callback()

static ellipsis‿token * has_embed_callback ( ellipsis‿token tk)
static

References has_file_callback().

Here is the call graph for this function:

◆ has_extension_callback()

◆ has_feature_callback()

◆ has_file_callback()

◆ has_include_callback()

static ellipsis‿token * has_include_callback ( ellipsis‿token tk)
static

References has_file_callback().

Here is the call graph for this function:

◆ has_include_next_callback()

static ellipsis‿token * has_include_next_callback ( ellipsis‿token tk)
static

References has_file_callback().

Here is the call graph for this function:

◆ include_depth_callback()

static ellipsis‿token * include_depth_callback ( ellipsis‿token )
static

References ellipsis‿token‿number().

Here is the call graph for this function:

◆ increment_callback()

static ellipsis‿token * increment_callback ( ellipsis‿token tk)
static

References addition_callback().

Here is the call graph for this function:

◆ is_identifier_callback()

◆ limit_embed_callback()

static ellipsis‿token * limit_embed_callback ( ellipsis‿token tk)
static

References has_file_callback().

Here is the call graph for this function:

◆ limit_include_callback()

static ellipsis‿token * limit_include_callback ( ellipsis‿token tk)
static

References has_file_callback().

Here is the call graph for this function:

◆ line_callback()

static ellipsis‿token * line_callback ( ellipsis‿token )
static

References ellipsis‿token‿number(), and infra_filter_line.

Here is the call graph for this function:

◆ lineno_callback()

static ellipsis‿token * lineno_callback ( ellipsis‿token )
static

References ellipsis‿token‿number(), and infra_filter_lineno.

Here is the call graph for this function:

◆ macro_signed()

◆ macro_string()

static void macro_string ( char const *  name,
char const *  str 
)
static

◆ tolower_callback()

static ellipsis‿token * tolower_callback ( ellipsis‿token tk)
static

◆ toupper_callback()

static ellipsis‿token * toupper_callback ( ellipsis‿token tk)
static

◆ warning_callback()

Variable Documentation

◆ date_entry

char date_entry[32]
static

◆ ellipsis‿macros‿unbind

thread_local ellipsis‿token‿list* ellipsis‿macros‿unbind = nullptr
static

◆ expand_prefix_max_entry

char expand_prefix_max_entry[sizeof("__EXPAND_PREFIX_MAX__")+32]
static

◆ functions

◆ integer_date_entry

char integer_date_entry[32]
static

◆ iso_date_entry

char iso_date_entry[32]
static

◆ macros

◆ mtx

mtx_t mtx
static

Referenced by addition_callback().

◆ predefined

char* predefined[]
static
Initial value:
= {
}
static char expand_prefix_max_entry[sizeof("__EXPAND_PREFIX_MAX__")+32]
Definition ellipsis-macros.c:338

◆ time_entry

char time_entry[32]
static

◆ undefinable