File modules/er/er_macro.c

  $Revision: 1.5 $

Error reporting (er) er_macro.c - simple macro processor
Status: NOT REVUED, PARTLY TESTED
Design and implementation by: Marek Bukowy

Included Files


Preprocessor definitions

#define DBUPDLOG_FORMAT " FORMAT SEVCHAR|FACSYMB|TEXTLONG|DATETIME|PIDFULL|PROGNAME|MNEMONIC "

#define RIPLOG_FORMAT " FORMAT SEVCHAR|FACSYMB|TEXTLONG|DATETIME|PIDFULL|PROGNAME|THR_ID|MNEMONIC "


Global Variable Lock

pthread_mutex_t Lock
Included from include/ca_defs.h
Visible in:  modules/ac/access_control.c
   modules/ca/ca_configFns.c
   modules/ca/ca_initFn.c
   modules/ca/ca_sourceLoader.c
   modules/ca/ca_values.c
   modules/er/er_macro.c
Used in: ca_get_adminIntElement()modules/ca/ca_configFns.c
  ca_get_adminStrElement()modules/ca/ca_configFns.c
  ca_get_boolean()modules/ca/ca_configFns.c
  ca_get_dirlist()modules/ca/ca_configFns.c
  ca_get_int()modules/ca/ca_configFns.c
  ca_get_string()modules/ca/ca_configFns.c
  ca_set_boolean()modules/ca/ca_configFns.c
  ca_set_string()modules/ca/ca_configFns.c
  ca_srchandle2Intelement()modules/ca/ca_configFns.c
  ca_srchandle2Strelement()modules/ca/ca_configFns.c

Global Variable newPort

char newPort[16]
Included from include/ca_defs.h
Visible in:  modules/ac/access_control.c
   modules/ca/ca_configFns.c
   modules/ca/ca_initFn.c
   modules/ca/ca_sourceLoader.c
   modules/ca/ca_values.c
   modules/er/er_macro.c

Global Variable er_macro_hash

GHashTable* er_macro_hash
Visible in:  modules/er/er_macro.c
Used in: ER_macro_list()modules/er/er_macro.c
  ER_macro_predef()modules/er/er_macro.c
  ER_make_macro()modules/er/er_macro.c
  ER_process_split()modules/er/er_macro.c

Global Function ER_macro_list()

void ER_macro_list ( sk_conn_st* condat )
Prototyped in: modules/er/er_macro.h
Calls: g_hash_table_foreach()
References Functions: er_macro_list_hook()modules/er/er_macro.c
References Variables: er_macro_hashmodules/er/er_macro.c

Global Function ER_macro_predef()

void ER_macro_predef ( void )
Prototyped in: modules/er/er_macro.h
Calls: ER_make_macro()modules/er/er_macro.c
  g_hash_table_new()
Called by: ER_init()modules/er/er.c
References Functions: g_str_equal(), g_str_hash()
References Variables: er_macro_hashmodules/er/er_macro.c

Global Function ER_macro_spec()

int ER_macro_spec ( char* input, char** errbuf )
Prototyped in: modules/er/er_macro.h
Calls: ER_parse_spec()modules/er/er.yacc.tab.c
  ER_process_split()modules/er/er_macro.c
  free(), g_strfreev(), g_strsplit(), strdup()
Called by: ER_proc_ca_err()modules/er/er_macro.c

Global Function ER_make_macro()

void ER_make_macro ( char* name, char* def )
Calls: g_hash_table_insert(), g_hash_table_lookup_extended(), g_hash_table_remove(), wr_real_free(), wr_string()
Called by: ER_macro_predef()modules/er/er_macro.c
  ER_proc_ca_macro()modules/er/er_macro.c
References Variables: er_macro_hashmodules/er/er_macro.c

Global Function ER_proc_ca_err()

void ER_proc_ca_err ( void )
Calls: ER_macro_spec()modules/er/er_macro.c
  ca_get_string()modules/ca/ca_configFns.c
  fprintf(), fputs(), free(), strchr()
Called by: ER_init()modules/er/er.c

Global Function ER_proc_ca_macro()

void ER_proc_ca_macro ( void )
Calls: ER_make_macro()modules/er/er_macro.c
  ca_get_string()modules/ca/ca_configFns.c
  fprintf(), free(), strchr(), strtok_r()
Called by: ER_init()modules/er/er.c

Global Function ER_process_split()

int ER_process_split ( int argc, char** argv, char** output )
Prototyped in: modules/er/er_macro.h
Calls: fprintf(), g_hash_table_lookup(), g_string_append(), g_string_append_c(), g_string_free(), g_string_new(), strlen(), strstr()
Called by: ER_macro_spec()modules/er/er_macro.c
References Variables: er_macro_hashmodules/er/er_macro.c

Local Function er_macro_list_hook()

static void er_macro_list_hook ( void* key, void* value, void* condat )
Calls: SK_cd_printf()
Used in: ER_macro_list()modules/er/er_macro.c