diff options
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_login.Hooks.inc')
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking_login.Hooks.inc | 3350 |
1 files changed, 1675 insertions, 1675 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc index a7e7afa4e..964d46b0a 100644 --- a/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc @@ -28,14 +28,14 @@ /* HCache_interface */ void HP_HCache_init(void) { int hIndex = 0; - if( HPMHooks.count.HP_HCache_init_pre ) { + if (HPMHooks.count.HP_HCache_init_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_HCache_init_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_HCache_init_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_HCache_init_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -43,9 +43,9 @@ void HP_HCache_init(void) { { HPMHooks.source.HCache.init(); } - if( HPMHooks.count.HP_HCache_init_post ) { + if (HPMHooks.count.HP_HCache_init_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_HCache_init_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_HCache_init_post; hIndex++) { postHookFunc = HPMHooks.list.HP_HCache_init_post[hIndex].func; postHookFunc(); } @@ -55,14 +55,14 @@ void HP_HCache_init(void) { bool HP_HCache_check(const char *file) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_HCache_check_pre ) { + if (HPMHooks.count.HP_HCache_check_pre > 0) { bool (*preHookFunc) (const char **file); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_HCache_check_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_HCache_check_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_HCache_check_pre[hIndex].func; retVal___ = preHookFunc(&file); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -70,9 +70,9 @@ bool HP_HCache_check(const char *file) { { retVal___ = HPMHooks.source.HCache.check(file); } - if( HPMHooks.count.HP_HCache_check_post ) { + if (HPMHooks.count.HP_HCache_check_post > 0) { bool (*postHookFunc) (bool retVal___, const char *file); - for(hIndex = 0; hIndex < HPMHooks.count.HP_HCache_check_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_HCache_check_post; hIndex++) { postHookFunc = HPMHooks.list.HP_HCache_check_post[hIndex].func; retVal___ = postHookFunc(retVal___, file); } @@ -82,14 +82,14 @@ bool HP_HCache_check(const char *file) { FILE* HP_HCache_open(const char *file, const char *opt) { int hIndex = 0; FILE* retVal___ = NULL; - if( HPMHooks.count.HP_HCache_open_pre ) { + if (HPMHooks.count.HP_HCache_open_pre > 0) { FILE* (*preHookFunc) (const char **file, const char **opt); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_HCache_open_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_HCache_open_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_HCache_open_pre[hIndex].func; retVal___ = preHookFunc(&file, &opt); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -97,9 +97,9 @@ FILE* HP_HCache_open(const char *file, const char *opt) { { retVal___ = HPMHooks.source.HCache.open(file, opt); } - if( HPMHooks.count.HP_HCache_open_post ) { + if (HPMHooks.count.HP_HCache_open_post > 0) { FILE* (*postHookFunc) (FILE* retVal___, const char *file, const char *opt); - for(hIndex = 0; hIndex < HPMHooks.count.HP_HCache_open_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_HCache_open_post; hIndex++) { postHookFunc = HPMHooks.list.HP_HCache_open_post[hIndex].func; retVal___ = postHookFunc(retVal___, file, opt); } @@ -109,14 +109,14 @@ FILE* HP_HCache_open(const char *file, const char *opt) { /* cmdline_interface */ void HP_cmdline_init(void) { int hIndex = 0; - if( HPMHooks.count.HP_cmdline_init_pre ) { + if (HPMHooks.count.HP_cmdline_init_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_init_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_init_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_cmdline_init_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -124,9 +124,9 @@ void HP_cmdline_init(void) { { HPMHooks.source.cmdline.init(); } - if( HPMHooks.count.HP_cmdline_init_post ) { + if (HPMHooks.count.HP_cmdline_init_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_init_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_init_post; hIndex++) { postHookFunc = HPMHooks.list.HP_cmdline_init_post[hIndex].func; postHookFunc(); } @@ -135,14 +135,14 @@ void HP_cmdline_init(void) { } void HP_cmdline_final(void) { int hIndex = 0; - if( HPMHooks.count.HP_cmdline_final_pre ) { + if (HPMHooks.count.HP_cmdline_final_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_final_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_final_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_cmdline_final_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -150,9 +150,9 @@ void HP_cmdline_final(void) { { HPMHooks.source.cmdline.final(); } - if( HPMHooks.count.HP_cmdline_final_post ) { + if (HPMHooks.count.HP_cmdline_final_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_final_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_final_post; hIndex++) { postHookFunc = HPMHooks.list.HP_cmdline_final_post[hIndex].func; postHookFunc(); } @@ -162,14 +162,14 @@ void HP_cmdline_final(void) { bool HP_cmdline_arg_add(unsigned int pluginID, const char *name, char shortname, CmdlineExecFunc func, const char *help, unsigned int options) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_cmdline_arg_add_pre ) { + if (HPMHooks.count.HP_cmdline_arg_add_pre > 0) { bool (*preHookFunc) (unsigned int *pluginID, const char **name, char *shortname, CmdlineExecFunc *func, const char **help, unsigned int *options); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_arg_add_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_arg_add_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_cmdline_arg_add_pre[hIndex].func; retVal___ = preHookFunc(&pluginID, &name, &shortname, &func, &help, &options); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -177,9 +177,9 @@ bool HP_cmdline_arg_add(unsigned int pluginID, const char *name, char shortname, { retVal___ = HPMHooks.source.cmdline.arg_add(pluginID, name, shortname, func, help, options); } - if( HPMHooks.count.HP_cmdline_arg_add_post ) { + if (HPMHooks.count.HP_cmdline_arg_add_post > 0) { bool (*postHookFunc) (bool retVal___, unsigned int pluginID, const char *name, char shortname, CmdlineExecFunc func, const char *help, unsigned int options); - for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_arg_add_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_arg_add_post; hIndex++) { postHookFunc = HPMHooks.list.HP_cmdline_arg_add_post[hIndex].func; retVal___ = postHookFunc(retVal___, pluginID, name, shortname, func, help, options); } @@ -189,14 +189,14 @@ bool HP_cmdline_arg_add(unsigned int pluginID, const char *name, char shortname, int HP_cmdline_exec(int argc, char **argv, unsigned int options) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_cmdline_exec_pre ) { + if (HPMHooks.count.HP_cmdline_exec_pre > 0) { int (*preHookFunc) (int *argc, char ***argv, unsigned int *options); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_exec_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_exec_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_cmdline_exec_pre[hIndex].func; retVal___ = preHookFunc(&argc, &argv, &options); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -204,9 +204,9 @@ int HP_cmdline_exec(int argc, char **argv, unsigned int options) { { retVal___ = HPMHooks.source.cmdline.exec(argc, argv, options); } - if( HPMHooks.count.HP_cmdline_exec_post ) { + if (HPMHooks.count.HP_cmdline_exec_post > 0) { int (*postHookFunc) (int retVal___, int argc, char **argv, unsigned int options); - for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_exec_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_exec_post; hIndex++) { postHookFunc = HPMHooks.list.HP_cmdline_exec_post[hIndex].func; retVal___ = postHookFunc(retVal___, argc, argv, options); } @@ -216,14 +216,14 @@ int HP_cmdline_exec(int argc, char **argv, unsigned int options) { bool HP_cmdline_arg_next_value(const char *name, int current_arg, int argc) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_cmdline_arg_next_value_pre ) { + if (HPMHooks.count.HP_cmdline_arg_next_value_pre > 0) { bool (*preHookFunc) (const char **name, int *current_arg, int *argc); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_arg_next_value_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_arg_next_value_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_cmdline_arg_next_value_pre[hIndex].func; retVal___ = preHookFunc(&name, ¤t_arg, &argc); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -231,9 +231,9 @@ bool HP_cmdline_arg_next_value(const char *name, int current_arg, int argc) { { retVal___ = HPMHooks.source.cmdline.arg_next_value(name, current_arg, argc); } - if( HPMHooks.count.HP_cmdline_arg_next_value_post ) { + if (HPMHooks.count.HP_cmdline_arg_next_value_post > 0) { bool (*postHookFunc) (bool retVal___, const char *name, int current_arg, int argc); - for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_arg_next_value_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_arg_next_value_post; hIndex++) { postHookFunc = HPMHooks.list.HP_cmdline_arg_next_value_post[hIndex].func; retVal___ = postHookFunc(retVal___, name, current_arg, argc); } @@ -243,14 +243,14 @@ bool HP_cmdline_arg_next_value(const char *name, int current_arg, int argc) { const char* HP_cmdline_arg_source(struct CmdlineArgData *arg) { int hIndex = 0; const char* retVal___ = NULL; - if( HPMHooks.count.HP_cmdline_arg_source_pre ) { + if (HPMHooks.count.HP_cmdline_arg_source_pre > 0) { const char* (*preHookFunc) (struct CmdlineArgData **arg); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_arg_source_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_arg_source_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_cmdline_arg_source_pre[hIndex].func; retVal___ = preHookFunc(&arg); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -258,9 +258,9 @@ const char* HP_cmdline_arg_source(struct CmdlineArgData *arg) { { retVal___ = HPMHooks.source.cmdline.arg_source(arg); } - if( HPMHooks.count.HP_cmdline_arg_source_post ) { + if (HPMHooks.count.HP_cmdline_arg_source_post > 0) { const char* (*postHookFunc) (const char* retVal___, struct CmdlineArgData *arg); - for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_arg_source_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_arg_source_post; hIndex++) { postHookFunc = HPMHooks.list.HP_cmdline_arg_source_post[hIndex].func; retVal___ = postHookFunc(retVal___, arg); } @@ -270,14 +270,14 @@ const char* HP_cmdline_arg_source(struct CmdlineArgData *arg) { /* console_interface */ void HP_console_init(void) { int hIndex = 0; - if( HPMHooks.count.HP_console_init_pre ) { + if (HPMHooks.count.HP_console_init_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_console_init_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_console_init_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_console_init_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -285,9 +285,9 @@ void HP_console_init(void) { { HPMHooks.source.console.init(); } - if( HPMHooks.count.HP_console_init_post ) { + if (HPMHooks.count.HP_console_init_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_console_init_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_console_init_post; hIndex++) { postHookFunc = HPMHooks.list.HP_console_init_post[hIndex].func; postHookFunc(); } @@ -296,14 +296,14 @@ void HP_console_init(void) { } void HP_console_final(void) { int hIndex = 0; - if( HPMHooks.count.HP_console_final_pre ) { + if (HPMHooks.count.HP_console_final_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_console_final_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_console_final_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_console_final_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -311,9 +311,9 @@ void HP_console_final(void) { { HPMHooks.source.console.final(); } - if( HPMHooks.count.HP_console_final_post ) { + if (HPMHooks.count.HP_console_final_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_console_final_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_console_final_post; hIndex++) { postHookFunc = HPMHooks.list.HP_console_final_post[hIndex].func; postHookFunc(); } @@ -322,14 +322,14 @@ void HP_console_final(void) { } void HP_console_display_title(void) { int hIndex = 0; - if( HPMHooks.count.HP_console_display_title_pre ) { + if (HPMHooks.count.HP_console_display_title_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_console_display_title_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_console_display_title_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_console_display_title_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -337,9 +337,9 @@ void HP_console_display_title(void) { { HPMHooks.source.console.display_title(); } - if( HPMHooks.count.HP_console_display_title_post ) { + if (HPMHooks.count.HP_console_display_title_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_console_display_title_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_console_display_title_post; hIndex++) { postHookFunc = HPMHooks.list.HP_console_display_title_post[hIndex].func; postHookFunc(); } @@ -348,14 +348,14 @@ void HP_console_display_title(void) { } void HP_console_display_gplnotice(void) { int hIndex = 0; - if( HPMHooks.count.HP_console_display_gplnotice_pre ) { + if (HPMHooks.count.HP_console_display_gplnotice_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_console_display_gplnotice_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_console_display_gplnotice_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_console_display_gplnotice_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -363,9 +363,9 @@ void HP_console_display_gplnotice(void) { { HPMHooks.source.console.display_gplnotice(); } - if( HPMHooks.count.HP_console_display_gplnotice_post ) { + if (HPMHooks.count.HP_console_display_gplnotice_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_console_display_gplnotice_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_console_display_gplnotice_post; hIndex++) { postHookFunc = HPMHooks.list.HP_console_display_gplnotice_post[hIndex].func; postHookFunc(); } @@ -375,14 +375,14 @@ void HP_console_display_gplnotice(void) { /* core_interface */ void HP_core_shutdown_callback(void) { int hIndex = 0; - if( HPMHooks.count.HP_core_shutdown_callback_pre ) { + if (HPMHooks.count.HP_core_shutdown_callback_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_core_shutdown_callback_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_core_shutdown_callback_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_core_shutdown_callback_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -390,9 +390,9 @@ void HP_core_shutdown_callback(void) { { HPMHooks.source.core.shutdown_callback(); } - if( HPMHooks.count.HP_core_shutdown_callback_post ) { + if (HPMHooks.count.HP_core_shutdown_callback_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_core_shutdown_callback_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_core_shutdown_callback_post; hIndex++) { postHookFunc = HPMHooks.list.HP_core_shutdown_callback_post[hIndex].func; postHookFunc(); } @@ -403,14 +403,14 @@ void HP_core_shutdown_callback(void) { enum DBOptions HP_DB_fix_options(enum DBType type, enum DBOptions options) { int hIndex = 0; enum DBOptions retVal___ = DB_OPT_BASE; - if( HPMHooks.count.HP_DB_fix_options_pre ) { + if (HPMHooks.count.HP_DB_fix_options_pre > 0) { enum DBOptions (*preHookFunc) (enum DBType *type, enum DBOptions *options); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_fix_options_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_fix_options_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_fix_options_pre[hIndex].func; retVal___ = preHookFunc(&type, &options); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -418,9 +418,9 @@ enum DBOptions HP_DB_fix_options(enum DBType type, enum DBOptions options) { { retVal___ = HPMHooks.source.DB.fix_options(type, options); } - if( HPMHooks.count.HP_DB_fix_options_post ) { + if (HPMHooks.count.HP_DB_fix_options_post > 0) { enum DBOptions (*postHookFunc) (enum DBOptions retVal___, enum DBType type, enum DBOptions options); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_fix_options_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_fix_options_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_fix_options_post[hIndex].func; retVal___ = postHookFunc(retVal___, type, options); } @@ -430,14 +430,14 @@ enum DBOptions HP_DB_fix_options(enum DBType type, enum DBOptions options) { DBComparator HP_DB_default_cmp(enum DBType type) { int hIndex = 0; DBComparator retVal___ = NULL; - if( HPMHooks.count.HP_DB_default_cmp_pre ) { + if (HPMHooks.count.HP_DB_default_cmp_pre > 0) { DBComparator (*preHookFunc) (enum DBType *type); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_default_cmp_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_default_cmp_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_default_cmp_pre[hIndex].func; retVal___ = preHookFunc(&type); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -445,9 +445,9 @@ DBComparator HP_DB_default_cmp(enum DBType type) { { retVal___ = HPMHooks.source.DB.default_cmp(type); } - if( HPMHooks.count.HP_DB_default_cmp_post ) { + if (HPMHooks.count.HP_DB_default_cmp_post > 0) { DBComparator (*postHookFunc) (DBComparator retVal___, enum DBType type); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_default_cmp_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_default_cmp_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_default_cmp_post[hIndex].func; retVal___ = postHookFunc(retVal___, type); } @@ -457,14 +457,14 @@ DBComparator HP_DB_default_cmp(enum DBType type) { DBHasher HP_DB_default_hash(enum DBType type) { int hIndex = 0; DBHasher retVal___ = NULL; - if( HPMHooks.count.HP_DB_default_hash_pre ) { + if (HPMHooks.count.HP_DB_default_hash_pre > 0) { DBHasher (*preHookFunc) (enum DBType *type); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_default_hash_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_default_hash_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_default_hash_pre[hIndex].func; retVal___ = preHookFunc(&type); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -472,9 +472,9 @@ DBHasher HP_DB_default_hash(enum DBType type) { { retVal___ = HPMHooks.source.DB.default_hash(type); } - if( HPMHooks.count.HP_DB_default_hash_post ) { + if (HPMHooks.count.HP_DB_default_hash_post > 0) { DBHasher (*postHookFunc) (DBHasher retVal___, enum DBType type); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_default_hash_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_default_hash_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_default_hash_post[hIndex].func; retVal___ = postHookFunc(retVal___, type); } @@ -484,14 +484,14 @@ DBHasher HP_DB_default_hash(enum DBType type) { DBReleaser HP_DB_default_release(enum DBType type, enum DBOptions options) { int hIndex = 0; DBReleaser retVal___ = NULL; - if( HPMHooks.count.HP_DB_default_release_pre ) { + if (HPMHooks.count.HP_DB_default_release_pre > 0) { DBReleaser (*preHookFunc) (enum DBType *type, enum DBOptions *options); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_default_release_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_default_release_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_default_release_pre[hIndex].func; retVal___ = preHookFunc(&type, &options); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -499,9 +499,9 @@ DBReleaser HP_DB_default_release(enum DBType type, enum DBOptions options) { { retVal___ = HPMHooks.source.DB.default_release(type, options); } - if( HPMHooks.count.HP_DB_default_release_post ) { + if (HPMHooks.count.HP_DB_default_release_post > 0) { DBReleaser (*postHookFunc) (DBReleaser retVal___, enum DBType type, enum DBOptions options); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_default_release_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_default_release_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_default_release_post[hIndex].func; retVal___ = postHookFunc(retVal___, type, options); } @@ -511,14 +511,14 @@ DBReleaser HP_DB_default_release(enum DBType type, enum DBOptions options) { DBReleaser HP_DB_custom_release(enum DBReleaseOption which) { int hIndex = 0; DBReleaser retVal___ = NULL; - if( HPMHooks.count.HP_DB_custom_release_pre ) { + if (HPMHooks.count.HP_DB_custom_release_pre > 0) { DBReleaser (*preHookFunc) (enum DBReleaseOption *which); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_custom_release_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_custom_release_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_custom_release_pre[hIndex].func; retVal___ = preHookFunc(&which); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -526,9 +526,9 @@ DBReleaser HP_DB_custom_release(enum DBReleaseOption which) { { retVal___ = HPMHooks.source.DB.custom_release(which); } - if( HPMHooks.count.HP_DB_custom_release_post ) { + if (HPMHooks.count.HP_DB_custom_release_post > 0) { DBReleaser (*postHookFunc) (DBReleaser retVal___, enum DBReleaseOption which); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_custom_release_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_custom_release_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_custom_release_post[hIndex].func; retVal___ = postHookFunc(retVal___, which); } @@ -538,14 +538,14 @@ DBReleaser HP_DB_custom_release(enum DBReleaseOption which) { struct DBMap* HP_DB_alloc(const char *file, const char *func, int line, enum DBType type, enum DBOptions options, unsigned short maxlen) { int hIndex = 0; struct DBMap* retVal___ = NULL; - if( HPMHooks.count.HP_DB_alloc_pre ) { + if (HPMHooks.count.HP_DB_alloc_pre > 0) { struct DBMap* (*preHookFunc) (const char **file, const char **func, int *line, enum DBType *type, enum DBOptions *options, unsigned short *maxlen); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_alloc_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_alloc_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_alloc_pre[hIndex].func; retVal___ = preHookFunc(&file, &func, &line, &type, &options, &maxlen); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -553,9 +553,9 @@ struct DBMap* HP_DB_alloc(const char *file, const char *func, int line, enum DBT { retVal___ = HPMHooks.source.DB.alloc(file, func, line, type, options, maxlen); } - if( HPMHooks.count.HP_DB_alloc_post ) { + if (HPMHooks.count.HP_DB_alloc_post > 0) { struct DBMap* (*postHookFunc) (struct DBMap* retVal___, const char *file, const char *func, int line, enum DBType type, enum DBOptions options, unsigned short maxlen); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_alloc_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_alloc_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_alloc_post[hIndex].func; retVal___ = postHookFunc(retVal___, file, func, line, type, options, maxlen); } @@ -565,14 +565,14 @@ struct DBMap* HP_DB_alloc(const char *file, const char *func, int line, enum DBT union DBKey HP_DB_i2key(int key) { int hIndex = 0; union DBKey retVal___ = { 0 }; - if( HPMHooks.count.HP_DB_i2key_pre ) { + if (HPMHooks.count.HP_DB_i2key_pre > 0) { union DBKey (*preHookFunc) (int *key); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_i2key_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_i2key_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_i2key_pre[hIndex].func; retVal___ = preHookFunc(&key); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -580,9 +580,9 @@ union DBKey HP_DB_i2key(int key) { { retVal___ = HPMHooks.source.DB.i2key(key); } - if( HPMHooks.count.HP_DB_i2key_post ) { + if (HPMHooks.count.HP_DB_i2key_post > 0) { union DBKey (*postHookFunc) (union DBKey retVal___, int key); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_i2key_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_i2key_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_i2key_post[hIndex].func; retVal___ = postHookFunc(retVal___, key); } @@ -592,14 +592,14 @@ union DBKey HP_DB_i2key(int key) { union DBKey HP_DB_ui2key(unsigned int key) { int hIndex = 0; union DBKey retVal___ = { 0 }; - if( HPMHooks.count.HP_DB_ui2key_pre ) { + if (HPMHooks.count.HP_DB_ui2key_pre > 0) { union DBKey (*preHookFunc) (unsigned int *key); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_ui2key_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_ui2key_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_ui2key_pre[hIndex].func; retVal___ = preHookFunc(&key); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -607,9 +607,9 @@ union DBKey HP_DB_ui2key(unsigned int key) { { retVal___ = HPMHooks.source.DB.ui2key(key); } - if( HPMHooks.count.HP_DB_ui2key_post ) { + if (HPMHooks.count.HP_DB_ui2key_post > 0) { union DBKey (*postHookFunc) (union DBKey retVal___, unsigned int key); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_ui2key_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_ui2key_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_ui2key_post[hIndex].func; retVal___ = postHookFunc(retVal___, key); } @@ -619,14 +619,14 @@ union DBKey HP_DB_ui2key(unsigned int key) { union DBKey HP_DB_str2key(const char *key) { int hIndex = 0; union DBKey retVal___ = { 0 }; - if( HPMHooks.count.HP_DB_str2key_pre ) { + if (HPMHooks.count.HP_DB_str2key_pre > 0) { union DBKey (*preHookFunc) (const char **key); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_str2key_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_str2key_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_str2key_pre[hIndex].func; retVal___ = preHookFunc(&key); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -634,9 +634,9 @@ union DBKey HP_DB_str2key(const char *key) { { retVal___ = HPMHooks.source.DB.str2key(key); } - if( HPMHooks.count.HP_DB_str2key_post ) { + if (HPMHooks.count.HP_DB_str2key_post > 0) { union DBKey (*postHookFunc) (union DBKey retVal___, const char *key); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_str2key_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_str2key_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_str2key_post[hIndex].func; retVal___ = postHookFunc(retVal___, key); } @@ -646,14 +646,14 @@ union DBKey HP_DB_str2key(const char *key) { union DBKey HP_DB_i642key(int64 key) { int hIndex = 0; union DBKey retVal___ = { 0 }; - if( HPMHooks.count.HP_DB_i642key_pre ) { + if (HPMHooks.count.HP_DB_i642key_pre > 0) { union DBKey (*preHookFunc) (int64 *key); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_i642key_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_i642key_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_i642key_pre[hIndex].func; retVal___ = preHookFunc(&key); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -661,9 +661,9 @@ union DBKey HP_DB_i642key(int64 key) { { retVal___ = HPMHooks.source.DB.i642key(key); } - if( HPMHooks.count.HP_DB_i642key_post ) { + if (HPMHooks.count.HP_DB_i642key_post > 0) { union DBKey (*postHookFunc) (union DBKey retVal___, int64 key); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_i642key_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_i642key_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_i642key_post[hIndex].func; retVal___ = postHookFunc(retVal___, key); } @@ -673,14 +673,14 @@ union DBKey HP_DB_i642key(int64 key) { union DBKey HP_DB_ui642key(uint64 key) { int hIndex = 0; union DBKey retVal___ = { 0 }; - if( HPMHooks.count.HP_DB_ui642key_pre ) { + if (HPMHooks.count.HP_DB_ui642key_pre > 0) { union DBKey (*preHookFunc) (uint64 *key); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_ui642key_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_ui642key_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_ui642key_pre[hIndex].func; retVal___ = preHookFunc(&key); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -688,9 +688,9 @@ union DBKey HP_DB_ui642key(uint64 key) { { retVal___ = HPMHooks.source.DB.ui642key(key); } - if( HPMHooks.count.HP_DB_ui642key_post ) { + if (HPMHooks.count.HP_DB_ui642key_post > 0) { union DBKey (*postHookFunc) (union DBKey retVal___, uint64 key); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_ui642key_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_ui642key_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_ui642key_post[hIndex].func; retVal___ = postHookFunc(retVal___, key); } @@ -700,14 +700,14 @@ union DBKey HP_DB_ui642key(uint64 key) { struct DBData HP_DB_i2data(int data) { int hIndex = 0; struct DBData retVal___ = { 0 }; - if( HPMHooks.count.HP_DB_i2data_pre ) { + if (HPMHooks.count.HP_DB_i2data_pre > 0) { struct DBData (*preHookFunc) (int *data); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_i2data_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_i2data_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_i2data_pre[hIndex].func; retVal___ = preHookFunc(&data); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -715,9 +715,9 @@ struct DBData HP_DB_i2data(int data) { { retVal___ = HPMHooks.source.DB.i2data(data); } - if( HPMHooks.count.HP_DB_i2data_post ) { + if (HPMHooks.count.HP_DB_i2data_post > 0) { struct DBData (*postHookFunc) (struct DBData retVal___, int data); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_i2data_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_i2data_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_i2data_post[hIndex].func; retVal___ = postHookFunc(retVal___, data); } @@ -727,14 +727,14 @@ struct DBData HP_DB_i2data(int data) { struct DBData HP_DB_ui2data(unsigned int data) { int hIndex = 0; struct DBData retVal___ = { 0 }; - if( HPMHooks.count.HP_DB_ui2data_pre ) { + if (HPMHooks.count.HP_DB_ui2data_pre > 0) { struct DBData (*preHookFunc) (unsigned int *data); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_ui2data_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_ui2data_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_ui2data_pre[hIndex].func; retVal___ = preHookFunc(&data); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -742,9 +742,9 @@ struct DBData HP_DB_ui2data(unsigned int data) { { retVal___ = HPMHooks.source.DB.ui2data(data); } - if( HPMHooks.count.HP_DB_ui2data_post ) { + if (HPMHooks.count.HP_DB_ui2data_post > 0) { struct DBData (*postHookFunc) (struct DBData retVal___, unsigned int data); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_ui2data_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_ui2data_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_ui2data_post[hIndex].func; retVal___ = postHookFunc(retVal___, data); } @@ -754,14 +754,14 @@ struct DBData HP_DB_ui2data(unsigned int data) { struct DBData HP_DB_ptr2data(void *data) { int hIndex = 0; struct DBData retVal___ = { 0 }; - if( HPMHooks.count.HP_DB_ptr2data_pre ) { + if (HPMHooks.count.HP_DB_ptr2data_pre > 0) { struct DBData (*preHookFunc) (void **data); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_ptr2data_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_ptr2data_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_ptr2data_pre[hIndex].func; retVal___ = preHookFunc(&data); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -769,9 +769,9 @@ struct DBData HP_DB_ptr2data(void *data) { { retVal___ = HPMHooks.source.DB.ptr2data(data); } - if( HPMHooks.count.HP_DB_ptr2data_post ) { + if (HPMHooks.count.HP_DB_ptr2data_post > 0) { struct DBData (*postHookFunc) (struct DBData retVal___, void *data); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_ptr2data_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_ptr2data_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_ptr2data_post[hIndex].func; retVal___ = postHookFunc(retVal___, data); } @@ -781,14 +781,14 @@ struct DBData HP_DB_ptr2data(void *data) { int HP_DB_data2i(struct DBData *data) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_DB_data2i_pre ) { + if (HPMHooks.count.HP_DB_data2i_pre > 0) { int (*preHookFunc) (struct DBData **data); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_data2i_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_data2i_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_data2i_pre[hIndex].func; retVal___ = preHookFunc(&data); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -796,9 +796,9 @@ int HP_DB_data2i(struct DBData *data) { { retVal___ = HPMHooks.source.DB.data2i(data); } - if( HPMHooks.count.HP_DB_data2i_post ) { + if (HPMHooks.count.HP_DB_data2i_post > 0) { int (*postHookFunc) (int retVal___, struct DBData *data); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_data2i_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_data2i_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_data2i_post[hIndex].func; retVal___ = postHookFunc(retVal___, data); } @@ -808,14 +808,14 @@ int HP_DB_data2i(struct DBData *data) { unsigned int HP_DB_data2ui(struct DBData *data) { int hIndex = 0; unsigned int retVal___ = 0; - if( HPMHooks.count.HP_DB_data2ui_pre ) { + if (HPMHooks.count.HP_DB_data2ui_pre > 0) { unsigned int (*preHookFunc) (struct DBData **data); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_data2ui_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_data2ui_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_data2ui_pre[hIndex].func; retVal___ = preHookFunc(&data); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -823,9 +823,9 @@ unsigned int HP_DB_data2ui(struct DBData *data) { { retVal___ = HPMHooks.source.DB.data2ui(data); } - if( HPMHooks.count.HP_DB_data2ui_post ) { + if (HPMHooks.count.HP_DB_data2ui_post > 0) { unsigned int (*postHookFunc) (unsigned int retVal___, struct DBData *data); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_data2ui_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_data2ui_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_data2ui_post[hIndex].func; retVal___ = postHookFunc(retVal___, data); } @@ -835,14 +835,14 @@ unsigned int HP_DB_data2ui(struct DBData *data) { void* HP_DB_data2ptr(struct DBData *data) { int hIndex = 0; void* retVal___ = NULL; - if( HPMHooks.count.HP_DB_data2ptr_pre ) { + if (HPMHooks.count.HP_DB_data2ptr_pre > 0) { void* (*preHookFunc) (struct DBData **data); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_data2ptr_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_data2ptr_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_data2ptr_pre[hIndex].func; retVal___ = preHookFunc(&data); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -850,9 +850,9 @@ void* HP_DB_data2ptr(struct DBData *data) { { retVal___ = HPMHooks.source.DB.data2ptr(data); } - if( HPMHooks.count.HP_DB_data2ptr_post ) { + if (HPMHooks.count.HP_DB_data2ptr_post > 0) { void* (*postHookFunc) (void* retVal___, struct DBData *data); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_data2ptr_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_data2ptr_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_data2ptr_post[hIndex].func; retVal___ = postHookFunc(retVal___, data); } @@ -861,14 +861,14 @@ void* HP_DB_data2ptr(struct DBData *data) { } void HP_DB_init(void) { int hIndex = 0; - if( HPMHooks.count.HP_DB_init_pre ) { + if (HPMHooks.count.HP_DB_init_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_init_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_init_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_init_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -876,9 +876,9 @@ void HP_DB_init(void) { { HPMHooks.source.DB.init(); } - if( HPMHooks.count.HP_DB_init_post ) { + if (HPMHooks.count.HP_DB_init_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_init_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_init_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_init_post[hIndex].func; postHookFunc(); } @@ -887,14 +887,14 @@ void HP_DB_init(void) { } void HP_DB_final(void) { int hIndex = 0; - if( HPMHooks.count.HP_DB_final_pre ) { + if (HPMHooks.count.HP_DB_final_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_final_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_final_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_DB_final_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -902,9 +902,9 @@ void HP_DB_final(void) { { HPMHooks.source.DB.final(); } - if( HPMHooks.count.HP_DB_final_post ) { + if (HPMHooks.count.HP_DB_final_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_final_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_DB_final_post; hIndex++) { postHookFunc = HPMHooks.list.HP_DB_final_post[hIndex].func; postHookFunc(); } @@ -914,14 +914,14 @@ void HP_DB_final(void) { /* des_interface */ void HP_des_decrypt_block(struct des_bit64 *block) { int hIndex = 0; - if( HPMHooks.count.HP_des_decrypt_block_pre ) { + if (HPMHooks.count.HP_des_decrypt_block_pre > 0) { void (*preHookFunc) (struct des_bit64 **block); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_des_decrypt_block_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_des_decrypt_block_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_des_decrypt_block_pre[hIndex].func; preHookFunc(&block); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -929,9 +929,9 @@ void HP_des_decrypt_block(struct des_bit64 *block) { { HPMHooks.source.des.decrypt_block(block); } - if( HPMHooks.count.HP_des_decrypt_block_post ) { + if (HPMHooks.count.HP_des_decrypt_block_post > 0) { void (*postHookFunc) (struct des_bit64 *block); - for(hIndex = 0; hIndex < HPMHooks.count.HP_des_decrypt_block_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_des_decrypt_block_post; hIndex++) { postHookFunc = HPMHooks.list.HP_des_decrypt_block_post[hIndex].func; postHookFunc(block); } @@ -940,14 +940,14 @@ void HP_des_decrypt_block(struct des_bit64 *block) { } void HP_des_decrypt(unsigned char *data, size_t size) { int hIndex = 0; - if( HPMHooks.count.HP_des_decrypt_pre ) { + if (HPMHooks.count.HP_des_decrypt_pre > 0) { void (*preHookFunc) (unsigned char **data, size_t *size); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_des_decrypt_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_des_decrypt_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_des_decrypt_pre[hIndex].func; preHookFunc(&data, &size); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -955,9 +955,9 @@ void HP_des_decrypt(unsigned char *data, size_t size) { { HPMHooks.source.des.decrypt(data, size); } - if( HPMHooks.count.HP_des_decrypt_post ) { + if (HPMHooks.count.HP_des_decrypt_post > 0) { void (*postHookFunc) (unsigned char *data, size_t size); - for(hIndex = 0; hIndex < HPMHooks.count.HP_des_decrypt_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_des_decrypt_post; hIndex++) { postHookFunc = HPMHooks.list.HP_des_decrypt_post[hIndex].func; postHookFunc(data, size); } @@ -967,14 +967,14 @@ void HP_des_decrypt(unsigned char *data, size_t size) { /* lclif_interface */ void HP_lclif_init(void) { int hIndex = 0; - if( HPMHooks.count.HP_lclif_init_pre ) { + if (HPMHooks.count.HP_lclif_init_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_init_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_init_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_lclif_init_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -982,9 +982,9 @@ void HP_lclif_init(void) { { HPMHooks.source.lclif.init(); } - if( HPMHooks.count.HP_lclif_init_post ) { + if (HPMHooks.count.HP_lclif_init_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_init_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_init_post; hIndex++) { postHookFunc = HPMHooks.list.HP_lclif_init_post[hIndex].func; postHookFunc(); } @@ -993,14 +993,14 @@ void HP_lclif_init(void) { } void HP_lclif_final(void) { int hIndex = 0; - if( HPMHooks.count.HP_lclif_final_pre ) { + if (HPMHooks.count.HP_lclif_final_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_final_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_final_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_lclif_final_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -1008,9 +1008,9 @@ void HP_lclif_final(void) { { HPMHooks.source.lclif.final(); } - if( HPMHooks.count.HP_lclif_final_post ) { + if (HPMHooks.count.HP_lclif_final_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_final_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_final_post; hIndex++) { postHookFunc = HPMHooks.list.HP_lclif_final_post[hIndex].func; postHookFunc(); } @@ -1019,14 +1019,14 @@ void HP_lclif_final(void) { } void HP_lclif_connection_error(int fd, uint8 error) { int hIndex = 0; - if( HPMHooks.count.HP_lclif_connection_error_pre ) { + if (HPMHooks.count.HP_lclif_connection_error_pre > 0) { void (*preHookFunc) (int *fd, uint8 *error); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_connection_error_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_connection_error_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_lclif_connection_error_pre[hIndex].func; preHookFunc(&fd, &error); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -1034,9 +1034,9 @@ void HP_lclif_connection_error(int fd, uint8 error) { { HPMHooks.source.lclif.connection_error(fd, error); } - if( HPMHooks.count.HP_lclif_connection_error_post ) { + if (HPMHooks.count.HP_lclif_connection_error_post > 0) { void (*postHookFunc) (int fd, uint8 error); - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_connection_error_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_connection_error_post; hIndex++) { postHookFunc = HPMHooks.list.HP_lclif_connection_error_post[hIndex].func; postHookFunc(fd, error); } @@ -1046,14 +1046,14 @@ void HP_lclif_connection_error(int fd, uint8 error) { bool HP_lclif_server_list(struct login_session_data *sd) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_lclif_server_list_pre ) { + if (HPMHooks.count.HP_lclif_server_list_pre > 0) { bool (*preHookFunc) (struct login_session_data **sd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_server_list_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_server_list_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_lclif_server_list_pre[hIndex].func; retVal___ = preHookFunc(&sd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1061,9 +1061,9 @@ bool HP_lclif_server_list(struct login_session_data *sd) { { retVal___ = HPMHooks.source.lclif.server_list(sd); } - if( HPMHooks.count.HP_lclif_server_list_post ) { + if (HPMHooks.count.HP_lclif_server_list_post > 0) { bool (*postHookFunc) (bool retVal___, struct login_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_server_list_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_server_list_post; hIndex++) { postHookFunc = HPMHooks.list.HP_lclif_server_list_post[hIndex].func; retVal___ = postHookFunc(retVal___, sd); } @@ -1072,14 +1072,14 @@ bool HP_lclif_server_list(struct login_session_data *sd) { } void HP_lclif_auth_failed(int fd, time_t ban, uint32 error) { int hIndex = 0; - if( HPMHooks.count.HP_lclif_auth_failed_pre ) { + if (HPMHooks.count.HP_lclif_auth_failed_pre > 0) { void (*preHookFunc) (int *fd, time_t *ban, uint32 *error); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_auth_failed_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_auth_failed_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_lclif_auth_failed_pre[hIndex].func; preHookFunc(&fd, &ban, &error); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -1087,9 +1087,9 @@ void HP_lclif_auth_failed(int fd, time_t ban, uint32 error) { { HPMHooks.source.lclif.auth_failed(fd, ban, error); } - if( HPMHooks.count.HP_lclif_auth_failed_post ) { + if (HPMHooks.count.HP_lclif_auth_failed_post > 0) { void (*postHookFunc) (int fd, time_t ban, uint32 error); - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_auth_failed_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_auth_failed_post; hIndex++) { postHookFunc = HPMHooks.list.HP_lclif_auth_failed_post[hIndex].func; postHookFunc(fd, ban, error); } @@ -1098,14 +1098,14 @@ void HP_lclif_auth_failed(int fd, time_t ban, uint32 error) { } void HP_lclif_login_error(int fd, uint8 error) { int hIndex = 0; - if( HPMHooks.count.HP_lclif_login_error_pre ) { + if (HPMHooks.count.HP_lclif_login_error_pre > 0) { void (*preHookFunc) (int *fd, uint8 *error); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_login_error_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_login_error_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_lclif_login_error_pre[hIndex].func; preHookFunc(&fd, &error); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -1113,9 +1113,9 @@ void HP_lclif_login_error(int fd, uint8 error) { { HPMHooks.source.lclif.login_error(fd, error); } - if( HPMHooks.count.HP_lclif_login_error_post ) { + if (HPMHooks.count.HP_lclif_login_error_post > 0) { void (*postHookFunc) (int fd, uint8 error); - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_login_error_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_login_error_post; hIndex++) { postHookFunc = HPMHooks.list.HP_lclif_login_error_post[hIndex].func; postHookFunc(fd, error); } @@ -1124,14 +1124,14 @@ void HP_lclif_login_error(int fd, uint8 error) { } void HP_lclif_coding_key(int fd, struct login_session_data *sd) { int hIndex = 0; - if( HPMHooks.count.HP_lclif_coding_key_pre ) { + if (HPMHooks.count.HP_lclif_coding_key_pre > 0) { void (*preHookFunc) (int *fd, struct login_session_data **sd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_coding_key_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_coding_key_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_lclif_coding_key_pre[hIndex].func; preHookFunc(&fd, &sd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -1139,9 +1139,9 @@ void HP_lclif_coding_key(int fd, struct login_session_data *sd) { { HPMHooks.source.lclif.coding_key(fd, sd); } - if( HPMHooks.count.HP_lclif_coding_key_post ) { + if (HPMHooks.count.HP_lclif_coding_key_post > 0) { void (*postHookFunc) (int fd, struct login_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_coding_key_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_coding_key_post; hIndex++) { postHookFunc = HPMHooks.list.HP_lclif_coding_key_post[hIndex].func; postHookFunc(fd, sd); } @@ -1151,14 +1151,14 @@ void HP_lclif_coding_key(int fd, struct login_session_data *sd) { const struct login_packet_db* HP_lclif_packet(int16 packet_id) { int hIndex = 0; const struct login_packet_db* retVal___ = NULL; - if( HPMHooks.count.HP_lclif_packet_pre ) { + if (HPMHooks.count.HP_lclif_packet_pre > 0) { const struct login_packet_db* (*preHookFunc) (int16 *packet_id); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_packet_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_packet_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_lclif_packet_pre[hIndex].func; retVal___ = preHookFunc(&packet_id); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1166,9 +1166,9 @@ const struct login_packet_db* HP_lclif_packet(int16 packet_id) { { retVal___ = HPMHooks.source.lclif.packet(packet_id); } - if( HPMHooks.count.HP_lclif_packet_post ) { + if (HPMHooks.count.HP_lclif_packet_post > 0) { const struct login_packet_db* (*postHookFunc) (const struct login_packet_db* retVal___, int16 packet_id); - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_packet_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_packet_post; hIndex++) { postHookFunc = HPMHooks.list.HP_lclif_packet_post[hIndex].func; retVal___ = postHookFunc(retVal___, packet_id); } @@ -1178,14 +1178,14 @@ const struct login_packet_db* HP_lclif_packet(int16 packet_id) { enum parsefunc_rcode HP_lclif_parse_packet(const struct login_packet_db *lpd, int fd, struct login_session_data *sd) { int hIndex = 0; enum parsefunc_rcode retVal___ = PACKET_UNKNOWN; - if( HPMHooks.count.HP_lclif_parse_packet_pre ) { + if (HPMHooks.count.HP_lclif_parse_packet_pre > 0) { enum parsefunc_rcode (*preHookFunc) (const struct login_packet_db **lpd, int *fd, struct login_session_data **sd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_parse_packet_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_parse_packet_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_lclif_parse_packet_pre[hIndex].func; retVal___ = preHookFunc(&lpd, &fd, &sd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1193,9 +1193,9 @@ enum parsefunc_rcode HP_lclif_parse_packet(const struct login_packet_db *lpd, in { retVal___ = HPMHooks.source.lclif.parse_packet(lpd, fd, sd); } - if( HPMHooks.count.HP_lclif_parse_packet_post ) { + if (HPMHooks.count.HP_lclif_parse_packet_post > 0) { enum parsefunc_rcode (*postHookFunc) (enum parsefunc_rcode retVal___, const struct login_packet_db *lpd, int fd, struct login_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_parse_packet_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_parse_packet_post; hIndex++) { postHookFunc = HPMHooks.list.HP_lclif_parse_packet_post[hIndex].func; retVal___ = postHookFunc(retVal___, lpd, fd, sd); } @@ -1205,14 +1205,14 @@ enum parsefunc_rcode HP_lclif_parse_packet(const struct login_packet_db *lpd, in int HP_lclif_parse(int fd) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_lclif_parse_pre ) { + if (HPMHooks.count.HP_lclif_parse_pre > 0) { int (*preHookFunc) (int *fd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_parse_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_parse_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_lclif_parse_pre[hIndex].func; retVal___ = preHookFunc(&fd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1220,9 +1220,9 @@ int HP_lclif_parse(int fd) { { retVal___ = HPMHooks.source.lclif.parse(fd); } - if( HPMHooks.count.HP_lclif_parse_post ) { + if (HPMHooks.count.HP_lclif_parse_post > 0) { int (*postHookFunc) (int retVal___, int fd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_lclif_parse_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_lclif_parse_post; hIndex++) { postHookFunc = HPMHooks.list.HP_lclif_parse_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd); } @@ -1232,14 +1232,14 @@ int HP_lclif_parse(int fd) { /* lclif_interface_private */ void HP_PRIV__lclif_packetdb_loaddb(void) { int hIndex = 0; - if( HPMHooks.count.HP_PRIV__lclif_packetdb_loaddb_pre ) { + if (HPMHooks.count.HP_PRIV__lclif_packetdb_loaddb_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_packetdb_loaddb_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_packetdb_loaddb_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_PRIV__lclif_packetdb_loaddb_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -1247,9 +1247,9 @@ void HP_PRIV__lclif_packetdb_loaddb(void) { { HPMHooks.source.PRIV__lclif.packetdb_loaddb(); } - if( HPMHooks.count.HP_PRIV__lclif_packetdb_loaddb_post ) { + if (HPMHooks.count.HP_PRIV__lclif_packetdb_loaddb_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_packetdb_loaddb_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_packetdb_loaddb_post; hIndex++) { postHookFunc = HPMHooks.list.HP_PRIV__lclif_packetdb_loaddb_post[hIndex].func; postHookFunc(); } @@ -1259,14 +1259,14 @@ void HP_PRIV__lclif_packetdb_loaddb(void) { enum parsefunc_rcode HP_PRIV__lclif_parse_sub(int fd, struct login_session_data *sd) { int hIndex = 0; enum parsefunc_rcode retVal___ = PACKET_UNKNOWN; - if( HPMHooks.count.HP_PRIV__lclif_parse_sub_pre ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_sub_pre > 0) { enum parsefunc_rcode (*preHookFunc) (int *fd, struct login_session_data **sd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_sub_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_sub_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_sub_pre[hIndex].func; retVal___ = preHookFunc(&fd, &sd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1274,9 +1274,9 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_sub(int fd, struct login_session_data { retVal___ = HPMHooks.source.PRIV__lclif.parse_sub(fd, sd); } - if( HPMHooks.count.HP_PRIV__lclif_parse_sub_post ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_sub_post > 0) { enum parsefunc_rcode (*postHookFunc) (enum parsefunc_rcode retVal___, int fd, struct login_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_sub_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_sub_post; hIndex++) { postHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_sub_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd, sd); } @@ -1286,14 +1286,14 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_sub(int fd, struct login_session_data enum parsefunc_rcode HP_PRIV__lclif_parse_CA_CONNECT_INFO_CHANGED(int fd, struct login_session_data *sd) { int hIndex = 0; enum parsefunc_rcode retVal___ = PACKET_UNKNOWN; - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_CONNECT_INFO_CHANGED_pre ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_CONNECT_INFO_CHANGED_pre > 0) { enum parsefunc_rcode (*preHookFunc) (int *fd, struct login_session_data **sd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_CONNECT_INFO_CHANGED_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_CONNECT_INFO_CHANGED_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_CONNECT_INFO_CHANGED_pre[hIndex].func; retVal___ = preHookFunc(&fd, &sd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1301,9 +1301,9 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_CONNECT_INFO_CHANGED(int fd, struct { retVal___ = HPMHooks.source.PRIV__lclif.parse_CA_CONNECT_INFO_CHANGED(fd, sd); } - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_CONNECT_INFO_CHANGED_post ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_CONNECT_INFO_CHANGED_post > 0) { enum parsefunc_rcode (*postHookFunc) (enum parsefunc_rcode retVal___, int fd, struct login_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_CONNECT_INFO_CHANGED_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_CONNECT_INFO_CHANGED_post; hIndex++) { postHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_CONNECT_INFO_CHANGED_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd, sd); } @@ -1313,14 +1313,14 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_CONNECT_INFO_CHANGED(int fd, struct enum parsefunc_rcode HP_PRIV__lclif_parse_CA_EXE_HASHCHECK(int fd, struct login_session_data *sd) { int hIndex = 0; enum parsefunc_rcode retVal___ = PACKET_UNKNOWN; - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_EXE_HASHCHECK_pre ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_EXE_HASHCHECK_pre > 0) { enum parsefunc_rcode (*preHookFunc) (int *fd, struct login_session_data **sd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_EXE_HASHCHECK_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_EXE_HASHCHECK_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_EXE_HASHCHECK_pre[hIndex].func; retVal___ = preHookFunc(&fd, &sd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1328,9 +1328,9 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_EXE_HASHCHECK(int fd, struct login_ { retVal___ = HPMHooks.source.PRIV__lclif.parse_CA_EXE_HASHCHECK(fd, sd); } - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_EXE_HASHCHECK_post ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_EXE_HASHCHECK_post > 0) { enum parsefunc_rcode (*postHookFunc) (enum parsefunc_rcode retVal___, int fd, struct login_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_EXE_HASHCHECK_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_EXE_HASHCHECK_post; hIndex++) { postHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_EXE_HASHCHECK_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd, sd); } @@ -1340,14 +1340,14 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_EXE_HASHCHECK(int fd, struct login_ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_LOGIN(int fd, struct login_session_data *sd) { int hIndex = 0; enum parsefunc_rcode retVal___ = PACKET_UNKNOWN; - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_pre ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_pre > 0) { enum parsefunc_rcode (*preHookFunc) (int *fd, struct login_session_data **sd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_LOGIN_pre[hIndex].func; retVal___ = preHookFunc(&fd, &sd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1355,9 +1355,9 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_LOGIN(int fd, struct login_session_ { retVal___ = HPMHooks.source.PRIV__lclif.parse_CA_LOGIN(fd, sd); } - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_post ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_post > 0) { enum parsefunc_rcode (*postHookFunc) (enum parsefunc_rcode retVal___, int fd, struct login_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_post; hIndex++) { postHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_LOGIN_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd, sd); } @@ -1367,14 +1367,14 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_LOGIN(int fd, struct login_session_ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_LOGIN2(int fd, struct login_session_data *sd) { int hIndex = 0; enum parsefunc_rcode retVal___ = PACKET_UNKNOWN; - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN2_pre ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN2_pre > 0) { enum parsefunc_rcode (*preHookFunc) (int *fd, struct login_session_data **sd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN2_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN2_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_LOGIN2_pre[hIndex].func; retVal___ = preHookFunc(&fd, &sd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1382,9 +1382,9 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_LOGIN2(int fd, struct login_session { retVal___ = HPMHooks.source.PRIV__lclif.parse_CA_LOGIN2(fd, sd); } - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN2_post ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN2_post > 0) { enum parsefunc_rcode (*postHookFunc) (enum parsefunc_rcode retVal___, int fd, struct login_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN2_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN2_post; hIndex++) { postHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_LOGIN2_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd, sd); } @@ -1394,14 +1394,14 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_LOGIN2(int fd, struct login_session enum parsefunc_rcode HP_PRIV__lclif_parse_CA_LOGIN3(int fd, struct login_session_data *sd) { int hIndex = 0; enum parsefunc_rcode retVal___ = PACKET_UNKNOWN; - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN3_pre ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN3_pre > 0) { enum parsefunc_rcode (*preHookFunc) (int *fd, struct login_session_data **sd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN3_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN3_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_LOGIN3_pre[hIndex].func; retVal___ = preHookFunc(&fd, &sd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1409,9 +1409,9 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_LOGIN3(int fd, struct login_session { retVal___ = HPMHooks.source.PRIV__lclif.parse_CA_LOGIN3(fd, sd); } - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN3_post ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN3_post > 0) { enum parsefunc_rcode (*postHookFunc) (enum parsefunc_rcode retVal___, int fd, struct login_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN3_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN3_post; hIndex++) { postHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_LOGIN3_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd, sd); } @@ -1421,14 +1421,14 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_LOGIN3(int fd, struct login_session enum parsefunc_rcode HP_PRIV__lclif_parse_CA_LOGIN4(int fd, struct login_session_data *sd) { int hIndex = 0; enum parsefunc_rcode retVal___ = PACKET_UNKNOWN; - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN4_pre ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN4_pre > 0) { enum parsefunc_rcode (*preHookFunc) (int *fd, struct login_session_data **sd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN4_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN4_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_LOGIN4_pre[hIndex].func; retVal___ = preHookFunc(&fd, &sd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1436,9 +1436,9 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_LOGIN4(int fd, struct login_session { retVal___ = HPMHooks.source.PRIV__lclif.parse_CA_LOGIN4(fd, sd); } - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN4_post ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN4_post > 0) { enum parsefunc_rcode (*postHookFunc) (enum parsefunc_rcode retVal___, int fd, struct login_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN4_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN4_post; hIndex++) { postHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_LOGIN4_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd, sd); } @@ -1448,14 +1448,14 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_LOGIN4(int fd, struct login_session enum parsefunc_rcode HP_PRIV__lclif_parse_CA_LOGIN_PCBANG(int fd, struct login_session_data *sd) { int hIndex = 0; enum parsefunc_rcode retVal___ = PACKET_UNKNOWN; - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_PCBANG_pre ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_PCBANG_pre > 0) { enum parsefunc_rcode (*preHookFunc) (int *fd, struct login_session_data **sd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_PCBANG_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_PCBANG_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_LOGIN_PCBANG_pre[hIndex].func; retVal___ = preHookFunc(&fd, &sd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1463,9 +1463,9 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_LOGIN_PCBANG(int fd, struct login_s { retVal___ = HPMHooks.source.PRIV__lclif.parse_CA_LOGIN_PCBANG(fd, sd); } - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_PCBANG_post ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_PCBANG_post > 0) { enum parsefunc_rcode (*postHookFunc) (enum parsefunc_rcode retVal___, int fd, struct login_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_PCBANG_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_PCBANG_post; hIndex++) { postHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_LOGIN_PCBANG_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd, sd); } @@ -1475,14 +1475,14 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_LOGIN_PCBANG(int fd, struct login_s enum parsefunc_rcode HP_PRIV__lclif_parse_CA_LOGIN_HAN(int fd, struct login_session_data *sd) { int hIndex = 0; enum parsefunc_rcode retVal___ = PACKET_UNKNOWN; - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_HAN_pre ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_HAN_pre > 0) { enum parsefunc_rcode (*preHookFunc) (int *fd, struct login_session_data **sd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_HAN_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_HAN_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_LOGIN_HAN_pre[hIndex].func; retVal___ = preHookFunc(&fd, &sd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1490,9 +1490,9 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_LOGIN_HAN(int fd, struct login_sess { retVal___ = HPMHooks.source.PRIV__lclif.parse_CA_LOGIN_HAN(fd, sd); } - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_HAN_post ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_HAN_post > 0) { enum parsefunc_rcode (*postHookFunc) (enum parsefunc_rcode retVal___, int fd, struct login_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_HAN_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_LOGIN_HAN_post; hIndex++) { postHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_LOGIN_HAN_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd, sd); } @@ -1502,14 +1502,14 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_LOGIN_HAN(int fd, struct login_sess enum parsefunc_rcode HP_PRIV__lclif_parse_CA_SSO_LOGIN_REQ(int fd, struct login_session_data *sd) { int hIndex = 0; enum parsefunc_rcode retVal___ = PACKET_UNKNOWN; - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_SSO_LOGIN_REQ_pre ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_SSO_LOGIN_REQ_pre > 0) { enum parsefunc_rcode (*preHookFunc) (int *fd, struct login_session_data **sd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_SSO_LOGIN_REQ_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_SSO_LOGIN_REQ_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_SSO_LOGIN_REQ_pre[hIndex].func; retVal___ = preHookFunc(&fd, &sd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1517,9 +1517,9 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_SSO_LOGIN_REQ(int fd, struct login_ { retVal___ = HPMHooks.source.PRIV__lclif.parse_CA_SSO_LOGIN_REQ(fd, sd); } - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_SSO_LOGIN_REQ_post ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_SSO_LOGIN_REQ_post > 0) { enum parsefunc_rcode (*postHookFunc) (enum parsefunc_rcode retVal___, int fd, struct login_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_SSO_LOGIN_REQ_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_SSO_LOGIN_REQ_post; hIndex++) { postHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_SSO_LOGIN_REQ_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd, sd); } @@ -1529,14 +1529,14 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_SSO_LOGIN_REQ(int fd, struct login_ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_REQ_HASH(int fd, struct login_session_data *sd) { int hIndex = 0; enum parsefunc_rcode retVal___ = PACKET_UNKNOWN; - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_REQ_HASH_pre ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_REQ_HASH_pre > 0) { enum parsefunc_rcode (*preHookFunc) (int *fd, struct login_session_data **sd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_REQ_HASH_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_REQ_HASH_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_REQ_HASH_pre[hIndex].func; retVal___ = preHookFunc(&fd, &sd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1544,9 +1544,9 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_REQ_HASH(int fd, struct login_sessi { retVal___ = HPMHooks.source.PRIV__lclif.parse_CA_REQ_HASH(fd, sd); } - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_REQ_HASH_post ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_REQ_HASH_post > 0) { enum parsefunc_rcode (*postHookFunc) (enum parsefunc_rcode retVal___, int fd, struct login_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_REQ_HASH_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_REQ_HASH_post; hIndex++) { postHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_REQ_HASH_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd, sd); } @@ -1556,14 +1556,14 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_REQ_HASH(int fd, struct login_sessi enum parsefunc_rcode HP_PRIV__lclif_parse_CA_CHARSERVERCONNECT(int fd, struct login_session_data *sd) { int hIndex = 0; enum parsefunc_rcode retVal___ = PACKET_UNKNOWN; - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_CHARSERVERCONNECT_pre ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_CHARSERVERCONNECT_pre > 0) { enum parsefunc_rcode (*preHookFunc) (int *fd, struct login_session_data **sd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_CHARSERVERCONNECT_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_CHARSERVERCONNECT_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_CHARSERVERCONNECT_pre[hIndex].func; retVal___ = preHookFunc(&fd, &sd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1571,9 +1571,9 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_CHARSERVERCONNECT(int fd, struct lo { retVal___ = HPMHooks.source.PRIV__lclif.parse_CA_CHARSERVERCONNECT(fd, sd); } - if( HPMHooks.count.HP_PRIV__lclif_parse_CA_CHARSERVERCONNECT_post ) { + if (HPMHooks.count.HP_PRIV__lclif_parse_CA_CHARSERVERCONNECT_post > 0) { enum parsefunc_rcode (*postHookFunc) (enum parsefunc_rcode retVal___, int fd, struct login_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_CHARSERVERCONNECT_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_PRIV__lclif_parse_CA_CHARSERVERCONNECT_post; hIndex++) { postHookFunc = HPMHooks.list.HP_PRIV__lclif_parse_CA_CHARSERVERCONNECT_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd, sd); } @@ -1584,14 +1584,14 @@ enum parsefunc_rcode HP_PRIV__lclif_parse_CA_CHARSERVERCONNECT(int fd, struct lo int HP_libconfig_read(struct config_t *config, FILE *stream) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_read_pre ) { + if (HPMHooks.count.HP_libconfig_read_pre > 0) { int (*preHookFunc) (struct config_t **config, FILE **stream); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_read_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_read_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_read_pre[hIndex].func; retVal___ = preHookFunc(&config, &stream); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1599,9 +1599,9 @@ int HP_libconfig_read(struct config_t *config, FILE *stream) { { retVal___ = HPMHooks.source.libconfig.read(config, stream); } - if( HPMHooks.count.HP_libconfig_read_post ) { + if (HPMHooks.count.HP_libconfig_read_post > 0) { int (*postHookFunc) (int retVal___, struct config_t *config, FILE *stream); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_read_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_read_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_read_post[hIndex].func; retVal___ = postHookFunc(retVal___, config, stream); } @@ -1610,14 +1610,14 @@ int HP_libconfig_read(struct config_t *config, FILE *stream) { } void HP_libconfig_write(const struct config_t *config, FILE *stream) { int hIndex = 0; - if( HPMHooks.count.HP_libconfig_write_pre ) { + if (HPMHooks.count.HP_libconfig_write_pre > 0) { void (*preHookFunc) (const struct config_t **config, FILE **stream); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_write_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_write_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_write_pre[hIndex].func; preHookFunc(&config, &stream); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -1625,9 +1625,9 @@ void HP_libconfig_write(const struct config_t *config, FILE *stream) { { HPMHooks.source.libconfig.write(config, stream); } - if( HPMHooks.count.HP_libconfig_write_post ) { + if (HPMHooks.count.HP_libconfig_write_post > 0) { void (*postHookFunc) (const struct config_t *config, FILE *stream); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_write_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_write_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_write_post[hIndex].func; postHookFunc(config, stream); } @@ -1636,14 +1636,14 @@ void HP_libconfig_write(const struct config_t *config, FILE *stream) { } void HP_libconfig_set_options(struct config_t *config, int options) { int hIndex = 0; - if( HPMHooks.count.HP_libconfig_set_options_pre ) { + if (HPMHooks.count.HP_libconfig_set_options_pre > 0) { void (*preHookFunc) (struct config_t **config, int *options); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_set_options_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_set_options_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_set_options_pre[hIndex].func; preHookFunc(&config, &options); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -1651,9 +1651,9 @@ void HP_libconfig_set_options(struct config_t *config, int options) { { HPMHooks.source.libconfig.set_options(config, options); } - if( HPMHooks.count.HP_libconfig_set_options_post ) { + if (HPMHooks.count.HP_libconfig_set_options_post > 0) { void (*postHookFunc) (struct config_t *config, int options); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_set_options_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_set_options_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_set_options_post[hIndex].func; postHookFunc(config, options); } @@ -1663,14 +1663,14 @@ void HP_libconfig_set_options(struct config_t *config, int options) { int HP_libconfig_get_options(const struct config_t *config) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_get_options_pre ) { + if (HPMHooks.count.HP_libconfig_get_options_pre > 0) { int (*preHookFunc) (const struct config_t **config); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_get_options_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_get_options_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_get_options_pre[hIndex].func; retVal___ = preHookFunc(&config); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1678,9 +1678,9 @@ int HP_libconfig_get_options(const struct config_t *config) { { retVal___ = HPMHooks.source.libconfig.get_options(config); } - if( HPMHooks.count.HP_libconfig_get_options_post ) { + if (HPMHooks.count.HP_libconfig_get_options_post > 0) { int (*postHookFunc) (int retVal___, const struct config_t *config); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_get_options_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_get_options_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_get_options_post[hIndex].func; retVal___ = postHookFunc(retVal___, config); } @@ -1690,14 +1690,14 @@ int HP_libconfig_get_options(const struct config_t *config) { int HP_libconfig_read_string(struct config_t *config, const char *str) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_read_string_pre ) { + if (HPMHooks.count.HP_libconfig_read_string_pre > 0) { int (*preHookFunc) (struct config_t **config, const char **str); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_read_string_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_read_string_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_read_string_pre[hIndex].func; retVal___ = preHookFunc(&config, &str); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1705,9 +1705,9 @@ int HP_libconfig_read_string(struct config_t *config, const char *str) { { retVal___ = HPMHooks.source.libconfig.read_string(config, str); } - if( HPMHooks.count.HP_libconfig_read_string_post ) { + if (HPMHooks.count.HP_libconfig_read_string_post > 0) { int (*postHookFunc) (int retVal___, struct config_t *config, const char *str); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_read_string_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_read_string_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_read_string_post[hIndex].func; retVal___ = postHookFunc(retVal___, config, str); } @@ -1717,14 +1717,14 @@ int HP_libconfig_read_string(struct config_t *config, const char *str) { int HP_libconfig_read_file_src(struct config_t *config, const char *filename) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_read_file_src_pre ) { + if (HPMHooks.count.HP_libconfig_read_file_src_pre > 0) { int (*preHookFunc) (struct config_t **config, const char **filename); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_read_file_src_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_read_file_src_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_read_file_src_pre[hIndex].func; retVal___ = preHookFunc(&config, &filename); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1732,9 +1732,9 @@ int HP_libconfig_read_file_src(struct config_t *config, const char *filename) { { retVal___ = HPMHooks.source.libconfig.read_file_src(config, filename); } - if( HPMHooks.count.HP_libconfig_read_file_src_post ) { + if (HPMHooks.count.HP_libconfig_read_file_src_post > 0) { int (*postHookFunc) (int retVal___, struct config_t *config, const char *filename); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_read_file_src_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_read_file_src_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_read_file_src_post[hIndex].func; retVal___ = postHookFunc(retVal___, config, filename); } @@ -1744,14 +1744,14 @@ int HP_libconfig_read_file_src(struct config_t *config, const char *filename) { int HP_libconfig_write_file(struct config_t *config, const char *filename) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_write_file_pre ) { + if (HPMHooks.count.HP_libconfig_write_file_pre > 0) { int (*preHookFunc) (struct config_t **config, const char **filename); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_write_file_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_write_file_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_write_file_pre[hIndex].func; retVal___ = preHookFunc(&config, &filename); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1759,9 +1759,9 @@ int HP_libconfig_write_file(struct config_t *config, const char *filename) { { retVal___ = HPMHooks.source.libconfig.write_file(config, filename); } - if( HPMHooks.count.HP_libconfig_write_file_post ) { + if (HPMHooks.count.HP_libconfig_write_file_post > 0) { int (*postHookFunc) (int retVal___, struct config_t *config, const char *filename); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_write_file_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_write_file_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_write_file_post[hIndex].func; retVal___ = postHookFunc(retVal___, config, filename); } @@ -1770,14 +1770,14 @@ int HP_libconfig_write_file(struct config_t *config, const char *filename) { } void HP_libconfig_set_destructor(struct config_t *config, void ( *destructor ) (void *)) { int hIndex = 0; - if( HPMHooks.count.HP_libconfig_set_destructor_pre ) { + if (HPMHooks.count.HP_libconfig_set_destructor_pre > 0) { void (*preHookFunc) (struct config_t **config, void ( **destructor ) (void *)); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_set_destructor_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_set_destructor_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_set_destructor_pre[hIndex].func; preHookFunc(&config, &destructor); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -1785,9 +1785,9 @@ void HP_libconfig_set_destructor(struct config_t *config, void ( *destructor ) ( { HPMHooks.source.libconfig.set_destructor(config, destructor); } - if( HPMHooks.count.HP_libconfig_set_destructor_post ) { + if (HPMHooks.count.HP_libconfig_set_destructor_post > 0) { void (*postHookFunc) (struct config_t *config, void ( *destructor ) (void *)); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_set_destructor_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_set_destructor_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_set_destructor_post[hIndex].func; postHookFunc(config, destructor); } @@ -1796,14 +1796,14 @@ void HP_libconfig_set_destructor(struct config_t *config, void ( *destructor ) ( } void HP_libconfig_set_include_dir(struct config_t *config, const char *include_dir) { int hIndex = 0; - if( HPMHooks.count.HP_libconfig_set_include_dir_pre ) { + if (HPMHooks.count.HP_libconfig_set_include_dir_pre > 0) { void (*preHookFunc) (struct config_t **config, const char **include_dir); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_set_include_dir_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_set_include_dir_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_set_include_dir_pre[hIndex].func; preHookFunc(&config, &include_dir); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -1811,9 +1811,9 @@ void HP_libconfig_set_include_dir(struct config_t *config, const char *include_d { HPMHooks.source.libconfig.set_include_dir(config, include_dir); } - if( HPMHooks.count.HP_libconfig_set_include_dir_post ) { + if (HPMHooks.count.HP_libconfig_set_include_dir_post > 0) { void (*postHookFunc) (struct config_t *config, const char *include_dir); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_set_include_dir_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_set_include_dir_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_set_include_dir_post[hIndex].func; postHookFunc(config, include_dir); } @@ -1822,14 +1822,14 @@ void HP_libconfig_set_include_dir(struct config_t *config, const char *include_d } void HP_libconfig_init(struct config_t *config) { int hIndex = 0; - if( HPMHooks.count.HP_libconfig_init_pre ) { + if (HPMHooks.count.HP_libconfig_init_pre > 0) { void (*preHookFunc) (struct config_t **config); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_init_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_init_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_init_pre[hIndex].func; preHookFunc(&config); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -1837,9 +1837,9 @@ void HP_libconfig_init(struct config_t *config) { { HPMHooks.source.libconfig.init(config); } - if( HPMHooks.count.HP_libconfig_init_post ) { + if (HPMHooks.count.HP_libconfig_init_post > 0) { void (*postHookFunc) (struct config_t *config); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_init_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_init_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_init_post[hIndex].func; postHookFunc(config); } @@ -1848,14 +1848,14 @@ void HP_libconfig_init(struct config_t *config) { } void HP_libconfig_destroy(struct config_t *config) { int hIndex = 0; - if( HPMHooks.count.HP_libconfig_destroy_pre ) { + if (HPMHooks.count.HP_libconfig_destroy_pre > 0) { void (*preHookFunc) (struct config_t **config); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_destroy_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_destroy_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_destroy_pre[hIndex].func; preHookFunc(&config); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -1863,9 +1863,9 @@ void HP_libconfig_destroy(struct config_t *config) { { HPMHooks.source.libconfig.destroy(config); } - if( HPMHooks.count.HP_libconfig_destroy_post ) { + if (HPMHooks.count.HP_libconfig_destroy_post > 0) { void (*postHookFunc) (struct config_t *config); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_destroy_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_destroy_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_destroy_post[hIndex].func; postHookFunc(config); } @@ -1875,14 +1875,14 @@ void HP_libconfig_destroy(struct config_t *config) { int HP_libconfig_setting_get_int(const struct config_setting_t *setting) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_get_int_pre ) { + if (HPMHooks.count.HP_libconfig_setting_get_int_pre > 0) { int (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_int_pre[hIndex].func; retVal___ = preHookFunc(&setting); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1890,9 +1890,9 @@ int HP_libconfig_setting_get_int(const struct config_setting_t *setting) { { retVal___ = HPMHooks.source.libconfig.setting_get_int(setting); } - if( HPMHooks.count.HP_libconfig_setting_get_int_post ) { + if (HPMHooks.count.HP_libconfig_setting_get_int_post > 0) { int (*postHookFunc) (int retVal___, const struct config_setting_t *setting); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_int_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting); } @@ -1902,14 +1902,14 @@ int HP_libconfig_setting_get_int(const struct config_setting_t *setting) { int64 HP_libconfig_setting_get_int64(const struct config_setting_t *setting) { int hIndex = 0; int64 retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_get_int64_pre ) { + if (HPMHooks.count.HP_libconfig_setting_get_int64_pre > 0) { int64 (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int64_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int64_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_int64_pre[hIndex].func; retVal___ = preHookFunc(&setting); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1917,9 +1917,9 @@ int64 HP_libconfig_setting_get_int64(const struct config_setting_t *setting) { { retVal___ = HPMHooks.source.libconfig.setting_get_int64(setting); } - if( HPMHooks.count.HP_libconfig_setting_get_int64_post ) { + if (HPMHooks.count.HP_libconfig_setting_get_int64_post > 0) { int64 (*postHookFunc) (int64 retVal___, const struct config_setting_t *setting); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int64_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int64_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_int64_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting); } @@ -1929,14 +1929,14 @@ int64 HP_libconfig_setting_get_int64(const struct config_setting_t *setting) { double HP_libconfig_setting_get_float(const struct config_setting_t *setting) { int hIndex = 0; double retVal___ = 0.; - if( HPMHooks.count.HP_libconfig_setting_get_float_pre ) { + if (HPMHooks.count.HP_libconfig_setting_get_float_pre > 0) { double (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_float_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_float_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_float_pre[hIndex].func; retVal___ = preHookFunc(&setting); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1944,9 +1944,9 @@ double HP_libconfig_setting_get_float(const struct config_setting_t *setting) { { retVal___ = HPMHooks.source.libconfig.setting_get_float(setting); } - if( HPMHooks.count.HP_libconfig_setting_get_float_post ) { + if (HPMHooks.count.HP_libconfig_setting_get_float_post > 0) { double (*postHookFunc) (double retVal___, const struct config_setting_t *setting); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_float_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_float_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_float_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting); } @@ -1956,14 +1956,14 @@ double HP_libconfig_setting_get_float(const struct config_setting_t *setting) { int HP_libconfig_setting_get_bool(const struct config_setting_t *setting) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_get_bool_pre ) { + if (HPMHooks.count.HP_libconfig_setting_get_bool_pre > 0) { int (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_bool_pre[hIndex].func; retVal___ = preHookFunc(&setting); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1971,9 +1971,9 @@ int HP_libconfig_setting_get_bool(const struct config_setting_t *setting) { { retVal___ = HPMHooks.source.libconfig.setting_get_bool(setting); } - if( HPMHooks.count.HP_libconfig_setting_get_bool_post ) { + if (HPMHooks.count.HP_libconfig_setting_get_bool_post > 0) { int (*postHookFunc) (int retVal___, const struct config_setting_t *setting); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_bool_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting); } @@ -1983,14 +1983,14 @@ int HP_libconfig_setting_get_bool(const struct config_setting_t *setting) { const char* HP_libconfig_setting_get_string(const struct config_setting_t *setting) { int hIndex = 0; const char* retVal___ = NULL; - if( HPMHooks.count.HP_libconfig_setting_get_string_pre ) { + if (HPMHooks.count.HP_libconfig_setting_get_string_pre > 0) { const char* (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_string_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_string_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_string_pre[hIndex].func; retVal___ = preHookFunc(&setting); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -1998,9 +1998,9 @@ const char* HP_libconfig_setting_get_string(const struct config_setting_t *setti { retVal___ = HPMHooks.source.libconfig.setting_get_string(setting); } - if( HPMHooks.count.HP_libconfig_setting_get_string_post ) { + if (HPMHooks.count.HP_libconfig_setting_get_string_post > 0) { const char* (*postHookFunc) (const char* retVal___, const struct config_setting_t *setting); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_string_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_string_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_string_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting); } @@ -2010,14 +2010,14 @@ const char* HP_libconfig_setting_get_string(const struct config_setting_t *setti struct config_setting_t* HP_libconfig_setting_lookup(struct config_setting_t *setting, const char *name) { int hIndex = 0; struct config_setting_t* retVal___ = NULL; - if( HPMHooks.count.HP_libconfig_setting_lookup_pre ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_pre > 0) { struct config_setting_t* (*preHookFunc) (struct config_setting_t **setting, const char **name); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_pre[hIndex].func; retVal___ = preHookFunc(&setting, &name); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2025,9 +2025,9 @@ struct config_setting_t* HP_libconfig_setting_lookup(struct config_setting_t *se { retVal___ = HPMHooks.source.libconfig.setting_lookup(setting, name); } - if( HPMHooks.count.HP_libconfig_setting_lookup_post ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_post > 0) { struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *setting, const char *name); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, name); } @@ -2037,14 +2037,14 @@ struct config_setting_t* HP_libconfig_setting_lookup(struct config_setting_t *se int HP_libconfig_setting_lookup_int(const struct config_setting_t *setting, const char *name, int *value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_lookup_int_pre ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_int_pre > 0) { int (*preHookFunc) (const struct config_setting_t **setting, const char **name, int **value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_int_pre[hIndex].func; retVal___ = preHookFunc(&setting, &name, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2052,9 +2052,9 @@ int HP_libconfig_setting_lookup_int(const struct config_setting_t *setting, cons { retVal___ = HPMHooks.source.libconfig.setting_lookup_int(setting, name, value); } - if( HPMHooks.count.HP_libconfig_setting_lookup_int_post ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_int_post > 0) { int (*postHookFunc) (int retVal___, const struct config_setting_t *setting, const char *name, int *value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_int_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, name, value); } @@ -2064,14 +2064,14 @@ int HP_libconfig_setting_lookup_int(const struct config_setting_t *setting, cons int HP_libconfig_setting_lookup_int64(const struct config_setting_t *setting, const char *name, int64 *value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_lookup_int64_pre ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_int64_pre > 0) { int (*preHookFunc) (const struct config_setting_t **setting, const char **name, int64 **value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int64_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int64_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_int64_pre[hIndex].func; retVal___ = preHookFunc(&setting, &name, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2079,9 +2079,9 @@ int HP_libconfig_setting_lookup_int64(const struct config_setting_t *setting, co { retVal___ = HPMHooks.source.libconfig.setting_lookup_int64(setting, name, value); } - if( HPMHooks.count.HP_libconfig_setting_lookup_int64_post ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_int64_post > 0) { int (*postHookFunc) (int retVal___, const struct config_setting_t *setting, const char *name, int64 *value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int64_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int64_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_int64_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, name, value); } @@ -2091,14 +2091,14 @@ int HP_libconfig_setting_lookup_int64(const struct config_setting_t *setting, co int HP_libconfig_setting_lookup_float(const struct config_setting_t *setting, const char *name, double *value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_lookup_float_pre ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_float_pre > 0) { int (*preHookFunc) (const struct config_setting_t **setting, const char **name, double **value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_float_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_float_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_float_pre[hIndex].func; retVal___ = preHookFunc(&setting, &name, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2106,9 +2106,9 @@ int HP_libconfig_setting_lookup_float(const struct config_setting_t *setting, co { retVal___ = HPMHooks.source.libconfig.setting_lookup_float(setting, name, value); } - if( HPMHooks.count.HP_libconfig_setting_lookup_float_post ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_float_post > 0) { int (*postHookFunc) (int retVal___, const struct config_setting_t *setting, const char *name, double *value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_float_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_float_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_float_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, name, value); } @@ -2118,14 +2118,14 @@ int HP_libconfig_setting_lookup_float(const struct config_setting_t *setting, co int HP_libconfig_setting_lookup_bool(const struct config_setting_t *setting, const char *name, int *value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_lookup_bool_pre ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_bool_pre > 0) { int (*preHookFunc) (const struct config_setting_t **setting, const char **name, int **value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_bool_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_bool_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_bool_pre[hIndex].func; retVal___ = preHookFunc(&setting, &name, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2133,9 +2133,9 @@ int HP_libconfig_setting_lookup_bool(const struct config_setting_t *setting, con { retVal___ = HPMHooks.source.libconfig.setting_lookup_bool(setting, name, value); } - if( HPMHooks.count.HP_libconfig_setting_lookup_bool_post ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_bool_post > 0) { int (*postHookFunc) (int retVal___, const struct config_setting_t *setting, const char *name, int *value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_bool_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_bool_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_bool_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, name, value); } @@ -2145,14 +2145,14 @@ int HP_libconfig_setting_lookup_bool(const struct config_setting_t *setting, con int HP_libconfig_setting_lookup_string(const struct config_setting_t *setting, const char *name, const char **value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_lookup_string_pre ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_string_pre > 0) { int (*preHookFunc) (const struct config_setting_t **setting, const char **name, const char ***value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_string_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_string_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_string_pre[hIndex].func; retVal___ = preHookFunc(&setting, &name, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2160,9 +2160,9 @@ int HP_libconfig_setting_lookup_string(const struct config_setting_t *setting, c { retVal___ = HPMHooks.source.libconfig.setting_lookup_string(setting, name, value); } - if( HPMHooks.count.HP_libconfig_setting_lookup_string_post ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_string_post > 0) { int (*postHookFunc) (int retVal___, const struct config_setting_t *setting, const char *name, const char **value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_string_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_string_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_string_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, name, value); } @@ -2172,14 +2172,14 @@ int HP_libconfig_setting_lookup_string(const struct config_setting_t *setting, c int HP_libconfig_setting_set_int(struct config_setting_t *setting, int value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_set_int_pre ) { + if (HPMHooks.count.HP_libconfig_setting_set_int_pre > 0) { int (*preHookFunc) (struct config_setting_t **setting, int *value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_int_pre[hIndex].func; retVal___ = preHookFunc(&setting, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2187,9 +2187,9 @@ int HP_libconfig_setting_set_int(struct config_setting_t *setting, int value) { { retVal___ = HPMHooks.source.libconfig.setting_set_int(setting, value); } - if( HPMHooks.count.HP_libconfig_setting_set_int_post ) { + if (HPMHooks.count.HP_libconfig_setting_set_int_post > 0) { int (*postHookFunc) (int retVal___, struct config_setting_t *setting, int value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_int_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, value); } @@ -2199,14 +2199,14 @@ int HP_libconfig_setting_set_int(struct config_setting_t *setting, int value) { int HP_libconfig_setting_set_int64(struct config_setting_t *setting, int64 value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_set_int64_pre ) { + if (HPMHooks.count.HP_libconfig_setting_set_int64_pre > 0) { int (*preHookFunc) (struct config_setting_t **setting, int64 *value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int64_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int64_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_int64_pre[hIndex].func; retVal___ = preHookFunc(&setting, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2214,9 +2214,9 @@ int HP_libconfig_setting_set_int64(struct config_setting_t *setting, int64 value { retVal___ = HPMHooks.source.libconfig.setting_set_int64(setting, value); } - if( HPMHooks.count.HP_libconfig_setting_set_int64_post ) { + if (HPMHooks.count.HP_libconfig_setting_set_int64_post > 0) { int (*postHookFunc) (int retVal___, struct config_setting_t *setting, int64 value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int64_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int64_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_int64_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, value); } @@ -2226,14 +2226,14 @@ int HP_libconfig_setting_set_int64(struct config_setting_t *setting, int64 value int HP_libconfig_setting_set_float(struct config_setting_t *setting, double value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_set_float_pre ) { + if (HPMHooks.count.HP_libconfig_setting_set_float_pre > 0) { int (*preHookFunc) (struct config_setting_t **setting, double *value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_float_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_float_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_float_pre[hIndex].func; retVal___ = preHookFunc(&setting, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2241,9 +2241,9 @@ int HP_libconfig_setting_set_float(struct config_setting_t *setting, double valu { retVal___ = HPMHooks.source.libconfig.setting_set_float(setting, value); } - if( HPMHooks.count.HP_libconfig_setting_set_float_post ) { + if (HPMHooks.count.HP_libconfig_setting_set_float_post > 0) { int (*postHookFunc) (int retVal___, struct config_setting_t *setting, double value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_float_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_float_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_float_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, value); } @@ -2253,14 +2253,14 @@ int HP_libconfig_setting_set_float(struct config_setting_t *setting, double valu int HP_libconfig_setting_set_bool(struct config_setting_t *setting, int value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_set_bool_pre ) { + if (HPMHooks.count.HP_libconfig_setting_set_bool_pre > 0) { int (*preHookFunc) (struct config_setting_t **setting, int *value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_bool_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_bool_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_bool_pre[hIndex].func; retVal___ = preHookFunc(&setting, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2268,9 +2268,9 @@ int HP_libconfig_setting_set_bool(struct config_setting_t *setting, int value) { { retVal___ = HPMHooks.source.libconfig.setting_set_bool(setting, value); } - if( HPMHooks.count.HP_libconfig_setting_set_bool_post ) { + if (HPMHooks.count.HP_libconfig_setting_set_bool_post > 0) { int (*postHookFunc) (int retVal___, struct config_setting_t *setting, int value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_bool_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_bool_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_bool_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, value); } @@ -2280,14 +2280,14 @@ int HP_libconfig_setting_set_bool(struct config_setting_t *setting, int value) { int HP_libconfig_setting_set_string(struct config_setting_t *setting, const char *value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_set_string_pre ) { + if (HPMHooks.count.HP_libconfig_setting_set_string_pre > 0) { int (*preHookFunc) (struct config_setting_t **setting, const char **value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_string_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_string_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_string_pre[hIndex].func; retVal___ = preHookFunc(&setting, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2295,9 +2295,9 @@ int HP_libconfig_setting_set_string(struct config_setting_t *setting, const char { retVal___ = HPMHooks.source.libconfig.setting_set_string(setting, value); } - if( HPMHooks.count.HP_libconfig_setting_set_string_post ) { + if (HPMHooks.count.HP_libconfig_setting_set_string_post > 0) { int (*postHookFunc) (int retVal___, struct config_setting_t *setting, const char *value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_string_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_string_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_string_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, value); } @@ -2307,14 +2307,14 @@ int HP_libconfig_setting_set_string(struct config_setting_t *setting, const char int HP_libconfig_setting_set_format(struct config_setting_t *setting, short format) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_set_format_pre ) { + if (HPMHooks.count.HP_libconfig_setting_set_format_pre > 0) { int (*preHookFunc) (struct config_setting_t **setting, short *format); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_format_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_format_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_format_pre[hIndex].func; retVal___ = preHookFunc(&setting, &format); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2322,9 +2322,9 @@ int HP_libconfig_setting_set_format(struct config_setting_t *setting, short form { retVal___ = HPMHooks.source.libconfig.setting_set_format(setting, format); } - if( HPMHooks.count.HP_libconfig_setting_set_format_post ) { + if (HPMHooks.count.HP_libconfig_setting_set_format_post > 0) { int (*postHookFunc) (int retVal___, struct config_setting_t *setting, short format); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_format_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_format_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_format_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, format); } @@ -2334,14 +2334,14 @@ int HP_libconfig_setting_set_format(struct config_setting_t *setting, short form short HP_libconfig_setting_get_format(const struct config_setting_t *setting) { int hIndex = 0; short retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_get_format_pre ) { + if (HPMHooks.count.HP_libconfig_setting_get_format_pre > 0) { short (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_format_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_format_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_format_pre[hIndex].func; retVal___ = preHookFunc(&setting); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2349,9 +2349,9 @@ short HP_libconfig_setting_get_format(const struct config_setting_t *setting) { { retVal___ = HPMHooks.source.libconfig.setting_get_format(setting); } - if( HPMHooks.count.HP_libconfig_setting_get_format_post ) { + if (HPMHooks.count.HP_libconfig_setting_get_format_post > 0) { short (*postHookFunc) (short retVal___, const struct config_setting_t *setting); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_format_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_format_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_format_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting); } @@ -2361,14 +2361,14 @@ short HP_libconfig_setting_get_format(const struct config_setting_t *setting) { int HP_libconfig_setting_get_int_elem(const struct config_setting_t *setting, int idx) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_get_int_elem_pre ) { + if (HPMHooks.count.HP_libconfig_setting_get_int_elem_pre > 0) { int (*preHookFunc) (const struct config_setting_t **setting, int *idx); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int_elem_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int_elem_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_int_elem_pre[hIndex].func; retVal___ = preHookFunc(&setting, &idx); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2376,9 +2376,9 @@ int HP_libconfig_setting_get_int_elem(const struct config_setting_t *setting, in { retVal___ = HPMHooks.source.libconfig.setting_get_int_elem(setting, idx); } - if( HPMHooks.count.HP_libconfig_setting_get_int_elem_post ) { + if (HPMHooks.count.HP_libconfig_setting_get_int_elem_post > 0) { int (*postHookFunc) (int retVal___, const struct config_setting_t *setting, int idx); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int_elem_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int_elem_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_int_elem_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, idx); } @@ -2388,14 +2388,14 @@ int HP_libconfig_setting_get_int_elem(const struct config_setting_t *setting, in int64 HP_libconfig_setting_get_int64_elem(const struct config_setting_t *setting, int idx) { int hIndex = 0; int64 retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_get_int64_elem_pre ) { + if (HPMHooks.count.HP_libconfig_setting_get_int64_elem_pre > 0) { int64 (*preHookFunc) (const struct config_setting_t **setting, int *idx); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int64_elem_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int64_elem_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_int64_elem_pre[hIndex].func; retVal___ = preHookFunc(&setting, &idx); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2403,9 +2403,9 @@ int64 HP_libconfig_setting_get_int64_elem(const struct config_setting_t *setting { retVal___ = HPMHooks.source.libconfig.setting_get_int64_elem(setting, idx); } - if( HPMHooks.count.HP_libconfig_setting_get_int64_elem_post ) { + if (HPMHooks.count.HP_libconfig_setting_get_int64_elem_post > 0) { int64 (*postHookFunc) (int64 retVal___, const struct config_setting_t *setting, int idx); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int64_elem_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int64_elem_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_int64_elem_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, idx); } @@ -2415,14 +2415,14 @@ int64 HP_libconfig_setting_get_int64_elem(const struct config_setting_t *setting double HP_libconfig_setting_get_float_elem(const struct config_setting_t *setting, int idx) { int hIndex = 0; double retVal___ = 0.; - if( HPMHooks.count.HP_libconfig_setting_get_float_elem_pre ) { + if (HPMHooks.count.HP_libconfig_setting_get_float_elem_pre > 0) { double (*preHookFunc) (const struct config_setting_t **setting, int *idx); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_float_elem_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_float_elem_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_float_elem_pre[hIndex].func; retVal___ = preHookFunc(&setting, &idx); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2430,9 +2430,9 @@ double HP_libconfig_setting_get_float_elem(const struct config_setting_t *settin { retVal___ = HPMHooks.source.libconfig.setting_get_float_elem(setting, idx); } - if( HPMHooks.count.HP_libconfig_setting_get_float_elem_post ) { + if (HPMHooks.count.HP_libconfig_setting_get_float_elem_post > 0) { double (*postHookFunc) (double retVal___, const struct config_setting_t *setting, int idx); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_float_elem_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_float_elem_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_float_elem_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, idx); } @@ -2442,14 +2442,14 @@ double HP_libconfig_setting_get_float_elem(const struct config_setting_t *settin int HP_libconfig_setting_get_bool_elem(const struct config_setting_t *setting, int idx) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_get_bool_elem_pre ) { + if (HPMHooks.count.HP_libconfig_setting_get_bool_elem_pre > 0) { int (*preHookFunc) (const struct config_setting_t **setting, int *idx); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_elem_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_elem_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_bool_elem_pre[hIndex].func; retVal___ = preHookFunc(&setting, &idx); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2457,9 +2457,9 @@ int HP_libconfig_setting_get_bool_elem(const struct config_setting_t *setting, i { retVal___ = HPMHooks.source.libconfig.setting_get_bool_elem(setting, idx); } - if( HPMHooks.count.HP_libconfig_setting_get_bool_elem_post ) { + if (HPMHooks.count.HP_libconfig_setting_get_bool_elem_post > 0) { int (*postHookFunc) (int retVal___, const struct config_setting_t *setting, int idx); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_elem_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_elem_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_bool_elem_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, idx); } @@ -2469,14 +2469,14 @@ int HP_libconfig_setting_get_bool_elem(const struct config_setting_t *setting, i const char* HP_libconfig_setting_get_string_elem(const struct config_setting_t *setting, int idx) { int hIndex = 0; const char* retVal___ = NULL; - if( HPMHooks.count.HP_libconfig_setting_get_string_elem_pre ) { + if (HPMHooks.count.HP_libconfig_setting_get_string_elem_pre > 0) { const char* (*preHookFunc) (const struct config_setting_t **setting, int *idx); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_string_elem_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_string_elem_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_string_elem_pre[hIndex].func; retVal___ = preHookFunc(&setting, &idx); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2484,9 +2484,9 @@ const char* HP_libconfig_setting_get_string_elem(const struct config_setting_t * { retVal___ = HPMHooks.source.libconfig.setting_get_string_elem(setting, idx); } - if( HPMHooks.count.HP_libconfig_setting_get_string_elem_post ) { + if (HPMHooks.count.HP_libconfig_setting_get_string_elem_post > 0) { const char* (*postHookFunc) (const char* retVal___, const struct config_setting_t *setting, int idx); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_string_elem_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_string_elem_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_string_elem_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, idx); } @@ -2496,14 +2496,14 @@ const char* HP_libconfig_setting_get_string_elem(const struct config_setting_t * struct config_setting_t* HP_libconfig_setting_set_int_elem(struct config_setting_t *setting, int idx, int value) { int hIndex = 0; struct config_setting_t* retVal___ = NULL; - if( HPMHooks.count.HP_libconfig_setting_set_int_elem_pre ) { + if (HPMHooks.count.HP_libconfig_setting_set_int_elem_pre > 0) { struct config_setting_t* (*preHookFunc) (struct config_setting_t **setting, int *idx, int *value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int_elem_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int_elem_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_int_elem_pre[hIndex].func; retVal___ = preHookFunc(&setting, &idx, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2511,9 +2511,9 @@ struct config_setting_t* HP_libconfig_setting_set_int_elem(struct config_setting { retVal___ = HPMHooks.source.libconfig.setting_set_int_elem(setting, idx, value); } - if( HPMHooks.count.HP_libconfig_setting_set_int_elem_post ) { + if (HPMHooks.count.HP_libconfig_setting_set_int_elem_post > 0) { struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *setting, int idx, int value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int_elem_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int_elem_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_int_elem_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, idx, value); } @@ -2523,14 +2523,14 @@ struct config_setting_t* HP_libconfig_setting_set_int_elem(struct config_setting struct config_setting_t* HP_libconfig_setting_set_int64_elem(struct config_setting_t *setting, int idx, int64 value) { int hIndex = 0; struct config_setting_t* retVal___ = NULL; - if( HPMHooks.count.HP_libconfig_setting_set_int64_elem_pre ) { + if (HPMHooks.count.HP_libconfig_setting_set_int64_elem_pre > 0) { struct config_setting_t* (*preHookFunc) (struct config_setting_t **setting, int *idx, int64 *value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int64_elem_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int64_elem_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_int64_elem_pre[hIndex].func; retVal___ = preHookFunc(&setting, &idx, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2538,9 +2538,9 @@ struct config_setting_t* HP_libconfig_setting_set_int64_elem(struct config_setti { retVal___ = HPMHooks.source.libconfig.setting_set_int64_elem(setting, idx, value); } - if( HPMHooks.count.HP_libconfig_setting_set_int64_elem_post ) { + if (HPMHooks.count.HP_libconfig_setting_set_int64_elem_post > 0) { struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *setting, int idx, int64 value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int64_elem_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int64_elem_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_int64_elem_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, idx, value); } @@ -2550,14 +2550,14 @@ struct config_setting_t* HP_libconfig_setting_set_int64_elem(struct config_setti struct config_setting_t* HP_libconfig_setting_set_float_elem(struct config_setting_t *setting, int idx, double value) { int hIndex = 0; struct config_setting_t* retVal___ = NULL; - if( HPMHooks.count.HP_libconfig_setting_set_float_elem_pre ) { + if (HPMHooks.count.HP_libconfig_setting_set_float_elem_pre > 0) { struct config_setting_t* (*preHookFunc) (struct config_setting_t **setting, int *idx, double *value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_float_elem_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_float_elem_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_float_elem_pre[hIndex].func; retVal___ = preHookFunc(&setting, &idx, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2565,9 +2565,9 @@ struct config_setting_t* HP_libconfig_setting_set_float_elem(struct config_setti { retVal___ = HPMHooks.source.libconfig.setting_set_float_elem(setting, idx, value); } - if( HPMHooks.count.HP_libconfig_setting_set_float_elem_post ) { + if (HPMHooks.count.HP_libconfig_setting_set_float_elem_post > 0) { struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *setting, int idx, double value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_float_elem_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_float_elem_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_float_elem_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, idx, value); } @@ -2577,14 +2577,14 @@ struct config_setting_t* HP_libconfig_setting_set_float_elem(struct config_setti struct config_setting_t* HP_libconfig_setting_set_bool_elem(struct config_setting_t *setting, int idx, int value) { int hIndex = 0; struct config_setting_t* retVal___ = NULL; - if( HPMHooks.count.HP_libconfig_setting_set_bool_elem_pre ) { + if (HPMHooks.count.HP_libconfig_setting_set_bool_elem_pre > 0) { struct config_setting_t* (*preHookFunc) (struct config_setting_t **setting, int *idx, int *value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_bool_elem_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_bool_elem_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_bool_elem_pre[hIndex].func; retVal___ = preHookFunc(&setting, &idx, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2592,9 +2592,9 @@ struct config_setting_t* HP_libconfig_setting_set_bool_elem(struct config_settin { retVal___ = HPMHooks.source.libconfig.setting_set_bool_elem(setting, idx, value); } - if( HPMHooks.count.HP_libconfig_setting_set_bool_elem_post ) { + if (HPMHooks.count.HP_libconfig_setting_set_bool_elem_post > 0) { struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *setting, int idx, int value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_bool_elem_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_bool_elem_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_bool_elem_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, idx, value); } @@ -2604,14 +2604,14 @@ struct config_setting_t* HP_libconfig_setting_set_bool_elem(struct config_settin struct config_setting_t* HP_libconfig_setting_set_string_elem(struct config_setting_t *setting, int idx, const char *value) { int hIndex = 0; struct config_setting_t* retVal___ = NULL; - if( HPMHooks.count.HP_libconfig_setting_set_string_elem_pre ) { + if (HPMHooks.count.HP_libconfig_setting_set_string_elem_pre > 0) { struct config_setting_t* (*preHookFunc) (struct config_setting_t **setting, int *idx, const char **value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_string_elem_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_string_elem_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_string_elem_pre[hIndex].func; retVal___ = preHookFunc(&setting, &idx, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2619,9 +2619,9 @@ struct config_setting_t* HP_libconfig_setting_set_string_elem(struct config_sett { retVal___ = HPMHooks.source.libconfig.setting_set_string_elem(setting, idx, value); } - if( HPMHooks.count.HP_libconfig_setting_set_string_elem_post ) { + if (HPMHooks.count.HP_libconfig_setting_set_string_elem_post > 0) { struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *setting, int idx, const char *value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_string_elem_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_string_elem_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_string_elem_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, idx, value); } @@ -2631,14 +2631,14 @@ struct config_setting_t* HP_libconfig_setting_set_string_elem(struct config_sett int HP_libconfig_setting_index(const struct config_setting_t *setting) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_index_pre ) { + if (HPMHooks.count.HP_libconfig_setting_index_pre > 0) { int (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_index_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_index_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_index_pre[hIndex].func; retVal___ = preHookFunc(&setting); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2646,9 +2646,9 @@ int HP_libconfig_setting_index(const struct config_setting_t *setting) { { retVal___ = HPMHooks.source.libconfig.setting_index(setting); } - if( HPMHooks.count.HP_libconfig_setting_index_post ) { + if (HPMHooks.count.HP_libconfig_setting_index_post > 0) { int (*postHookFunc) (int retVal___, const struct config_setting_t *setting); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_index_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_index_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_index_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting); } @@ -2658,14 +2658,14 @@ int HP_libconfig_setting_index(const struct config_setting_t *setting) { int HP_libconfig_setting_length(const struct config_setting_t *setting) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_length_pre ) { + if (HPMHooks.count.HP_libconfig_setting_length_pre > 0) { int (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_length_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_length_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_length_pre[hIndex].func; retVal___ = preHookFunc(&setting); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2673,9 +2673,9 @@ int HP_libconfig_setting_length(const struct config_setting_t *setting) { { retVal___ = HPMHooks.source.libconfig.setting_length(setting); } - if( HPMHooks.count.HP_libconfig_setting_length_post ) { + if (HPMHooks.count.HP_libconfig_setting_length_post > 0) { int (*postHookFunc) (int retVal___, const struct config_setting_t *setting); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_length_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_length_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_length_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting); } @@ -2685,14 +2685,14 @@ int HP_libconfig_setting_length(const struct config_setting_t *setting) { struct config_setting_t* HP_libconfig_setting_get_elem(const struct config_setting_t *setting, unsigned int idx) { int hIndex = 0; struct config_setting_t* retVal___ = NULL; - if( HPMHooks.count.HP_libconfig_setting_get_elem_pre ) { + if (HPMHooks.count.HP_libconfig_setting_get_elem_pre > 0) { struct config_setting_t* (*preHookFunc) (const struct config_setting_t **setting, unsigned int *idx); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_elem_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_elem_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_elem_pre[hIndex].func; retVal___ = preHookFunc(&setting, &idx); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2700,9 +2700,9 @@ struct config_setting_t* HP_libconfig_setting_get_elem(const struct config_setti { retVal___ = HPMHooks.source.libconfig.setting_get_elem(setting, idx); } - if( HPMHooks.count.HP_libconfig_setting_get_elem_post ) { + if (HPMHooks.count.HP_libconfig_setting_get_elem_post > 0) { struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, const struct config_setting_t *setting, unsigned int idx); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_elem_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_elem_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_elem_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, idx); } @@ -2712,14 +2712,14 @@ struct config_setting_t* HP_libconfig_setting_get_elem(const struct config_setti struct config_setting_t* HP_libconfig_setting_get_member(const struct config_setting_t *setting, const char *name) { int hIndex = 0; struct config_setting_t* retVal___ = NULL; - if( HPMHooks.count.HP_libconfig_setting_get_member_pre ) { + if (HPMHooks.count.HP_libconfig_setting_get_member_pre > 0) { struct config_setting_t* (*preHookFunc) (const struct config_setting_t **setting, const char **name); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_member_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_member_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_member_pre[hIndex].func; retVal___ = preHookFunc(&setting, &name); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2727,9 +2727,9 @@ struct config_setting_t* HP_libconfig_setting_get_member(const struct config_set { retVal___ = HPMHooks.source.libconfig.setting_get_member(setting, name); } - if( HPMHooks.count.HP_libconfig_setting_get_member_post ) { + if (HPMHooks.count.HP_libconfig_setting_get_member_post > 0) { struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, const struct config_setting_t *setting, const char *name); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_member_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_member_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_member_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, name); } @@ -2739,14 +2739,14 @@ struct config_setting_t* HP_libconfig_setting_get_member(const struct config_set struct config_setting_t* HP_libconfig_setting_add(struct config_setting_t *parent, const char *name, int type) { int hIndex = 0; struct config_setting_t* retVal___ = NULL; - if( HPMHooks.count.HP_libconfig_setting_add_pre ) { + if (HPMHooks.count.HP_libconfig_setting_add_pre > 0) { struct config_setting_t* (*preHookFunc) (struct config_setting_t **parent, const char **name, int *type); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_add_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_add_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_add_pre[hIndex].func; retVal___ = preHookFunc(&parent, &name, &type); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2754,9 +2754,9 @@ struct config_setting_t* HP_libconfig_setting_add(struct config_setting_t *paren { retVal___ = HPMHooks.source.libconfig.setting_add(parent, name, type); } - if( HPMHooks.count.HP_libconfig_setting_add_post ) { + if (HPMHooks.count.HP_libconfig_setting_add_post > 0) { struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *parent, const char *name, int type); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_add_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_add_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_add_post[hIndex].func; retVal___ = postHookFunc(retVal___, parent, name, type); } @@ -2766,14 +2766,14 @@ struct config_setting_t* HP_libconfig_setting_add(struct config_setting_t *paren int HP_libconfig_setting_remove(struct config_setting_t *parent, const char *name) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_remove_pre ) { + if (HPMHooks.count.HP_libconfig_setting_remove_pre > 0) { int (*preHookFunc) (struct config_setting_t **parent, const char **name); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_remove_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_remove_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_remove_pre[hIndex].func; retVal___ = preHookFunc(&parent, &name); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2781,9 +2781,9 @@ int HP_libconfig_setting_remove(struct config_setting_t *parent, const char *nam { retVal___ = HPMHooks.source.libconfig.setting_remove(parent, name); } - if( HPMHooks.count.HP_libconfig_setting_remove_post ) { + if (HPMHooks.count.HP_libconfig_setting_remove_post > 0) { int (*postHookFunc) (int retVal___, struct config_setting_t *parent, const char *name); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_remove_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_remove_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_remove_post[hIndex].func; retVal___ = postHookFunc(retVal___, parent, name); } @@ -2793,14 +2793,14 @@ int HP_libconfig_setting_remove(struct config_setting_t *parent, const char *nam int HP_libconfig_setting_remove_elem(struct config_setting_t *parent, unsigned int idx) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_remove_elem_pre ) { + if (HPMHooks.count.HP_libconfig_setting_remove_elem_pre > 0) { int (*preHookFunc) (struct config_setting_t **parent, unsigned int *idx); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_remove_elem_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_remove_elem_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_remove_elem_pre[hIndex].func; retVal___ = preHookFunc(&parent, &idx); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2808,9 +2808,9 @@ int HP_libconfig_setting_remove_elem(struct config_setting_t *parent, unsigned i { retVal___ = HPMHooks.source.libconfig.setting_remove_elem(parent, idx); } - if( HPMHooks.count.HP_libconfig_setting_remove_elem_post ) { + if (HPMHooks.count.HP_libconfig_setting_remove_elem_post > 0) { int (*postHookFunc) (int retVal___, struct config_setting_t *parent, unsigned int idx); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_remove_elem_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_remove_elem_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_remove_elem_post[hIndex].func; retVal___ = postHookFunc(retVal___, parent, idx); } @@ -2819,14 +2819,14 @@ int HP_libconfig_setting_remove_elem(struct config_setting_t *parent, unsigned i } void HP_libconfig_setting_set_hook(struct config_setting_t *setting, void *hook) { int hIndex = 0; - if( HPMHooks.count.HP_libconfig_setting_set_hook_pre ) { + if (HPMHooks.count.HP_libconfig_setting_set_hook_pre > 0) { void (*preHookFunc) (struct config_setting_t **setting, void **hook); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_hook_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_hook_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_hook_pre[hIndex].func; preHookFunc(&setting, &hook); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -2834,9 +2834,9 @@ void HP_libconfig_setting_set_hook(struct config_setting_t *setting, void *hook) { HPMHooks.source.libconfig.setting_set_hook(setting, hook); } - if( HPMHooks.count.HP_libconfig_setting_set_hook_post ) { + if (HPMHooks.count.HP_libconfig_setting_set_hook_post > 0) { void (*postHookFunc) (struct config_setting_t *setting, void *hook); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_hook_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_hook_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_hook_post[hIndex].func; postHookFunc(setting, hook); } @@ -2846,14 +2846,14 @@ void HP_libconfig_setting_set_hook(struct config_setting_t *setting, void *hook) struct config_setting_t* HP_libconfig_lookup(const struct config_t *config, const char *filepath) { int hIndex = 0; struct config_setting_t* retVal___ = NULL; - if( HPMHooks.count.HP_libconfig_lookup_pre ) { + if (HPMHooks.count.HP_libconfig_lookup_pre > 0) { struct config_setting_t* (*preHookFunc) (const struct config_t **config, const char **filepath); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_lookup_pre[hIndex].func; retVal___ = preHookFunc(&config, &filepath); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2861,9 +2861,9 @@ struct config_setting_t* HP_libconfig_lookup(const struct config_t *config, cons { retVal___ = HPMHooks.source.libconfig.lookup(config, filepath); } - if( HPMHooks.count.HP_libconfig_lookup_post ) { + if (HPMHooks.count.HP_libconfig_lookup_post > 0) { struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, const struct config_t *config, const char *filepath); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_lookup_post[hIndex].func; retVal___ = postHookFunc(retVal___, config, filepath); } @@ -2873,14 +2873,14 @@ struct config_setting_t* HP_libconfig_lookup(const struct config_t *config, cons int HP_libconfig_lookup_int(const struct config_t *config, const char *filepath, int *value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_lookup_int_pre ) { + if (HPMHooks.count.HP_libconfig_lookup_int_pre > 0) { int (*preHookFunc) (const struct config_t **config, const char **filepath, int **value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_int_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_int_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_lookup_int_pre[hIndex].func; retVal___ = preHookFunc(&config, &filepath, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2888,9 +2888,9 @@ int HP_libconfig_lookup_int(const struct config_t *config, const char *filepath, { retVal___ = HPMHooks.source.libconfig.lookup_int(config, filepath, value); } - if( HPMHooks.count.HP_libconfig_lookup_int_post ) { + if (HPMHooks.count.HP_libconfig_lookup_int_post > 0) { int (*postHookFunc) (int retVal___, const struct config_t *config, const char *filepath, int *value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_int_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_int_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_lookup_int_post[hIndex].func; retVal___ = postHookFunc(retVal___, config, filepath, value); } @@ -2900,14 +2900,14 @@ int HP_libconfig_lookup_int(const struct config_t *config, const char *filepath, int HP_libconfig_lookup_int64(const struct config_t *config, const char *filepath, int64 *value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_lookup_int64_pre ) { + if (HPMHooks.count.HP_libconfig_lookup_int64_pre > 0) { int (*preHookFunc) (const struct config_t **config, const char **filepath, int64 **value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_int64_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_int64_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_lookup_int64_pre[hIndex].func; retVal___ = preHookFunc(&config, &filepath, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2915,9 +2915,9 @@ int HP_libconfig_lookup_int64(const struct config_t *config, const char *filepat { retVal___ = HPMHooks.source.libconfig.lookup_int64(config, filepath, value); } - if( HPMHooks.count.HP_libconfig_lookup_int64_post ) { + if (HPMHooks.count.HP_libconfig_lookup_int64_post > 0) { int (*postHookFunc) (int retVal___, const struct config_t *config, const char *filepath, int64 *value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_int64_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_int64_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_lookup_int64_post[hIndex].func; retVal___ = postHookFunc(retVal___, config, filepath, value); } @@ -2927,14 +2927,14 @@ int HP_libconfig_lookup_int64(const struct config_t *config, const char *filepat int HP_libconfig_lookup_float(const struct config_t *config, const char *filepath, double *value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_lookup_float_pre ) { + if (HPMHooks.count.HP_libconfig_lookup_float_pre > 0) { int (*preHookFunc) (const struct config_t **config, const char **filepath, double **value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_float_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_float_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_lookup_float_pre[hIndex].func; retVal___ = preHookFunc(&config, &filepath, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2942,9 +2942,9 @@ int HP_libconfig_lookup_float(const struct config_t *config, const char *filepat { retVal___ = HPMHooks.source.libconfig.lookup_float(config, filepath, value); } - if( HPMHooks.count.HP_libconfig_lookup_float_post ) { + if (HPMHooks.count.HP_libconfig_lookup_float_post > 0) { int (*postHookFunc) (int retVal___, const struct config_t *config, const char *filepath, double *value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_float_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_float_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_lookup_float_post[hIndex].func; retVal___ = postHookFunc(retVal___, config, filepath, value); } @@ -2954,14 +2954,14 @@ int HP_libconfig_lookup_float(const struct config_t *config, const char *filepat int HP_libconfig_lookup_bool(const struct config_t *config, const char *filepath, int *value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_lookup_bool_pre ) { + if (HPMHooks.count.HP_libconfig_lookup_bool_pre > 0) { int (*preHookFunc) (const struct config_t **config, const char **filepath, int **value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_bool_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_bool_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_lookup_bool_pre[hIndex].func; retVal___ = preHookFunc(&config, &filepath, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2969,9 +2969,9 @@ int HP_libconfig_lookup_bool(const struct config_t *config, const char *filepath { retVal___ = HPMHooks.source.libconfig.lookup_bool(config, filepath, value); } - if( HPMHooks.count.HP_libconfig_lookup_bool_post ) { + if (HPMHooks.count.HP_libconfig_lookup_bool_post > 0) { int (*postHookFunc) (int retVal___, const struct config_t *config, const char *filepath, int *value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_bool_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_bool_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_lookup_bool_post[hIndex].func; retVal___ = postHookFunc(retVal___, config, filepath, value); } @@ -2981,14 +2981,14 @@ int HP_libconfig_lookup_bool(const struct config_t *config, const char *filepath int HP_libconfig_lookup_string(const struct config_t *config, const char *filepath, const char **value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_lookup_string_pre ) { + if (HPMHooks.count.HP_libconfig_lookup_string_pre > 0) { int (*preHookFunc) (const struct config_t **config, const char **filepath, const char ***value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_string_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_string_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_lookup_string_pre[hIndex].func; retVal___ = preHookFunc(&config, &filepath, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -2996,9 +2996,9 @@ int HP_libconfig_lookup_string(const struct config_t *config, const char *filepa { retVal___ = HPMHooks.source.libconfig.lookup_string(config, filepath, value); } - if( HPMHooks.count.HP_libconfig_lookup_string_post ) { + if (HPMHooks.count.HP_libconfig_lookup_string_post > 0) { int (*postHookFunc) (int retVal___, const struct config_t *config, const char *filepath, const char **value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_string_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_string_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_lookup_string_post[hIndex].func; retVal___ = postHookFunc(retVal___, config, filepath, value); } @@ -3008,14 +3008,14 @@ int HP_libconfig_lookup_string(const struct config_t *config, const char *filepa int HP_libconfig_load_file(struct config_t *config, const char *config_filename) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_load_file_pre ) { + if (HPMHooks.count.HP_libconfig_load_file_pre > 0) { int (*preHookFunc) (struct config_t **config, const char **config_filename); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_load_file_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_load_file_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_load_file_pre[hIndex].func; retVal___ = preHookFunc(&config, &config_filename); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3023,9 +3023,9 @@ int HP_libconfig_load_file(struct config_t *config, const char *config_filename) { retVal___ = HPMHooks.source.libconfig.load_file(config, config_filename); } - if( HPMHooks.count.HP_libconfig_load_file_post ) { + if (HPMHooks.count.HP_libconfig_load_file_post > 0) { int (*postHookFunc) (int retVal___, struct config_t *config, const char *config_filename); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_load_file_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_load_file_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_load_file_post[hIndex].func; retVal___ = postHookFunc(retVal___, config, config_filename); } @@ -3034,14 +3034,14 @@ int HP_libconfig_load_file(struct config_t *config, const char *config_filename) } void HP_libconfig_setting_copy_simple(struct config_setting_t *parent, const struct config_setting_t *src) { int hIndex = 0; - if( HPMHooks.count.HP_libconfig_setting_copy_simple_pre ) { + if (HPMHooks.count.HP_libconfig_setting_copy_simple_pre > 0) { void (*preHookFunc) (struct config_setting_t **parent, const struct config_setting_t **src); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_simple_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_simple_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_copy_simple_pre[hIndex].func; preHookFunc(&parent, &src); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -3049,9 +3049,9 @@ void HP_libconfig_setting_copy_simple(struct config_setting_t *parent, const str { HPMHooks.source.libconfig.setting_copy_simple(parent, src); } - if( HPMHooks.count.HP_libconfig_setting_copy_simple_post ) { + if (HPMHooks.count.HP_libconfig_setting_copy_simple_post > 0) { void (*postHookFunc) (struct config_setting_t *parent, const struct config_setting_t *src); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_simple_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_simple_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_copy_simple_post[hIndex].func; postHookFunc(parent, src); } @@ -3060,14 +3060,14 @@ void HP_libconfig_setting_copy_simple(struct config_setting_t *parent, const str } void HP_libconfig_setting_copy_elem(struct config_setting_t *parent, const struct config_setting_t *src) { int hIndex = 0; - if( HPMHooks.count.HP_libconfig_setting_copy_elem_pre ) { + if (HPMHooks.count.HP_libconfig_setting_copy_elem_pre > 0) { void (*preHookFunc) (struct config_setting_t **parent, const struct config_setting_t **src); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_elem_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_elem_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_copy_elem_pre[hIndex].func; preHookFunc(&parent, &src); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -3075,9 +3075,9 @@ void HP_libconfig_setting_copy_elem(struct config_setting_t *parent, const struc { HPMHooks.source.libconfig.setting_copy_elem(parent, src); } - if( HPMHooks.count.HP_libconfig_setting_copy_elem_post ) { + if (HPMHooks.count.HP_libconfig_setting_copy_elem_post > 0) { void (*postHookFunc) (struct config_setting_t *parent, const struct config_setting_t *src); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_elem_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_elem_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_copy_elem_post[hIndex].func; postHookFunc(parent, src); } @@ -3086,14 +3086,14 @@ void HP_libconfig_setting_copy_elem(struct config_setting_t *parent, const struc } void HP_libconfig_setting_copy_aggregate(struct config_setting_t *parent, const struct config_setting_t *src) { int hIndex = 0; - if( HPMHooks.count.HP_libconfig_setting_copy_aggregate_pre ) { + if (HPMHooks.count.HP_libconfig_setting_copy_aggregate_pre > 0) { void (*preHookFunc) (struct config_setting_t **parent, const struct config_setting_t **src); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_aggregate_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_aggregate_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_copy_aggregate_pre[hIndex].func; preHookFunc(&parent, &src); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -3101,9 +3101,9 @@ void HP_libconfig_setting_copy_aggregate(struct config_setting_t *parent, const { HPMHooks.source.libconfig.setting_copy_aggregate(parent, src); } - if( HPMHooks.count.HP_libconfig_setting_copy_aggregate_post ) { + if (HPMHooks.count.HP_libconfig_setting_copy_aggregate_post > 0) { void (*postHookFunc) (struct config_setting_t *parent, const struct config_setting_t *src); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_aggregate_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_aggregate_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_copy_aggregate_post[hIndex].func; postHookFunc(parent, src); } @@ -3113,14 +3113,14 @@ void HP_libconfig_setting_copy_aggregate(struct config_setting_t *parent, const int HP_libconfig_setting_copy(struct config_setting_t *parent, const struct config_setting_t *src) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_copy_pre ) { + if (HPMHooks.count.HP_libconfig_setting_copy_pre > 0) { int (*preHookFunc) (struct config_setting_t **parent, const struct config_setting_t **src); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_copy_pre[hIndex].func; retVal___ = preHookFunc(&parent, &src); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3128,9 +3128,9 @@ int HP_libconfig_setting_copy(struct config_setting_t *parent, const struct conf { retVal___ = HPMHooks.source.libconfig.setting_copy(parent, src); } - if( HPMHooks.count.HP_libconfig_setting_copy_post ) { + if (HPMHooks.count.HP_libconfig_setting_copy_post > 0) { int (*postHookFunc) (int retVal___, struct config_setting_t *parent, const struct config_setting_t *src); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_copy_post[hIndex].func; retVal___ = postHookFunc(retVal___, parent, src); } @@ -3140,14 +3140,14 @@ int HP_libconfig_setting_copy(struct config_setting_t *parent, const struct conf bool HP_libconfig_setting_get_bool_real(const struct config_setting_t *setting) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_libconfig_setting_get_bool_real_pre ) { + if (HPMHooks.count.HP_libconfig_setting_get_bool_real_pre > 0) { bool (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_real_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_real_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_bool_real_pre[hIndex].func; retVal___ = preHookFunc(&setting); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3155,9 +3155,9 @@ bool HP_libconfig_setting_get_bool_real(const struct config_setting_t *setting) { retVal___ = HPMHooks.source.libconfig.setting_get_bool_real(setting); } - if( HPMHooks.count.HP_libconfig_setting_get_bool_real_post ) { + if (HPMHooks.count.HP_libconfig_setting_get_bool_real_post > 0) { bool (*postHookFunc) (bool retVal___, const struct config_setting_t *setting); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_real_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_real_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_bool_real_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting); } @@ -3167,14 +3167,14 @@ bool HP_libconfig_setting_get_bool_real(const struct config_setting_t *setting) uint32 HP_libconfig_setting_get_uint32(const struct config_setting_t *setting) { int hIndex = 0; uint32 retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_get_uint32_pre ) { + if (HPMHooks.count.HP_libconfig_setting_get_uint32_pre > 0) { uint32 (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint32_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint32_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_uint32_pre[hIndex].func; retVal___ = preHookFunc(&setting); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3182,9 +3182,9 @@ uint32 HP_libconfig_setting_get_uint32(const struct config_setting_t *setting) { { retVal___ = HPMHooks.source.libconfig.setting_get_uint32(setting); } - if( HPMHooks.count.HP_libconfig_setting_get_uint32_post ) { + if (HPMHooks.count.HP_libconfig_setting_get_uint32_post > 0) { uint32 (*postHookFunc) (uint32 retVal___, const struct config_setting_t *setting); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint32_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint32_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_uint32_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting); } @@ -3194,14 +3194,14 @@ uint32 HP_libconfig_setting_get_uint32(const struct config_setting_t *setting) { uint16 HP_libconfig_setting_get_uint16(const struct config_setting_t *setting) { int hIndex = 0; uint16 retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_get_uint16_pre ) { + if (HPMHooks.count.HP_libconfig_setting_get_uint16_pre > 0) { uint16 (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint16_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint16_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_uint16_pre[hIndex].func; retVal___ = preHookFunc(&setting); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3209,9 +3209,9 @@ uint16 HP_libconfig_setting_get_uint16(const struct config_setting_t *setting) { { retVal___ = HPMHooks.source.libconfig.setting_get_uint16(setting); } - if( HPMHooks.count.HP_libconfig_setting_get_uint16_post ) { + if (HPMHooks.count.HP_libconfig_setting_get_uint16_post > 0) { uint16 (*postHookFunc) (uint16 retVal___, const struct config_setting_t *setting); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint16_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint16_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_uint16_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting); } @@ -3221,14 +3221,14 @@ uint16 HP_libconfig_setting_get_uint16(const struct config_setting_t *setting) { int16 HP_libconfig_setting_get_int16(const struct config_setting_t *setting) { int hIndex = 0; int16 retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_get_int16_pre ) { + if (HPMHooks.count.HP_libconfig_setting_get_int16_pre > 0) { int16 (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int16_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int16_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_int16_pre[hIndex].func; retVal___ = preHookFunc(&setting); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3236,9 +3236,9 @@ int16 HP_libconfig_setting_get_int16(const struct config_setting_t *setting) { { retVal___ = HPMHooks.source.libconfig.setting_get_int16(setting); } - if( HPMHooks.count.HP_libconfig_setting_get_int16_post ) { + if (HPMHooks.count.HP_libconfig_setting_get_int16_post > 0) { int16 (*postHookFunc) (int16 retVal___, const struct config_setting_t *setting); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int16_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int16_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_int16_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting); } @@ -3248,14 +3248,14 @@ int16 HP_libconfig_setting_get_int16(const struct config_setting_t *setting) { int HP_libconfig_setting_lookup_bool_real(const struct config_setting_t *setting, const char *name, bool *value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_lookup_bool_real_pre ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_bool_real_pre > 0) { int (*preHookFunc) (const struct config_setting_t **setting, const char **name, bool **value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_bool_real_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_bool_real_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_bool_real_pre[hIndex].func; retVal___ = preHookFunc(&setting, &name, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3263,9 +3263,9 @@ int HP_libconfig_setting_lookup_bool_real(const struct config_setting_t *setting { retVal___ = HPMHooks.source.libconfig.setting_lookup_bool_real(setting, name, value); } - if( HPMHooks.count.HP_libconfig_setting_lookup_bool_real_post ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_bool_real_post > 0) { int (*postHookFunc) (int retVal___, const struct config_setting_t *setting, const char *name, bool *value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_bool_real_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_bool_real_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_bool_real_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, name, value); } @@ -3275,14 +3275,14 @@ int HP_libconfig_setting_lookup_bool_real(const struct config_setting_t *setting int HP_libconfig_setting_lookup_uint32(const struct config_setting_t *setting, const char *name, uint32 *value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_lookup_uint32_pre ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_uint32_pre > 0) { int (*preHookFunc) (const struct config_setting_t **setting, const char **name, uint32 **value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint32_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint32_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_uint32_pre[hIndex].func; retVal___ = preHookFunc(&setting, &name, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3290,9 +3290,9 @@ int HP_libconfig_setting_lookup_uint32(const struct config_setting_t *setting, c { retVal___ = HPMHooks.source.libconfig.setting_lookup_uint32(setting, name, value); } - if( HPMHooks.count.HP_libconfig_setting_lookup_uint32_post ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_uint32_post > 0) { int (*postHookFunc) (int retVal___, const struct config_setting_t *setting, const char *name, uint32 *value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint32_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint32_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_uint32_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, name, value); } @@ -3302,14 +3302,14 @@ int HP_libconfig_setting_lookup_uint32(const struct config_setting_t *setting, c int HP_libconfig_setting_lookup_uint16(const struct config_setting_t *setting, const char *name, uint16 *value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_lookup_uint16_pre ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_uint16_pre > 0) { int (*preHookFunc) (const struct config_setting_t **setting, const char **name, uint16 **value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint16_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint16_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_uint16_pre[hIndex].func; retVal___ = preHookFunc(&setting, &name, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3317,9 +3317,9 @@ int HP_libconfig_setting_lookup_uint16(const struct config_setting_t *setting, c { retVal___ = HPMHooks.source.libconfig.setting_lookup_uint16(setting, name, value); } - if( HPMHooks.count.HP_libconfig_setting_lookup_uint16_post ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_uint16_post > 0) { int (*postHookFunc) (int retVal___, const struct config_setting_t *setting, const char *name, uint16 *value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint16_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint16_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_uint16_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, name, value); } @@ -3329,14 +3329,14 @@ int HP_libconfig_setting_lookup_uint16(const struct config_setting_t *setting, c int HP_libconfig_setting_lookup_int16(const struct config_setting_t *setting, const char *name, int16 *value) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_lookup_int16_pre ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_int16_pre > 0) { int (*preHookFunc) (const struct config_setting_t **setting, const char **name, int16 **value); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int16_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int16_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_int16_pre[hIndex].func; retVal___ = preHookFunc(&setting, &name, &value); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3344,9 +3344,9 @@ int HP_libconfig_setting_lookup_int16(const struct config_setting_t *setting, co { retVal___ = HPMHooks.source.libconfig.setting_lookup_int16(setting, name, value); } - if( HPMHooks.count.HP_libconfig_setting_lookup_int16_post ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_int16_post > 0) { int (*postHookFunc) (int retVal___, const struct config_setting_t *setting, const char *name, int16 *value); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int16_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int16_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_int16_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, name, value); } @@ -3356,14 +3356,14 @@ int HP_libconfig_setting_lookup_int16(const struct config_setting_t *setting, co int HP_libconfig_setting_lookup_mutable_string(const struct config_setting_t *setting, const char *name, char *out, size_t out_size) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_pre ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_pre > 0) { int (*preHookFunc) (const struct config_setting_t **setting, const char **name, char **out, size_t *out_size); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_mutable_string_pre[hIndex].func; retVal___ = preHookFunc(&setting, &name, &out, &out_size); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3371,9 +3371,9 @@ int HP_libconfig_setting_lookup_mutable_string(const struct config_setting_t *se { retVal___ = HPMHooks.source.libconfig.setting_lookup_mutable_string(setting, name, out, out_size); } - if( HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_post ) { + if (HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_post > 0) { int (*postHookFunc) (int retVal___, const struct config_setting_t *setting, const char *name, char *out, size_t out_size); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_mutable_string_post[hIndex].func; retVal___ = postHookFunc(retVal___, setting, name, out, out_size); } @@ -3383,14 +3383,14 @@ int HP_libconfig_setting_lookup_mutable_string(const struct config_setting_t *se int HP_libconfig_lookup_mutable_string(const struct config_t *config, const char *name, char *out, size_t out_size) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_libconfig_lookup_mutable_string_pre ) { + if (HPMHooks.count.HP_libconfig_lookup_mutable_string_pre > 0) { int (*preHookFunc) (const struct config_t **config, const char **name, char **out, size_t *out_size); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_mutable_string_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_mutable_string_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_libconfig_lookup_mutable_string_pre[hIndex].func; retVal___ = preHookFunc(&config, &name, &out, &out_size); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3398,9 +3398,9 @@ int HP_libconfig_lookup_mutable_string(const struct config_t *config, const char { retVal___ = HPMHooks.source.libconfig.lookup_mutable_string(config, name, out, out_size); } - if( HPMHooks.count.HP_libconfig_lookup_mutable_string_post ) { + if (HPMHooks.count.HP_libconfig_lookup_mutable_string_post > 0) { int (*postHookFunc) (int retVal___, const struct config_t *config, const char *name, char *out, size_t out_size); - for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_mutable_string_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_mutable_string_post; hIndex++) { postHookFunc = HPMHooks.list.HP_libconfig_lookup_mutable_string_post[hIndex].func; retVal___ = postHookFunc(retVal___, config, name, out, out_size); } @@ -3411,14 +3411,14 @@ int HP_libconfig_lookup_mutable_string(const struct config_t *config, const char int HP_login_mmo_auth(struct login_session_data *sd, bool isServer) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_login_mmo_auth_pre ) { + if (HPMHooks.count.HP_login_mmo_auth_pre > 0) { int (*preHookFunc) (struct login_session_data **sd, bool *isServer); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_mmo_auth_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_mmo_auth_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_mmo_auth_pre[hIndex].func; retVal___ = preHookFunc(&sd, &isServer); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3426,9 +3426,9 @@ int HP_login_mmo_auth(struct login_session_data *sd, bool isServer) { { retVal___ = HPMHooks.source.login.mmo_auth(sd, isServer); } - if( HPMHooks.count.HP_login_mmo_auth_post ) { + if (HPMHooks.count.HP_login_mmo_auth_post > 0) { int (*postHookFunc) (int retVal___, struct login_session_data *sd, bool isServer); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_mmo_auth_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_mmo_auth_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_mmo_auth_post[hIndex].func; retVal___ = postHookFunc(retVal___, sd, isServer); } @@ -3438,14 +3438,14 @@ int HP_login_mmo_auth(struct login_session_data *sd, bool isServer) { int HP_login_mmo_auth_new(const char *userid, const char *pass, const char sex, const char *last_ip) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_login_mmo_auth_new_pre ) { + if (HPMHooks.count.HP_login_mmo_auth_new_pre > 0) { int (*preHookFunc) (const char **userid, const char **pass, const char *sex, const char **last_ip); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_mmo_auth_new_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_mmo_auth_new_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_mmo_auth_new_pre[hIndex].func; retVal___ = preHookFunc(&userid, &pass, &sex, &last_ip); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3453,9 +3453,9 @@ int HP_login_mmo_auth_new(const char *userid, const char *pass, const char sex, { retVal___ = HPMHooks.source.login.mmo_auth_new(userid, pass, sex, last_ip); } - if( HPMHooks.count.HP_login_mmo_auth_new_post ) { + if (HPMHooks.count.HP_login_mmo_auth_new_post > 0) { int (*postHookFunc) (int retVal___, const char *userid, const char *pass, const char sex, const char *last_ip); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_mmo_auth_new_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_mmo_auth_new_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_mmo_auth_new_post[hIndex].func; retVal___ = postHookFunc(retVal___, userid, pass, sex, last_ip); } @@ -3465,14 +3465,14 @@ int HP_login_mmo_auth_new(const char *userid, const char *pass, const char sex, int HP_login_waiting_disconnect_timer(int tid, int64 tick, int id, intptr_t data) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_login_waiting_disconnect_timer_pre ) { + if (HPMHooks.count.HP_login_waiting_disconnect_timer_pre > 0) { int (*preHookFunc) (int *tid, int64 *tick, int *id, intptr_t *data); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_waiting_disconnect_timer_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_waiting_disconnect_timer_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_waiting_disconnect_timer_pre[hIndex].func; retVal___ = preHookFunc(&tid, &tick, &id, &data); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3480,9 +3480,9 @@ int HP_login_waiting_disconnect_timer(int tid, int64 tick, int id, intptr_t data { retVal___ = HPMHooks.source.login.waiting_disconnect_timer(tid, tick, id, data); } - if( HPMHooks.count.HP_login_waiting_disconnect_timer_post ) { + if (HPMHooks.count.HP_login_waiting_disconnect_timer_post > 0) { int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_waiting_disconnect_timer_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_waiting_disconnect_timer_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_waiting_disconnect_timer_post[hIndex].func; retVal___ = postHookFunc(retVal___, tid, tick, id, data); } @@ -3492,16 +3492,16 @@ int HP_login_waiting_disconnect_timer(int tid, int64 tick, int id, intptr_t data struct DBData HP_login_create_online_user(union DBKey key, va_list args) { int hIndex = 0; struct DBData retVal___ = { 0 }; - if( HPMHooks.count.HP_login_create_online_user_pre ) { + if (HPMHooks.count.HP_login_create_online_user_pre > 0) { struct DBData (*preHookFunc) (union DBKey *key, va_list args); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_create_online_user_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_create_online_user_pre; hIndex++) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_login_create_online_user_pre[hIndex].func; retVal___ = preHookFunc(&key, args___copy); va_end(args___copy); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3511,9 +3511,9 @@ struct DBData HP_login_create_online_user(union DBKey key, va_list args) { retVal___ = HPMHooks.source.login.create_online_user(key, args___copy); va_end(args___copy); } - if( HPMHooks.count.HP_login_create_online_user_post ) { + if (HPMHooks.count.HP_login_create_online_user_post > 0) { struct DBData (*postHookFunc) (struct DBData retVal___, union DBKey key, va_list args); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_create_online_user_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_create_online_user_post; hIndex++) { va_list args___copy; va_copy(args___copy, args); postHookFunc = HPMHooks.list.HP_login_create_online_user_post[hIndex].func; retVal___ = postHookFunc(retVal___, key, args___copy); @@ -3525,14 +3525,14 @@ struct DBData HP_login_create_online_user(union DBKey key, va_list args) { struct online_login_data* HP_login_add_online_user(int char_server, int account_id) { int hIndex = 0; struct online_login_data* retVal___ = NULL; - if( HPMHooks.count.HP_login_add_online_user_pre ) { + if (HPMHooks.count.HP_login_add_online_user_pre > 0) { struct online_login_data* (*preHookFunc) (int *char_server, int *account_id); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_add_online_user_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_add_online_user_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_add_online_user_pre[hIndex].func; retVal___ = preHookFunc(&char_server, &account_id); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3540,9 +3540,9 @@ struct online_login_data* HP_login_add_online_user(int char_server, int account_ { retVal___ = HPMHooks.source.login.add_online_user(char_server, account_id); } - if( HPMHooks.count.HP_login_add_online_user_post ) { + if (HPMHooks.count.HP_login_add_online_user_post > 0) { struct online_login_data* (*postHookFunc) (struct online_login_data* retVal___, int char_server, int account_id); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_add_online_user_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_add_online_user_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_add_online_user_post[hIndex].func; retVal___ = postHookFunc(retVal___, char_server, account_id); } @@ -3551,14 +3551,14 @@ struct online_login_data* HP_login_add_online_user(int char_server, int account_ } void HP_login_remove_online_user(int account_id) { int hIndex = 0; - if( HPMHooks.count.HP_login_remove_online_user_pre ) { + if (HPMHooks.count.HP_login_remove_online_user_pre > 0) { void (*preHookFunc) (int *account_id); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_remove_online_user_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_remove_online_user_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_remove_online_user_pre[hIndex].func; preHookFunc(&account_id); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -3566,9 +3566,9 @@ void HP_login_remove_online_user(int account_id) { { HPMHooks.source.login.remove_online_user(account_id); } - if( HPMHooks.count.HP_login_remove_online_user_post ) { + if (HPMHooks.count.HP_login_remove_online_user_post > 0) { void (*postHookFunc) (int account_id); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_remove_online_user_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_remove_online_user_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_remove_online_user_post[hIndex].func; postHookFunc(account_id); } @@ -3578,16 +3578,16 @@ void HP_login_remove_online_user(int account_id) { int HP_login_online_db_setoffline(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_login_online_db_setoffline_pre ) { + if (HPMHooks.count.HP_login_online_db_setoffline_pre > 0) { int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_online_db_setoffline_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_online_db_setoffline_pre; hIndex++) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_login_online_db_setoffline_pre[hIndex].func; retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3597,9 +3597,9 @@ int HP_login_online_db_setoffline(union DBKey key, struct DBData *data, va_list retVal___ = HPMHooks.source.login.online_db_setoffline(key, data, ap___copy); va_end(ap___copy); } - if( HPMHooks.count.HP_login_online_db_setoffline_post ) { + if (HPMHooks.count.HP_login_online_db_setoffline_post > 0) { int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_online_db_setoffline_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_online_db_setoffline_post; hIndex++) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_login_online_db_setoffline_post[hIndex].func; retVal___ = postHookFunc(retVal___, key, data, ap___copy); @@ -3611,16 +3611,16 @@ int HP_login_online_db_setoffline(union DBKey key, struct DBData *data, va_list int HP_login_online_data_cleanup_sub(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_login_online_data_cleanup_sub_pre ) { + if (HPMHooks.count.HP_login_online_data_cleanup_sub_pre > 0) { int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_online_data_cleanup_sub_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_online_data_cleanup_sub_pre; hIndex++) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_login_online_data_cleanup_sub_pre[hIndex].func; retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3630,9 +3630,9 @@ int HP_login_online_data_cleanup_sub(union DBKey key, struct DBData *data, va_li retVal___ = HPMHooks.source.login.online_data_cleanup_sub(key, data, ap___copy); va_end(ap___copy); } - if( HPMHooks.count.HP_login_online_data_cleanup_sub_post ) { + if (HPMHooks.count.HP_login_online_data_cleanup_sub_post > 0) { int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_online_data_cleanup_sub_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_online_data_cleanup_sub_post; hIndex++) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_login_online_data_cleanup_sub_post[hIndex].func; retVal___ = postHookFunc(retVal___, key, data, ap___copy); @@ -3644,14 +3644,14 @@ int HP_login_online_data_cleanup_sub(union DBKey key, struct DBData *data, va_li int HP_login_online_data_cleanup(int tid, int64 tick, int id, intptr_t data) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_login_online_data_cleanup_pre ) { + if (HPMHooks.count.HP_login_online_data_cleanup_pre > 0) { int (*preHookFunc) (int *tid, int64 *tick, int *id, intptr_t *data); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_online_data_cleanup_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_online_data_cleanup_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_online_data_cleanup_pre[hIndex].func; retVal___ = preHookFunc(&tid, &tick, &id, &data); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3659,9 +3659,9 @@ int HP_login_online_data_cleanup(int tid, int64 tick, int id, intptr_t data) { { retVal___ = HPMHooks.source.login.online_data_cleanup(tid, tick, id, data); } - if( HPMHooks.count.HP_login_online_data_cleanup_post ) { + if (HPMHooks.count.HP_login_online_data_cleanup_post > 0) { int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_online_data_cleanup_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_online_data_cleanup_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_online_data_cleanup_post[hIndex].func; retVal___ = postHookFunc(retVal___, tid, tick, id, data); } @@ -3671,14 +3671,14 @@ int HP_login_online_data_cleanup(int tid, int64 tick, int id, intptr_t data) { int HP_login_sync_ip_addresses(int tid, int64 tick, int id, intptr_t data) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_login_sync_ip_addresses_pre ) { + if (HPMHooks.count.HP_login_sync_ip_addresses_pre > 0) { int (*preHookFunc) (int *tid, int64 *tick, int *id, intptr_t *data); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_sync_ip_addresses_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_sync_ip_addresses_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_sync_ip_addresses_pre[hIndex].func; retVal___ = preHookFunc(&tid, &tick, &id, &data); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3686,9 +3686,9 @@ int HP_login_sync_ip_addresses(int tid, int64 tick, int id, intptr_t data) { { retVal___ = HPMHooks.source.login.sync_ip_addresses(tid, tick, id, data); } - if( HPMHooks.count.HP_login_sync_ip_addresses_post ) { + if (HPMHooks.count.HP_login_sync_ip_addresses_post > 0) { int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_sync_ip_addresses_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_sync_ip_addresses_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_sync_ip_addresses_post[hIndex].func; retVal___ = postHookFunc(retVal___, tid, tick, id, data); } @@ -3698,14 +3698,14 @@ int HP_login_sync_ip_addresses(int tid, int64 tick, int id, intptr_t data) { bool HP_login_check_encrypted(const char *str1, const char *str2, const char *passwd) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_login_check_encrypted_pre ) { + if (HPMHooks.count.HP_login_check_encrypted_pre > 0) { bool (*preHookFunc) (const char **str1, const char **str2, const char **passwd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_check_encrypted_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_check_encrypted_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_check_encrypted_pre[hIndex].func; retVal___ = preHookFunc(&str1, &str2, &passwd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3713,9 +3713,9 @@ bool HP_login_check_encrypted(const char *str1, const char *str2, const char *pa { retVal___ = HPMHooks.source.login.check_encrypted(str1, str2, passwd); } - if( HPMHooks.count.HP_login_check_encrypted_post ) { + if (HPMHooks.count.HP_login_check_encrypted_post > 0) { bool (*postHookFunc) (bool retVal___, const char *str1, const char *str2, const char *passwd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_check_encrypted_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_check_encrypted_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_check_encrypted_post[hIndex].func; retVal___ = postHookFunc(retVal___, str1, str2, passwd); } @@ -3725,14 +3725,14 @@ bool HP_login_check_encrypted(const char *str1, const char *str2, const char *pa bool HP_login_check_password(const char *md5key, int passwdenc, const char *passwd, const char *refpass) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_login_check_password_pre ) { + if (HPMHooks.count.HP_login_check_password_pre > 0) { bool (*preHookFunc) (const char **md5key, int *passwdenc, const char **passwd, const char **refpass); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_check_password_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_check_password_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_check_password_pre[hIndex].func; retVal___ = preHookFunc(&md5key, &passwdenc, &passwd, &refpass); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3740,9 +3740,9 @@ bool HP_login_check_password(const char *md5key, int passwdenc, const char *pass { retVal___ = HPMHooks.source.login.check_password(md5key, passwdenc, passwd, refpass); } - if( HPMHooks.count.HP_login_check_password_post ) { + if (HPMHooks.count.HP_login_check_password_post > 0) { bool (*postHookFunc) (bool retVal___, const char *md5key, int passwdenc, const char *passwd, const char *refpass); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_check_password_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_check_password_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_check_password_post[hIndex].func; retVal___ = postHookFunc(retVal___, md5key, passwdenc, passwd, refpass); } @@ -3752,14 +3752,14 @@ bool HP_login_check_password(const char *md5key, int passwdenc, const char *pass uint32 HP_login_lan_subnet_check(uint32 ip) { int hIndex = 0; uint32 retVal___ = 0; - if( HPMHooks.count.HP_login_lan_subnet_check_pre ) { + if (HPMHooks.count.HP_login_lan_subnet_check_pre > 0) { uint32 (*preHookFunc) (uint32 *ip); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_lan_subnet_check_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_lan_subnet_check_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_lan_subnet_check_pre[hIndex].func; retVal___ = preHookFunc(&ip); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -3767,9 +3767,9 @@ uint32 HP_login_lan_subnet_check(uint32 ip) { { retVal___ = HPMHooks.source.login.lan_subnet_check(ip); } - if( HPMHooks.count.HP_login_lan_subnet_check_post ) { + if (HPMHooks.count.HP_login_lan_subnet_check_post > 0) { uint32 (*postHookFunc) (uint32 retVal___, uint32 ip); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_lan_subnet_check_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_lan_subnet_check_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_lan_subnet_check_post[hIndex].func; retVal___ = postHookFunc(retVal___, ip); } @@ -3778,14 +3778,14 @@ uint32 HP_login_lan_subnet_check(uint32 ip) { } void HP_login_fromchar_accinfo(int fd, int account_id, int u_fd, int u_aid, int u_group, int map_fd, struct mmo_account *acc) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_accinfo_pre ) { + if (HPMHooks.count.HP_login_fromchar_accinfo_pre > 0) { void (*preHookFunc) (int *fd, int *account_id, int *u_fd, int *u_aid, int *u_group, int *map_fd, struct mmo_account **acc); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_accinfo_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_accinfo_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_accinfo_pre[hIndex].func; preHookFunc(&fd, &account_id, &u_fd, &u_aid, &u_group, &map_fd, &acc); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -3793,9 +3793,9 @@ void HP_login_fromchar_accinfo(int fd, int account_id, int u_fd, int u_aid, int { HPMHooks.source.login.fromchar_accinfo(fd, account_id, u_fd, u_aid, u_group, map_fd, acc); } - if( HPMHooks.count.HP_login_fromchar_accinfo_post ) { + if (HPMHooks.count.HP_login_fromchar_accinfo_post > 0) { void (*postHookFunc) (int fd, int account_id, int u_fd, int u_aid, int u_group, int map_fd, struct mmo_account *acc); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_accinfo_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_accinfo_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_accinfo_post[hIndex].func; postHookFunc(fd, account_id, u_fd, u_aid, u_group, map_fd, acc); } @@ -3804,14 +3804,14 @@ void HP_login_fromchar_accinfo(int fd, int account_id, int u_fd, int u_aid, int } void HP_login_fromchar_account(int fd, int account_id, struct mmo_account *acc) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_account_pre ) { + if (HPMHooks.count.HP_login_fromchar_account_pre > 0) { void (*preHookFunc) (int *fd, int *account_id, struct mmo_account **acc); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_account_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_account_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_account_pre[hIndex].func; preHookFunc(&fd, &account_id, &acc); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -3819,9 +3819,9 @@ void HP_login_fromchar_account(int fd, int account_id, struct mmo_account *acc) { HPMHooks.source.login.fromchar_account(fd, account_id, acc); } - if( HPMHooks.count.HP_login_fromchar_account_post ) { + if (HPMHooks.count.HP_login_fromchar_account_post > 0) { void (*postHookFunc) (int fd, int account_id, struct mmo_account *acc); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_account_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_account_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_account_post[hIndex].func; postHookFunc(fd, account_id, acc); } @@ -3830,14 +3830,14 @@ void HP_login_fromchar_account(int fd, int account_id, struct mmo_account *acc) } void HP_login_fromchar_account_update_other(int account_id, unsigned int state) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_account_update_other_pre ) { + if (HPMHooks.count.HP_login_fromchar_account_update_other_pre > 0) { void (*preHookFunc) (int *account_id, unsigned int *state); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_account_update_other_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_account_update_other_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_account_update_other_pre[hIndex].func; preHookFunc(&account_id, &state); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -3845,9 +3845,9 @@ void HP_login_fromchar_account_update_other(int account_id, unsigned int state) { HPMHooks.source.login.fromchar_account_update_other(account_id, state); } - if( HPMHooks.count.HP_login_fromchar_account_update_other_post ) { + if (HPMHooks.count.HP_login_fromchar_account_update_other_post > 0) { void (*postHookFunc) (int account_id, unsigned int state); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_account_update_other_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_account_update_other_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_account_update_other_post[hIndex].func; postHookFunc(account_id, state); } @@ -3856,14 +3856,14 @@ void HP_login_fromchar_account_update_other(int account_id, unsigned int state) } void HP_login_fromchar_auth_ack(int fd, int account_id, uint32 login_id1, uint32 login_id2, uint8 sex, int request_id, struct login_auth_node *node) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_auth_ack_pre ) { + if (HPMHooks.count.HP_login_fromchar_auth_ack_pre > 0) { void (*preHookFunc) (int *fd, int *account_id, uint32 *login_id1, uint32 *login_id2, uint8 *sex, int *request_id, struct login_auth_node **node); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_auth_ack_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_auth_ack_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_auth_ack_pre[hIndex].func; preHookFunc(&fd, &account_id, &login_id1, &login_id2, &sex, &request_id, &node); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -3871,9 +3871,9 @@ void HP_login_fromchar_auth_ack(int fd, int account_id, uint32 login_id1, uint32 { HPMHooks.source.login.fromchar_auth_ack(fd, account_id, login_id1, login_id2, sex, request_id, node); } - if( HPMHooks.count.HP_login_fromchar_auth_ack_post ) { + if (HPMHooks.count.HP_login_fromchar_auth_ack_post > 0) { void (*postHookFunc) (int fd, int account_id, uint32 login_id1, uint32 login_id2, uint8 sex, int request_id, struct login_auth_node *node); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_auth_ack_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_auth_ack_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_auth_ack_post[hIndex].func; postHookFunc(fd, account_id, login_id1, login_id2, sex, request_id, node); } @@ -3882,14 +3882,14 @@ void HP_login_fromchar_auth_ack(int fd, int account_id, uint32 login_id1, uint32 } void HP_login_fromchar_ban(int account_id, time_t timestamp) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_ban_pre ) { + if (HPMHooks.count.HP_login_fromchar_ban_pre > 0) { void (*preHookFunc) (int *account_id, time_t *timestamp); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_ban_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_ban_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_ban_pre[hIndex].func; preHookFunc(&account_id, ×tamp); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -3897,9 +3897,9 @@ void HP_login_fromchar_ban(int account_id, time_t timestamp) { { HPMHooks.source.login.fromchar_ban(account_id, timestamp); } - if( HPMHooks.count.HP_login_fromchar_ban_post ) { + if (HPMHooks.count.HP_login_fromchar_ban_post > 0) { void (*postHookFunc) (int account_id, time_t timestamp); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_ban_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_ban_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_ban_post[hIndex].func; postHookFunc(account_id, timestamp); } @@ -3908,14 +3908,14 @@ void HP_login_fromchar_ban(int account_id, time_t timestamp) { } void HP_login_fromchar_change_sex_other(int account_id, char sex) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_change_sex_other_pre ) { + if (HPMHooks.count.HP_login_fromchar_change_sex_other_pre > 0) { void (*preHookFunc) (int *account_id, char *sex); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_change_sex_other_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_change_sex_other_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_change_sex_other_pre[hIndex].func; preHookFunc(&account_id, &sex); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -3923,9 +3923,9 @@ void HP_login_fromchar_change_sex_other(int account_id, char sex) { { HPMHooks.source.login.fromchar_change_sex_other(account_id, sex); } - if( HPMHooks.count.HP_login_fromchar_change_sex_other_post ) { + if (HPMHooks.count.HP_login_fromchar_change_sex_other_post > 0) { void (*postHookFunc) (int account_id, char sex); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_change_sex_other_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_change_sex_other_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_change_sex_other_post[hIndex].func; postHookFunc(account_id, sex); } @@ -3934,14 +3934,14 @@ void HP_login_fromchar_change_sex_other(int account_id, char sex) { } void HP_login_fromchar_pong(int fd) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_pong_pre ) { + if (HPMHooks.count.HP_login_fromchar_pong_pre > 0) { void (*preHookFunc) (int *fd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_pong_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_pong_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_pong_pre[hIndex].func; preHookFunc(&fd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -3949,9 +3949,9 @@ void HP_login_fromchar_pong(int fd) { { HPMHooks.source.login.fromchar_pong(fd); } - if( HPMHooks.count.HP_login_fromchar_pong_post ) { + if (HPMHooks.count.HP_login_fromchar_pong_post > 0) { void (*postHookFunc) (int fd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_pong_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_pong_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_pong_post[hIndex].func; postHookFunc(fd); } @@ -3960,14 +3960,14 @@ void HP_login_fromchar_pong(int fd) { } void HP_login_fromchar_parse_auth(int fd, int id, const char *ip) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_auth_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_auth_pre > 0) { void (*preHookFunc) (int *fd, int *id, const char **ip); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_auth_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_auth_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_auth_pre[hIndex].func; preHookFunc(&fd, &id, &ip); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -3975,9 +3975,9 @@ void HP_login_fromchar_parse_auth(int fd, int id, const char *ip) { { HPMHooks.source.login.fromchar_parse_auth(fd, id, ip); } - if( HPMHooks.count.HP_login_fromchar_parse_auth_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_auth_post > 0) { void (*postHookFunc) (int fd, int id, const char *ip); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_auth_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_auth_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_auth_post[hIndex].func; postHookFunc(fd, id, ip); } @@ -3986,14 +3986,14 @@ void HP_login_fromchar_parse_auth(int fd, int id, const char *ip) { } void HP_login_fromchar_parse_update_users(int fd, int id) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_update_users_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_update_users_pre > 0) { void (*preHookFunc) (int *fd, int *id); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_update_users_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_update_users_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_update_users_pre[hIndex].func; preHookFunc(&fd, &id); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4001,9 +4001,9 @@ void HP_login_fromchar_parse_update_users(int fd, int id) { { HPMHooks.source.login.fromchar_parse_update_users(fd, id); } - if( HPMHooks.count.HP_login_fromchar_parse_update_users_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_update_users_post > 0) { void (*postHookFunc) (int fd, int id); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_update_users_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_update_users_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_update_users_post[hIndex].func; postHookFunc(fd, id); } @@ -4012,14 +4012,14 @@ void HP_login_fromchar_parse_update_users(int fd, int id) { } void HP_login_fromchar_parse_request_change_email(int fd, int id, const char *ip) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_request_change_email_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_request_change_email_pre > 0) { void (*preHookFunc) (int *fd, int *id, const char **ip); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_request_change_email_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_request_change_email_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_request_change_email_pre[hIndex].func; preHookFunc(&fd, &id, &ip); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4027,9 +4027,9 @@ void HP_login_fromchar_parse_request_change_email(int fd, int id, const char *ip { HPMHooks.source.login.fromchar_parse_request_change_email(fd, id, ip); } - if( HPMHooks.count.HP_login_fromchar_parse_request_change_email_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_request_change_email_post > 0) { void (*postHookFunc) (int fd, int id, const char *ip); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_request_change_email_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_request_change_email_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_request_change_email_post[hIndex].func; postHookFunc(fd, id, ip); } @@ -4038,14 +4038,14 @@ void HP_login_fromchar_parse_request_change_email(int fd, int id, const char *ip } void HP_login_fromchar_parse_account_data(int fd, int id, const char *ip) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_account_data_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_account_data_pre > 0) { void (*preHookFunc) (int *fd, int *id, const char **ip); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_data_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_data_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_data_pre[hIndex].func; preHookFunc(&fd, &id, &ip); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4053,9 +4053,9 @@ void HP_login_fromchar_parse_account_data(int fd, int id, const char *ip) { { HPMHooks.source.login.fromchar_parse_account_data(fd, id, ip); } - if( HPMHooks.count.HP_login_fromchar_parse_account_data_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_account_data_post > 0) { void (*postHookFunc) (int fd, int id, const char *ip); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_data_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_data_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_data_post[hIndex].func; postHookFunc(fd, id, ip); } @@ -4064,14 +4064,14 @@ void HP_login_fromchar_parse_account_data(int fd, int id, const char *ip) { } void HP_login_fromchar_parse_ping(int fd) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_ping_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_ping_pre > 0) { void (*preHookFunc) (int *fd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_ping_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_ping_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_ping_pre[hIndex].func; preHookFunc(&fd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4079,9 +4079,9 @@ void HP_login_fromchar_parse_ping(int fd) { { HPMHooks.source.login.fromchar_parse_ping(fd); } - if( HPMHooks.count.HP_login_fromchar_parse_ping_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_ping_post > 0) { void (*postHookFunc) (int fd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_ping_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_ping_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_ping_post[hIndex].func; postHookFunc(fd); } @@ -4090,14 +4090,14 @@ void HP_login_fromchar_parse_ping(int fd) { } void HP_login_fromchar_parse_change_email(int fd, int id, const char *ip) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_change_email_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_change_email_pre > 0) { void (*preHookFunc) (int *fd, int *id, const char **ip); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_change_email_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_change_email_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_change_email_pre[hIndex].func; preHookFunc(&fd, &id, &ip); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4105,9 +4105,9 @@ void HP_login_fromchar_parse_change_email(int fd, int id, const char *ip) { { HPMHooks.source.login.fromchar_parse_change_email(fd, id, ip); } - if( HPMHooks.count.HP_login_fromchar_parse_change_email_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_change_email_post > 0) { void (*postHookFunc) (int fd, int id, const char *ip); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_change_email_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_change_email_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_change_email_post[hIndex].func; postHookFunc(fd, id, ip); } @@ -4116,14 +4116,14 @@ void HP_login_fromchar_parse_change_email(int fd, int id, const char *ip) { } void HP_login_fromchar_parse_account_update(int fd, int id, const char *ip) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_account_update_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_account_update_pre > 0) { void (*preHookFunc) (int *fd, int *id, const char **ip); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_update_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_update_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_update_pre[hIndex].func; preHookFunc(&fd, &id, &ip); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4131,9 +4131,9 @@ void HP_login_fromchar_parse_account_update(int fd, int id, const char *ip) { { HPMHooks.source.login.fromchar_parse_account_update(fd, id, ip); } - if( HPMHooks.count.HP_login_fromchar_parse_account_update_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_account_update_post > 0) { void (*postHookFunc) (int fd, int id, const char *ip); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_update_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_update_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_update_post[hIndex].func; postHookFunc(fd, id, ip); } @@ -4142,14 +4142,14 @@ void HP_login_fromchar_parse_account_update(int fd, int id, const char *ip) { } void HP_login_fromchar_parse_ban(int fd, int id, const char *ip) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_ban_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_ban_pre > 0) { void (*preHookFunc) (int *fd, int *id, const char **ip); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_ban_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_ban_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_ban_pre[hIndex].func; preHookFunc(&fd, &id, &ip); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4157,9 +4157,9 @@ void HP_login_fromchar_parse_ban(int fd, int id, const char *ip) { { HPMHooks.source.login.fromchar_parse_ban(fd, id, ip); } - if( HPMHooks.count.HP_login_fromchar_parse_ban_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_ban_post > 0) { void (*postHookFunc) (int fd, int id, const char *ip); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_ban_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_ban_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_ban_post[hIndex].func; postHookFunc(fd, id, ip); } @@ -4168,14 +4168,14 @@ void HP_login_fromchar_parse_ban(int fd, int id, const char *ip) { } void HP_login_fromchar_parse_change_sex(int fd, int id, const char *ip) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_change_sex_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_change_sex_pre > 0) { void (*preHookFunc) (int *fd, int *id, const char **ip); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_change_sex_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_change_sex_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_change_sex_pre[hIndex].func; preHookFunc(&fd, &id, &ip); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4183,9 +4183,9 @@ void HP_login_fromchar_parse_change_sex(int fd, int id, const char *ip) { { HPMHooks.source.login.fromchar_parse_change_sex(fd, id, ip); } - if( HPMHooks.count.HP_login_fromchar_parse_change_sex_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_change_sex_post > 0) { void (*postHookFunc) (int fd, int id, const char *ip); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_change_sex_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_change_sex_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_change_sex_post[hIndex].func; postHookFunc(fd, id, ip); } @@ -4194,14 +4194,14 @@ void HP_login_fromchar_parse_change_sex(int fd, int id, const char *ip) { } void HP_login_fromchar_parse_account_reg2(int fd, int id, const char *ip) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_account_reg2_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_account_reg2_pre > 0) { void (*preHookFunc) (int *fd, int *id, const char **ip); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_reg2_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_reg2_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_reg2_pre[hIndex].func; preHookFunc(&fd, &id, &ip); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4209,9 +4209,9 @@ void HP_login_fromchar_parse_account_reg2(int fd, int id, const char *ip) { { HPMHooks.source.login.fromchar_parse_account_reg2(fd, id, ip); } - if( HPMHooks.count.HP_login_fromchar_parse_account_reg2_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_account_reg2_post > 0) { void (*postHookFunc) (int fd, int id, const char *ip); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_reg2_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_reg2_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_reg2_post[hIndex].func; postHookFunc(fd, id, ip); } @@ -4220,14 +4220,14 @@ void HP_login_fromchar_parse_account_reg2(int fd, int id, const char *ip) { } void HP_login_fromchar_parse_unban(int fd, int id, const char *ip) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_unban_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_unban_pre > 0) { void (*preHookFunc) (int *fd, int *id, const char **ip); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_unban_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_unban_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_unban_pre[hIndex].func; preHookFunc(&fd, &id, &ip); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4235,9 +4235,9 @@ void HP_login_fromchar_parse_unban(int fd, int id, const char *ip) { { HPMHooks.source.login.fromchar_parse_unban(fd, id, ip); } - if( HPMHooks.count.HP_login_fromchar_parse_unban_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_unban_post > 0) { void (*postHookFunc) (int fd, int id, const char *ip); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_unban_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_unban_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_unban_post[hIndex].func; postHookFunc(fd, id, ip); } @@ -4246,14 +4246,14 @@ void HP_login_fromchar_parse_unban(int fd, int id, const char *ip) { } void HP_login_fromchar_parse_account_online(int fd, int id) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_account_online_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_account_online_pre > 0) { void (*preHookFunc) (int *fd, int *id); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_online_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_online_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_online_pre[hIndex].func; preHookFunc(&fd, &id); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4261,9 +4261,9 @@ void HP_login_fromchar_parse_account_online(int fd, int id) { { HPMHooks.source.login.fromchar_parse_account_online(fd, id); } - if( HPMHooks.count.HP_login_fromchar_parse_account_online_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_account_online_post > 0) { void (*postHookFunc) (int fd, int id); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_online_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_online_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_online_post[hIndex].func; postHookFunc(fd, id); } @@ -4272,14 +4272,14 @@ void HP_login_fromchar_parse_account_online(int fd, int id) { } void HP_login_fromchar_parse_account_offline(int fd) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_account_offline_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_account_offline_pre > 0) { void (*preHookFunc) (int *fd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_offline_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_offline_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_offline_pre[hIndex].func; preHookFunc(&fd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4287,9 +4287,9 @@ void HP_login_fromchar_parse_account_offline(int fd) { { HPMHooks.source.login.fromchar_parse_account_offline(fd); } - if( HPMHooks.count.HP_login_fromchar_parse_account_offline_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_account_offline_post > 0) { void (*postHookFunc) (int fd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_offline_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_offline_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_offline_post[hIndex].func; postHookFunc(fd); } @@ -4298,14 +4298,14 @@ void HP_login_fromchar_parse_account_offline(int fd) { } void HP_login_fromchar_parse_online_accounts(int fd, int id) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_online_accounts_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_online_accounts_pre > 0) { void (*preHookFunc) (int *fd, int *id); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_online_accounts_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_online_accounts_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_online_accounts_pre[hIndex].func; preHookFunc(&fd, &id); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4313,9 +4313,9 @@ void HP_login_fromchar_parse_online_accounts(int fd, int id) { { HPMHooks.source.login.fromchar_parse_online_accounts(fd, id); } - if( HPMHooks.count.HP_login_fromchar_parse_online_accounts_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_online_accounts_post > 0) { void (*postHookFunc) (int fd, int id); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_online_accounts_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_online_accounts_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_online_accounts_post[hIndex].func; postHookFunc(fd, id); } @@ -4324,14 +4324,14 @@ void HP_login_fromchar_parse_online_accounts(int fd, int id) { } void HP_login_fromchar_parse_request_account_reg2(int fd) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_request_account_reg2_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_request_account_reg2_pre > 0) { void (*preHookFunc) (int *fd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_request_account_reg2_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_request_account_reg2_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_request_account_reg2_pre[hIndex].func; preHookFunc(&fd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4339,9 +4339,9 @@ void HP_login_fromchar_parse_request_account_reg2(int fd) { { HPMHooks.source.login.fromchar_parse_request_account_reg2(fd); } - if( HPMHooks.count.HP_login_fromchar_parse_request_account_reg2_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_request_account_reg2_post > 0) { void (*postHookFunc) (int fd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_request_account_reg2_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_request_account_reg2_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_request_account_reg2_post[hIndex].func; postHookFunc(fd); } @@ -4350,14 +4350,14 @@ void HP_login_fromchar_parse_request_account_reg2(int fd) { } void HP_login_fromchar_parse_update_wan_ip(int fd, int id) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_update_wan_ip_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_update_wan_ip_pre > 0) { void (*preHookFunc) (int *fd, int *id); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_update_wan_ip_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_update_wan_ip_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_update_wan_ip_pre[hIndex].func; preHookFunc(&fd, &id); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4365,9 +4365,9 @@ void HP_login_fromchar_parse_update_wan_ip(int fd, int id) { { HPMHooks.source.login.fromchar_parse_update_wan_ip(fd, id); } - if( HPMHooks.count.HP_login_fromchar_parse_update_wan_ip_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_update_wan_ip_post > 0) { void (*postHookFunc) (int fd, int id); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_update_wan_ip_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_update_wan_ip_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_update_wan_ip_post[hIndex].func; postHookFunc(fd, id); } @@ -4376,14 +4376,14 @@ void HP_login_fromchar_parse_update_wan_ip(int fd, int id) { } void HP_login_fromchar_parse_all_offline(int fd, int id) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_all_offline_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_all_offline_pre > 0) { void (*preHookFunc) (int *fd, int *id); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_all_offline_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_all_offline_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_all_offline_pre[hIndex].func; preHookFunc(&fd, &id); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4391,9 +4391,9 @@ void HP_login_fromchar_parse_all_offline(int fd, int id) { { HPMHooks.source.login.fromchar_parse_all_offline(fd, id); } - if( HPMHooks.count.HP_login_fromchar_parse_all_offline_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_all_offline_post > 0) { void (*postHookFunc) (int fd, int id); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_all_offline_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_all_offline_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_all_offline_post[hIndex].func; postHookFunc(fd, id); } @@ -4402,14 +4402,14 @@ void HP_login_fromchar_parse_all_offline(int fd, int id) { } void HP_login_fromchar_parse_change_pincode(int fd) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_change_pincode_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_change_pincode_pre > 0) { void (*preHookFunc) (int *fd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_change_pincode_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_change_pincode_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_change_pincode_pre[hIndex].func; preHookFunc(&fd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4417,9 +4417,9 @@ void HP_login_fromchar_parse_change_pincode(int fd) { { HPMHooks.source.login.fromchar_parse_change_pincode(fd); } - if( HPMHooks.count.HP_login_fromchar_parse_change_pincode_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_change_pincode_post > 0) { void (*postHookFunc) (int fd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_change_pincode_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_change_pincode_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_change_pincode_post[hIndex].func; postHookFunc(fd); } @@ -4429,14 +4429,14 @@ void HP_login_fromchar_parse_change_pincode(int fd) { bool HP_login_fromchar_parse_wrong_pincode(int fd) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_login_fromchar_parse_wrong_pincode_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_wrong_pincode_pre > 0) { bool (*preHookFunc) (int *fd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_wrong_pincode_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_wrong_pincode_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_wrong_pincode_pre[hIndex].func; retVal___ = preHookFunc(&fd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -4444,9 +4444,9 @@ bool HP_login_fromchar_parse_wrong_pincode(int fd) { { retVal___ = HPMHooks.source.login.fromchar_parse_wrong_pincode(fd); } - if( HPMHooks.count.HP_login_fromchar_parse_wrong_pincode_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_wrong_pincode_post > 0) { bool (*postHookFunc) (bool retVal___, int fd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_wrong_pincode_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_wrong_pincode_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_wrong_pincode_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd); } @@ -4455,14 +4455,14 @@ bool HP_login_fromchar_parse_wrong_pincode(int fd) { } void HP_login_fromchar_parse_accinfo(int fd) { int hIndex = 0; - if( HPMHooks.count.HP_login_fromchar_parse_accinfo_pre ) { + if (HPMHooks.count.HP_login_fromchar_parse_accinfo_pre > 0) { void (*preHookFunc) (int *fd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_accinfo_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_accinfo_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_fromchar_parse_accinfo_pre[hIndex].func; preHookFunc(&fd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4470,9 +4470,9 @@ void HP_login_fromchar_parse_accinfo(int fd) { { HPMHooks.source.login.fromchar_parse_accinfo(fd); } - if( HPMHooks.count.HP_login_fromchar_parse_accinfo_post ) { + if (HPMHooks.count.HP_login_fromchar_parse_accinfo_post > 0) { void (*postHookFunc) (int fd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_accinfo_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_accinfo_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_fromchar_parse_accinfo_post[hIndex].func; postHookFunc(fd); } @@ -4482,14 +4482,14 @@ void HP_login_fromchar_parse_accinfo(int fd) { int HP_login_parse_fromchar(int fd) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_login_parse_fromchar_pre ) { + if (HPMHooks.count.HP_login_parse_fromchar_pre > 0) { int (*preHookFunc) (int *fd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_fromchar_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_fromchar_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_parse_fromchar_pre[hIndex].func; retVal___ = preHookFunc(&fd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -4497,9 +4497,9 @@ int HP_login_parse_fromchar(int fd) { { retVal___ = HPMHooks.source.login.parse_fromchar(fd); } - if( HPMHooks.count.HP_login_parse_fromchar_post ) { + if (HPMHooks.count.HP_login_parse_fromchar_post > 0) { int (*postHookFunc) (int retVal___, int fd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_fromchar_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_fromchar_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_parse_fromchar_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd); } @@ -4508,14 +4508,14 @@ int HP_login_parse_fromchar(int fd) { } void HP_login_kick(struct login_session_data *sd) { int hIndex = 0; - if( HPMHooks.count.HP_login_kick_pre ) { + if (HPMHooks.count.HP_login_kick_pre > 0) { void (*preHookFunc) (struct login_session_data **sd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_kick_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_kick_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_kick_pre[hIndex].func; preHookFunc(&sd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4523,9 +4523,9 @@ void HP_login_kick(struct login_session_data *sd) { { HPMHooks.source.login.kick(sd); } - if( HPMHooks.count.HP_login_kick_post ) { + if (HPMHooks.count.HP_login_kick_post > 0) { void (*postHookFunc) (struct login_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_kick_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_kick_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_kick_post[hIndex].func; postHookFunc(sd); } @@ -4534,14 +4534,14 @@ void HP_login_kick(struct login_session_data *sd) { } void HP_login_auth_ok(struct login_session_data *sd) { int hIndex = 0; - if( HPMHooks.count.HP_login_auth_ok_pre ) { + if (HPMHooks.count.HP_login_auth_ok_pre > 0) { void (*preHookFunc) (struct login_session_data **sd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_auth_ok_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_auth_ok_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_auth_ok_pre[hIndex].func; preHookFunc(&sd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4549,9 +4549,9 @@ void HP_login_auth_ok(struct login_session_data *sd) { { HPMHooks.source.login.auth_ok(sd); } - if( HPMHooks.count.HP_login_auth_ok_post ) { + if (HPMHooks.count.HP_login_auth_ok_post > 0) { void (*postHookFunc) (struct login_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_auth_ok_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_auth_ok_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_auth_ok_post[hIndex].func; postHookFunc(sd); } @@ -4560,14 +4560,14 @@ void HP_login_auth_ok(struct login_session_data *sd) { } void HP_login_auth_failed(struct login_session_data *sd, int result) { int hIndex = 0; - if( HPMHooks.count.HP_login_auth_failed_pre ) { + if (HPMHooks.count.HP_login_auth_failed_pre > 0) { void (*preHookFunc) (struct login_session_data **sd, int *result); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_auth_failed_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_auth_failed_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_auth_failed_pre[hIndex].func; preHookFunc(&sd, &result); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4575,9 +4575,9 @@ void HP_login_auth_failed(struct login_session_data *sd, int result) { { HPMHooks.source.login.auth_failed(sd, result); } - if( HPMHooks.count.HP_login_auth_failed_post ) { + if (HPMHooks.count.HP_login_auth_failed_post > 0) { void (*postHookFunc) (struct login_session_data *sd, int result); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_auth_failed_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_auth_failed_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_auth_failed_post[hIndex].func; postHookFunc(sd, result); } @@ -4587,14 +4587,14 @@ void HP_login_auth_failed(struct login_session_data *sd, int result) { bool HP_login_client_login(int fd, struct login_session_data *sd) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_login_client_login_pre ) { + if (HPMHooks.count.HP_login_client_login_pre > 0) { bool (*preHookFunc) (int *fd, struct login_session_data **sd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_client_login_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_client_login_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_client_login_pre[hIndex].func; retVal___ = preHookFunc(&fd, &sd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -4602,9 +4602,9 @@ bool HP_login_client_login(int fd, struct login_session_data *sd) { { retVal___ = HPMHooks.source.login.client_login(fd, sd); } - if( HPMHooks.count.HP_login_client_login_post ) { + if (HPMHooks.count.HP_login_client_login_post > 0) { bool (*postHookFunc) (bool retVal___, int fd, struct login_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_client_login_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_client_login_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_client_login_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd, sd); } @@ -4613,14 +4613,14 @@ bool HP_login_client_login(int fd, struct login_session_data *sd) { } void HP_login_char_server_connection_status(int fd, struct login_session_data *sd, uint8 status) { int hIndex = 0; - if( HPMHooks.count.HP_login_char_server_connection_status_pre ) { + if (HPMHooks.count.HP_login_char_server_connection_status_pre > 0) { void (*preHookFunc) (int *fd, struct login_session_data **sd, uint8 *status); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_char_server_connection_status_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_char_server_connection_status_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_char_server_connection_status_pre[hIndex].func; preHookFunc(&fd, &sd, &status); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4628,9 +4628,9 @@ void HP_login_char_server_connection_status(int fd, struct login_session_data *s { HPMHooks.source.login.char_server_connection_status(fd, sd, status); } - if( HPMHooks.count.HP_login_char_server_connection_status_post ) { + if (HPMHooks.count.HP_login_char_server_connection_status_post > 0) { void (*postHookFunc) (int fd, struct login_session_data *sd, uint8 status); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_char_server_connection_status_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_char_server_connection_status_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_char_server_connection_status_post[hIndex].func; postHookFunc(fd, sd, status); } @@ -4639,14 +4639,14 @@ void HP_login_char_server_connection_status(int fd, struct login_session_data *s } void HP_login_parse_request_connection(int fd, struct login_session_data *sd, const char *ip, uint32 ipl) { int hIndex = 0; - if( HPMHooks.count.HP_login_parse_request_connection_pre ) { + if (HPMHooks.count.HP_login_parse_request_connection_pre > 0) { void (*preHookFunc) (int *fd, struct login_session_data **sd, const char **ip, uint32 *ipl); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_request_connection_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_request_connection_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_parse_request_connection_pre[hIndex].func; preHookFunc(&fd, &sd, &ip, &ipl); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4654,9 +4654,9 @@ void HP_login_parse_request_connection(int fd, struct login_session_data *sd, co { HPMHooks.source.login.parse_request_connection(fd, sd, ip, ipl); } - if( HPMHooks.count.HP_login_parse_request_connection_post ) { + if (HPMHooks.count.HP_login_parse_request_connection_post > 0) { void (*postHookFunc) (int fd, struct login_session_data *sd, const char *ip, uint32 ipl); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_request_connection_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_request_connection_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_parse_request_connection_post[hIndex].func; postHookFunc(fd, sd, ip, ipl); } @@ -4665,14 +4665,14 @@ void HP_login_parse_request_connection(int fd, struct login_session_data *sd, co } void HP_login_config_set_defaults(void) { int hIndex = 0; - if( HPMHooks.count.HP_login_config_set_defaults_pre ) { + if (HPMHooks.count.HP_login_config_set_defaults_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_config_set_defaults_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_config_set_defaults_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_config_set_defaults_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4680,9 +4680,9 @@ void HP_login_config_set_defaults(void) { { HPMHooks.source.login.config_set_defaults(); } - if( HPMHooks.count.HP_login_config_set_defaults_post ) { + if (HPMHooks.count.HP_login_config_set_defaults_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_config_set_defaults_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_config_set_defaults_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_config_set_defaults_post[hIndex].func; postHookFunc(); } @@ -4692,14 +4692,14 @@ void HP_login_config_set_defaults(void) { bool HP_login_config_read(const char *filename, bool included) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_login_config_read_pre ) { + if (HPMHooks.count.HP_login_config_read_pre > 0) { bool (*preHookFunc) (const char **filename, bool *included); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_config_read_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_config_read_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_login_config_read_pre[hIndex].func; retVal___ = preHookFunc(&filename, &included); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -4707,9 +4707,9 @@ bool HP_login_config_read(const char *filename, bool included) { { retVal___ = HPMHooks.source.login.config_read(filename, included); } - if( HPMHooks.count.HP_login_config_read_post ) { + if (HPMHooks.count.HP_login_config_read_post > 0) { bool (*postHookFunc) (bool retVal___, const char *filename, bool included); - for(hIndex = 0; hIndex < HPMHooks.count.HP_login_config_read_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_login_config_read_post; hIndex++) { postHookFunc = HPMHooks.list.HP_login_config_read_post[hIndex].func; retVal___ = postHookFunc(retVal___, filename, included); } @@ -4719,14 +4719,14 @@ bool HP_login_config_read(const char *filename, bool included) { /* md5_interface */ void HP_md5_string(const char *string, char *output) { int hIndex = 0; - if( HPMHooks.count.HP_md5_string_pre ) { + if (HPMHooks.count.HP_md5_string_pre > 0) { void (*preHookFunc) (const char **string, char **output); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_md5_string_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_md5_string_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_md5_string_pre[hIndex].func; preHookFunc(&string, &output); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4734,9 +4734,9 @@ void HP_md5_string(const char *string, char *output) { { HPMHooks.source.md5.string(string, output); } - if( HPMHooks.count.HP_md5_string_post ) { + if (HPMHooks.count.HP_md5_string_post > 0) { void (*postHookFunc) (const char *string, char *output); - for(hIndex = 0; hIndex < HPMHooks.count.HP_md5_string_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_md5_string_post; hIndex++) { postHookFunc = HPMHooks.list.HP_md5_string_post[hIndex].func; postHookFunc(string, output); } @@ -4745,14 +4745,14 @@ void HP_md5_string(const char *string, char *output) { } void HP_md5_binary(const uint8 *buf, const int buf_size, uint8 *output) { int hIndex = 0; - if( HPMHooks.count.HP_md5_binary_pre ) { + if (HPMHooks.count.HP_md5_binary_pre > 0) { void (*preHookFunc) (const uint8 **buf, const int *buf_size, uint8 **output); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_md5_binary_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_md5_binary_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_md5_binary_pre[hIndex].func; preHookFunc(&buf, &buf_size, &output); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4760,9 +4760,9 @@ void HP_md5_binary(const uint8 *buf, const int buf_size, uint8 *output) { { HPMHooks.source.md5.binary(buf, buf_size, output); } - if( HPMHooks.count.HP_md5_binary_post ) { + if (HPMHooks.count.HP_md5_binary_post > 0) { void (*postHookFunc) (const uint8 *buf, const int buf_size, uint8 *output); - for(hIndex = 0; hIndex < HPMHooks.count.HP_md5_binary_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_md5_binary_post; hIndex++) { postHookFunc = HPMHooks.list.HP_md5_binary_post[hIndex].func; postHookFunc(buf, buf_size, output); } @@ -4771,14 +4771,14 @@ void HP_md5_binary(const uint8 *buf, const int buf_size, uint8 *output) { } void HP_md5_salt(int len, char *output) { int hIndex = 0; - if( HPMHooks.count.HP_md5_salt_pre ) { + if (HPMHooks.count.HP_md5_salt_pre > 0) { void (*preHookFunc) (int *len, char **output); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_md5_salt_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_md5_salt_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_md5_salt_pre[hIndex].func; preHookFunc(&len, &output); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4786,9 +4786,9 @@ void HP_md5_salt(int len, char *output) { { HPMHooks.source.md5.salt(len, output); } - if( HPMHooks.count.HP_md5_salt_post ) { + if (HPMHooks.count.HP_md5_salt_post > 0) { void (*postHookFunc) (int len, char *output); - for(hIndex = 0; hIndex < HPMHooks.count.HP_md5_salt_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_md5_salt_post; hIndex++) { postHookFunc = HPMHooks.list.HP_md5_salt_post[hIndex].func; postHookFunc(len, output); } @@ -4799,14 +4799,14 @@ void HP_md5_salt(int len, char *output) { struct mutex_data* HP_mutex_create(void) { int hIndex = 0; struct mutex_data* retVal___ = NULL; - if( HPMHooks.count.HP_mutex_create_pre ) { + if (HPMHooks.count.HP_mutex_create_pre > 0) { struct mutex_data* (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_create_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_create_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_mutex_create_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -4814,9 +4814,9 @@ struct mutex_data* HP_mutex_create(void) { { retVal___ = HPMHooks.source.mutex.create(); } - if( HPMHooks.count.HP_mutex_create_post ) { + if (HPMHooks.count.HP_mutex_create_post > 0) { struct mutex_data* (*postHookFunc) (struct mutex_data* retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_create_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_create_post; hIndex++) { postHookFunc = HPMHooks.list.HP_mutex_create_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -4825,14 +4825,14 @@ struct mutex_data* HP_mutex_create(void) { } void HP_mutex_destroy(struct mutex_data *m) { int hIndex = 0; - if( HPMHooks.count.HP_mutex_destroy_pre ) { + if (HPMHooks.count.HP_mutex_destroy_pre > 0) { void (*preHookFunc) (struct mutex_data **m); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_destroy_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_destroy_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_mutex_destroy_pre[hIndex].func; preHookFunc(&m); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4840,9 +4840,9 @@ void HP_mutex_destroy(struct mutex_data *m) { { HPMHooks.source.mutex.destroy(m); } - if( HPMHooks.count.HP_mutex_destroy_post ) { + if (HPMHooks.count.HP_mutex_destroy_post > 0) { void (*postHookFunc) (struct mutex_data *m); - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_destroy_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_destroy_post; hIndex++) { postHookFunc = HPMHooks.list.HP_mutex_destroy_post[hIndex].func; postHookFunc(m); } @@ -4851,14 +4851,14 @@ void HP_mutex_destroy(struct mutex_data *m) { } void HP_mutex_lock(struct mutex_data *m) { int hIndex = 0; - if( HPMHooks.count.HP_mutex_lock_pre ) { + if (HPMHooks.count.HP_mutex_lock_pre > 0) { void (*preHookFunc) (struct mutex_data **m); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_lock_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_lock_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_mutex_lock_pre[hIndex].func; preHookFunc(&m); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4866,9 +4866,9 @@ void HP_mutex_lock(struct mutex_data *m) { { HPMHooks.source.mutex.lock(m); } - if( HPMHooks.count.HP_mutex_lock_post ) { + if (HPMHooks.count.HP_mutex_lock_post > 0) { void (*postHookFunc) (struct mutex_data *m); - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_lock_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_lock_post; hIndex++) { postHookFunc = HPMHooks.list.HP_mutex_lock_post[hIndex].func; postHookFunc(m); } @@ -4878,14 +4878,14 @@ void HP_mutex_lock(struct mutex_data *m) { bool HP_mutex_trylock(struct mutex_data *m) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_mutex_trylock_pre ) { + if (HPMHooks.count.HP_mutex_trylock_pre > 0) { bool (*preHookFunc) (struct mutex_data **m); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_trylock_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_trylock_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_mutex_trylock_pre[hIndex].func; retVal___ = preHookFunc(&m); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -4893,9 +4893,9 @@ bool HP_mutex_trylock(struct mutex_data *m) { { retVal___ = HPMHooks.source.mutex.trylock(m); } - if( HPMHooks.count.HP_mutex_trylock_post ) { + if (HPMHooks.count.HP_mutex_trylock_post > 0) { bool (*postHookFunc) (bool retVal___, struct mutex_data *m); - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_trylock_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_trylock_post; hIndex++) { postHookFunc = HPMHooks.list.HP_mutex_trylock_post[hIndex].func; retVal___ = postHookFunc(retVal___, m); } @@ -4904,14 +4904,14 @@ bool HP_mutex_trylock(struct mutex_data *m) { } void HP_mutex_unlock(struct mutex_data *m) { int hIndex = 0; - if( HPMHooks.count.HP_mutex_unlock_pre ) { + if (HPMHooks.count.HP_mutex_unlock_pre > 0) { void (*preHookFunc) (struct mutex_data **m); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_unlock_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_unlock_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_mutex_unlock_pre[hIndex].func; preHookFunc(&m); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4919,9 +4919,9 @@ void HP_mutex_unlock(struct mutex_data *m) { { HPMHooks.source.mutex.unlock(m); } - if( HPMHooks.count.HP_mutex_unlock_post ) { + if (HPMHooks.count.HP_mutex_unlock_post > 0) { void (*postHookFunc) (struct mutex_data *m); - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_unlock_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_unlock_post; hIndex++) { postHookFunc = HPMHooks.list.HP_mutex_unlock_post[hIndex].func; postHookFunc(m); } @@ -4931,14 +4931,14 @@ void HP_mutex_unlock(struct mutex_data *m) { struct cond_data* HP_mutex_cond_create(void) { int hIndex = 0; struct cond_data* retVal___ = NULL; - if( HPMHooks.count.HP_mutex_cond_create_pre ) { + if (HPMHooks.count.HP_mutex_cond_create_pre > 0) { struct cond_data* (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_create_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_create_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_mutex_cond_create_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -4946,9 +4946,9 @@ struct cond_data* HP_mutex_cond_create(void) { { retVal___ = HPMHooks.source.mutex.cond_create(); } - if( HPMHooks.count.HP_mutex_cond_create_post ) { + if (HPMHooks.count.HP_mutex_cond_create_post > 0) { struct cond_data* (*postHookFunc) (struct cond_data* retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_create_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_create_post; hIndex++) { postHookFunc = HPMHooks.list.HP_mutex_cond_create_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -4957,14 +4957,14 @@ struct cond_data* HP_mutex_cond_create(void) { } void HP_mutex_cond_destroy(struct cond_data *c) { int hIndex = 0; - if( HPMHooks.count.HP_mutex_cond_destroy_pre ) { + if (HPMHooks.count.HP_mutex_cond_destroy_pre > 0) { void (*preHookFunc) (struct cond_data **c); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_destroy_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_destroy_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_mutex_cond_destroy_pre[hIndex].func; preHookFunc(&c); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4972,9 +4972,9 @@ void HP_mutex_cond_destroy(struct cond_data *c) { { HPMHooks.source.mutex.cond_destroy(c); } - if( HPMHooks.count.HP_mutex_cond_destroy_post ) { + if (HPMHooks.count.HP_mutex_cond_destroy_post > 0) { void (*postHookFunc) (struct cond_data *c); - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_destroy_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_destroy_post; hIndex++) { postHookFunc = HPMHooks.list.HP_mutex_cond_destroy_post[hIndex].func; postHookFunc(c); } @@ -4983,14 +4983,14 @@ void HP_mutex_cond_destroy(struct cond_data *c) { } void HP_mutex_cond_wait(struct cond_data *c, struct mutex_data *m, sysint timeout_ticks) { int hIndex = 0; - if( HPMHooks.count.HP_mutex_cond_wait_pre ) { + if (HPMHooks.count.HP_mutex_cond_wait_pre > 0) { void (*preHookFunc) (struct cond_data **c, struct mutex_data **m, sysint *timeout_ticks); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_wait_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_wait_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_mutex_cond_wait_pre[hIndex].func; preHookFunc(&c, &m, &timeout_ticks); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -4998,9 +4998,9 @@ void HP_mutex_cond_wait(struct cond_data *c, struct mutex_data *m, sysint timeou { HPMHooks.source.mutex.cond_wait(c, m, timeout_ticks); } - if( HPMHooks.count.HP_mutex_cond_wait_post ) { + if (HPMHooks.count.HP_mutex_cond_wait_post > 0) { void (*postHookFunc) (struct cond_data *c, struct mutex_data *m, sysint timeout_ticks); - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_wait_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_wait_post; hIndex++) { postHookFunc = HPMHooks.list.HP_mutex_cond_wait_post[hIndex].func; postHookFunc(c, m, timeout_ticks); } @@ -5009,14 +5009,14 @@ void HP_mutex_cond_wait(struct cond_data *c, struct mutex_data *m, sysint timeou } void HP_mutex_cond_signal(struct cond_data *c) { int hIndex = 0; - if( HPMHooks.count.HP_mutex_cond_signal_pre ) { + if (HPMHooks.count.HP_mutex_cond_signal_pre > 0) { void (*preHookFunc) (struct cond_data **c); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_signal_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_signal_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_mutex_cond_signal_pre[hIndex].func; preHookFunc(&c); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -5024,9 +5024,9 @@ void HP_mutex_cond_signal(struct cond_data *c) { { HPMHooks.source.mutex.cond_signal(c); } - if( HPMHooks.count.HP_mutex_cond_signal_post ) { + if (HPMHooks.count.HP_mutex_cond_signal_post > 0) { void (*postHookFunc) (struct cond_data *c); - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_signal_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_signal_post; hIndex++) { postHookFunc = HPMHooks.list.HP_mutex_cond_signal_post[hIndex].func; postHookFunc(c); } @@ -5035,14 +5035,14 @@ void HP_mutex_cond_signal(struct cond_data *c) { } void HP_mutex_cond_broadcast(struct cond_data *c) { int hIndex = 0; - if( HPMHooks.count.HP_mutex_cond_broadcast_pre ) { + if (HPMHooks.count.HP_mutex_cond_broadcast_pre > 0) { void (*preHookFunc) (struct cond_data **c); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_broadcast_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_broadcast_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_mutex_cond_broadcast_pre[hIndex].func; preHookFunc(&c); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -5050,9 +5050,9 @@ void HP_mutex_cond_broadcast(struct cond_data *c) { { HPMHooks.source.mutex.cond_broadcast(c); } - if( HPMHooks.count.HP_mutex_cond_broadcast_post ) { + if (HPMHooks.count.HP_mutex_cond_broadcast_post > 0) { void (*postHookFunc) (struct cond_data *c); - for(hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_broadcast_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_mutex_cond_broadcast_post; hIndex++) { postHookFunc = HPMHooks.list.HP_mutex_cond_broadcast_post[hIndex].func; postHookFunc(c); } @@ -5062,14 +5062,14 @@ void HP_mutex_cond_broadcast(struct cond_data *c) { /* nullpo_interface */ void HP_nullpo_assert_report(const char *file, int line, const char *func, const char *targetname, const char *title) { int hIndex = 0; - if( HPMHooks.count.HP_nullpo_assert_report_pre ) { + if (HPMHooks.count.HP_nullpo_assert_report_pre > 0) { void (*preHookFunc) (const char **file, int *line, const char **func, const char **targetname, const char **title); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_nullpo_assert_report_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_nullpo_assert_report_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_nullpo_assert_report_pre[hIndex].func; preHookFunc(&file, &line, &func, &targetname, &title); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -5077,9 +5077,9 @@ void HP_nullpo_assert_report(const char *file, int line, const char *func, const { HPMHooks.source.nullpo.assert_report(file, line, func, targetname, title); } - if( HPMHooks.count.HP_nullpo_assert_report_post ) { + if (HPMHooks.count.HP_nullpo_assert_report_post > 0) { void (*postHookFunc) (const char *file, int line, const char *func, const char *targetname, const char *title); - for(hIndex = 0; hIndex < HPMHooks.count.HP_nullpo_assert_report_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_nullpo_assert_report_post; hIndex++) { postHookFunc = HPMHooks.list.HP_nullpo_assert_report_post[hIndex].func; postHookFunc(file, line, func, targetname, title); } @@ -5089,14 +5089,14 @@ void HP_nullpo_assert_report(const char *file, int line, const char *func, const /* rnd_interface */ void HP_rnd_init(void) { int hIndex = 0; - if( HPMHooks.count.HP_rnd_init_pre ) { + if (HPMHooks.count.HP_rnd_init_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_rnd_init_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_rnd_init_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_rnd_init_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -5104,9 +5104,9 @@ void HP_rnd_init(void) { { HPMHooks.source.rnd.init(); } - if( HPMHooks.count.HP_rnd_init_post ) { + if (HPMHooks.count.HP_rnd_init_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_rnd_init_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_rnd_init_post; hIndex++) { postHookFunc = HPMHooks.list.HP_rnd_init_post[hIndex].func; postHookFunc(); } @@ -5115,14 +5115,14 @@ void HP_rnd_init(void) { } void HP_rnd_final(void) { int hIndex = 0; - if( HPMHooks.count.HP_rnd_final_pre ) { + if (HPMHooks.count.HP_rnd_final_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_rnd_final_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_rnd_final_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_rnd_final_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -5130,9 +5130,9 @@ void HP_rnd_final(void) { { HPMHooks.source.rnd.final(); } - if( HPMHooks.count.HP_rnd_final_post ) { + if (HPMHooks.count.HP_rnd_final_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_rnd_final_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_rnd_final_post; hIndex++) { postHookFunc = HPMHooks.list.HP_rnd_final_post[hIndex].func; postHookFunc(); } @@ -5141,14 +5141,14 @@ void HP_rnd_final(void) { } void HP_rnd_seed(uint32 seed) { int hIndex = 0; - if( HPMHooks.count.HP_rnd_seed_pre ) { + if (HPMHooks.count.HP_rnd_seed_pre > 0) { void (*preHookFunc) (uint32 *seed); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_rnd_seed_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_rnd_seed_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_rnd_seed_pre[hIndex].func; preHookFunc(&seed); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -5156,9 +5156,9 @@ void HP_rnd_seed(uint32 seed) { { HPMHooks.source.rnd.seed(seed); } - if( HPMHooks.count.HP_rnd_seed_post ) { + if (HPMHooks.count.HP_rnd_seed_post > 0) { void (*postHookFunc) (uint32 seed); - for(hIndex = 0; hIndex < HPMHooks.count.HP_rnd_seed_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_rnd_seed_post; hIndex++) { postHookFunc = HPMHooks.list.HP_rnd_seed_post[hIndex].func; postHookFunc(seed); } @@ -5168,14 +5168,14 @@ void HP_rnd_seed(uint32 seed) { int32 HP_rnd_random(void) { int hIndex = 0; int32 retVal___ = 0; - if( HPMHooks.count.HP_rnd_random_pre ) { + if (HPMHooks.count.HP_rnd_random_pre > 0) { int32 (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_rnd_random_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_rnd_random_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_rnd_random_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5183,9 +5183,9 @@ int32 HP_rnd_random(void) { { retVal___ = HPMHooks.source.rnd.random(); } - if( HPMHooks.count.HP_rnd_random_post ) { + if (HPMHooks.count.HP_rnd_random_post > 0) { int32 (*postHookFunc) (int32 retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_rnd_random_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_rnd_random_post; hIndex++) { postHookFunc = HPMHooks.list.HP_rnd_random_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -5195,14 +5195,14 @@ int32 HP_rnd_random(void) { uint32 HP_rnd_roll(uint32 dice_faces) { int hIndex = 0; uint32 retVal___ = 0; - if( HPMHooks.count.HP_rnd_roll_pre ) { + if (HPMHooks.count.HP_rnd_roll_pre > 0) { uint32 (*preHookFunc) (uint32 *dice_faces); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_rnd_roll_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_rnd_roll_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_rnd_roll_pre[hIndex].func; retVal___ = preHookFunc(&dice_faces); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5210,9 +5210,9 @@ uint32 HP_rnd_roll(uint32 dice_faces) { { retVal___ = HPMHooks.source.rnd.roll(dice_faces); } - if( HPMHooks.count.HP_rnd_roll_post ) { + if (HPMHooks.count.HP_rnd_roll_post > 0) { uint32 (*postHookFunc) (uint32 retVal___, uint32 dice_faces); - for(hIndex = 0; hIndex < HPMHooks.count.HP_rnd_roll_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_rnd_roll_post; hIndex++) { postHookFunc = HPMHooks.list.HP_rnd_roll_post[hIndex].func; retVal___ = postHookFunc(retVal___, dice_faces); } @@ -5222,14 +5222,14 @@ uint32 HP_rnd_roll(uint32 dice_faces) { int32 HP_rnd_value(int32 min, int32 max) { int hIndex = 0; int32 retVal___ = 0; - if( HPMHooks.count.HP_rnd_value_pre ) { + if (HPMHooks.count.HP_rnd_value_pre > 0) { int32 (*preHookFunc) (int32 *min, int32 *max); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_rnd_value_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_rnd_value_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_rnd_value_pre[hIndex].func; retVal___ = preHookFunc(&min, &max); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5237,9 +5237,9 @@ int32 HP_rnd_value(int32 min, int32 max) { { retVal___ = HPMHooks.source.rnd.value(min, max); } - if( HPMHooks.count.HP_rnd_value_post ) { + if (HPMHooks.count.HP_rnd_value_post > 0) { int32 (*postHookFunc) (int32 retVal___, int32 min, int32 max); - for(hIndex = 0; hIndex < HPMHooks.count.HP_rnd_value_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_rnd_value_post; hIndex++) { postHookFunc = HPMHooks.list.HP_rnd_value_post[hIndex].func; retVal___ = postHookFunc(retVal___, min, max); } @@ -5249,14 +5249,14 @@ int32 HP_rnd_value(int32 min, int32 max) { double HP_rnd_uniform(void) { int hIndex = 0; double retVal___ = 0.; - if( HPMHooks.count.HP_rnd_uniform_pre ) { + if (HPMHooks.count.HP_rnd_uniform_pre > 0) { double (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_rnd_uniform_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_rnd_uniform_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_rnd_uniform_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5264,9 +5264,9 @@ double HP_rnd_uniform(void) { { retVal___ = HPMHooks.source.rnd.uniform(); } - if( HPMHooks.count.HP_rnd_uniform_post ) { + if (HPMHooks.count.HP_rnd_uniform_post > 0) { double (*postHookFunc) (double retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_rnd_uniform_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_rnd_uniform_post; hIndex++) { postHookFunc = HPMHooks.list.HP_rnd_uniform_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -5276,14 +5276,14 @@ double HP_rnd_uniform(void) { double HP_rnd_uniform53(void) { int hIndex = 0; double retVal___ = 0.; - if( HPMHooks.count.HP_rnd_uniform53_pre ) { + if (HPMHooks.count.HP_rnd_uniform53_pre > 0) { double (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_rnd_uniform53_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_rnd_uniform53_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_rnd_uniform53_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5291,9 +5291,9 @@ double HP_rnd_uniform53(void) { { retVal___ = HPMHooks.source.rnd.uniform53(); } - if( HPMHooks.count.HP_rnd_uniform53_post ) { + if (HPMHooks.count.HP_rnd_uniform53_post > 0) { double (*postHookFunc) (double retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_rnd_uniform53_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_rnd_uniform53_post; hIndex++) { postHookFunc = HPMHooks.list.HP_rnd_uniform53_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -5303,14 +5303,14 @@ double HP_rnd_uniform53(void) { /* showmsg_interface */ void HP_showmsg_init(void) { int hIndex = 0; - if( HPMHooks.count.HP_showmsg_init_pre ) { + if (HPMHooks.count.HP_showmsg_init_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_showmsg_init_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_showmsg_init_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_showmsg_init_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -5318,9 +5318,9 @@ void HP_showmsg_init(void) { { HPMHooks.source.showmsg.init(); } - if( HPMHooks.count.HP_showmsg_init_post ) { + if (HPMHooks.count.HP_showmsg_init_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_showmsg_init_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_showmsg_init_post; hIndex++) { postHookFunc = HPMHooks.list.HP_showmsg_init_post[hIndex].func; postHookFunc(); } @@ -5329,14 +5329,14 @@ void HP_showmsg_init(void) { } void HP_showmsg_final(void) { int hIndex = 0; - if( HPMHooks.count.HP_showmsg_final_pre ) { + if (HPMHooks.count.HP_showmsg_final_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_showmsg_final_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_showmsg_final_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_showmsg_final_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -5344,9 +5344,9 @@ void HP_showmsg_final(void) { { HPMHooks.source.showmsg.final(); } - if( HPMHooks.count.HP_showmsg_final_post ) { + if (HPMHooks.count.HP_showmsg_final_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_showmsg_final_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_showmsg_final_post; hIndex++) { postHookFunc = HPMHooks.list.HP_showmsg_final_post[hIndex].func; postHookFunc(); } @@ -5355,14 +5355,14 @@ void HP_showmsg_final(void) { } void HP_showmsg_clearScreen(void) { int hIndex = 0; - if( HPMHooks.count.HP_showmsg_clearScreen_pre ) { + if (HPMHooks.count.HP_showmsg_clearScreen_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_showmsg_clearScreen_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_showmsg_clearScreen_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_showmsg_clearScreen_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -5370,9 +5370,9 @@ void HP_showmsg_clearScreen(void) { { HPMHooks.source.showmsg.clearScreen(); } - if( HPMHooks.count.HP_showmsg_clearScreen_post ) { + if (HPMHooks.count.HP_showmsg_clearScreen_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_showmsg_clearScreen_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_showmsg_clearScreen_post; hIndex++) { postHookFunc = HPMHooks.list.HP_showmsg_clearScreen_post[hIndex].func; postHookFunc(); } @@ -5382,16 +5382,16 @@ void HP_showmsg_clearScreen(void) { int HP_showmsg_showMessageV(const char *string, va_list ap) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_showmsg_showMessageV_pre ) { + if (HPMHooks.count.HP_showmsg_showMessageV_pre > 0) { int (*preHookFunc) (const char **string, va_list ap); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_showmsg_showMessageV_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_showmsg_showMessageV_pre; hIndex++) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_showmsg_showMessageV_pre[hIndex].func; retVal___ = preHookFunc(&string, ap___copy); va_end(ap___copy); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5401,9 +5401,9 @@ int HP_showmsg_showMessageV(const char *string, va_list ap) { retVal___ = HPMHooks.source.showmsg.showMessageV(string, ap___copy); va_end(ap___copy); } - if( HPMHooks.count.HP_showmsg_showMessageV_post ) { + if (HPMHooks.count.HP_showmsg_showMessageV_post > 0) { int (*postHookFunc) (int retVal___, const char *string, va_list ap); - for(hIndex = 0; hIndex < HPMHooks.count.HP_showmsg_showMessageV_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_showmsg_showMessageV_post; hIndex++) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_showmsg_showMessageV_post[hIndex].func; retVal___ = postHookFunc(retVal___, string, ap___copy); @@ -5415,14 +5415,14 @@ int HP_showmsg_showMessageV(const char *string, va_list ap) { /* socket_interface */ void HP_sockt_init(void) { int hIndex = 0; - if( HPMHooks.count.HP_sockt_init_pre ) { + if (HPMHooks.count.HP_sockt_init_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_init_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_init_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_init_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -5430,9 +5430,9 @@ void HP_sockt_init(void) { { HPMHooks.source.sockt.init(); } - if( HPMHooks.count.HP_sockt_init_post ) { + if (HPMHooks.count.HP_sockt_init_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_init_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_init_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_init_post[hIndex].func; postHookFunc(); } @@ -5441,14 +5441,14 @@ void HP_sockt_init(void) { } void HP_sockt_final(void) { int hIndex = 0; - if( HPMHooks.count.HP_sockt_final_pre ) { + if (HPMHooks.count.HP_sockt_final_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_final_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_final_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_final_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -5456,9 +5456,9 @@ void HP_sockt_final(void) { { HPMHooks.source.sockt.final(); } - if( HPMHooks.count.HP_sockt_final_post ) { + if (HPMHooks.count.HP_sockt_final_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_final_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_final_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_final_post[hIndex].func; postHookFunc(); } @@ -5468,14 +5468,14 @@ void HP_sockt_final(void) { int HP_sockt_perform(int next) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_sockt_perform_pre ) { + if (HPMHooks.count.HP_sockt_perform_pre > 0) { int (*preHookFunc) (int *next); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_perform_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_perform_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_perform_pre[hIndex].func; retVal___ = preHookFunc(&next); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5483,9 +5483,9 @@ int HP_sockt_perform(int next) { { retVal___ = HPMHooks.source.sockt.perform(next); } - if( HPMHooks.count.HP_sockt_perform_post ) { + if (HPMHooks.count.HP_sockt_perform_post > 0) { int (*postHookFunc) (int retVal___, int next); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_perform_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_perform_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_perform_post[hIndex].func; retVal___ = postHookFunc(retVal___, next); } @@ -5494,14 +5494,14 @@ int HP_sockt_perform(int next) { } void HP_sockt_datasync(int fd, bool send) { int hIndex = 0; - if( HPMHooks.count.HP_sockt_datasync_pre ) { + if (HPMHooks.count.HP_sockt_datasync_pre > 0) { void (*preHookFunc) (int *fd, bool *send); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_datasync_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_datasync_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_datasync_pre[hIndex].func; preHookFunc(&fd, &send); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -5509,9 +5509,9 @@ void HP_sockt_datasync(int fd, bool send) { { HPMHooks.source.sockt.datasync(fd, send); } - if( HPMHooks.count.HP_sockt_datasync_post ) { + if (HPMHooks.count.HP_sockt_datasync_post > 0) { void (*postHookFunc) (int fd, bool send); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_datasync_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_datasync_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_datasync_post[hIndex].func; postHookFunc(fd, send); } @@ -5521,14 +5521,14 @@ void HP_sockt_datasync(int fd, bool send) { int HP_sockt_make_listen_bind(uint32 ip, uint16 port) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_sockt_make_listen_bind_pre ) { + if (HPMHooks.count.HP_sockt_make_listen_bind_pre > 0) { int (*preHookFunc) (uint32 *ip, uint16 *port); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_make_listen_bind_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_make_listen_bind_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_make_listen_bind_pre[hIndex].func; retVal___ = preHookFunc(&ip, &port); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5536,9 +5536,9 @@ int HP_sockt_make_listen_bind(uint32 ip, uint16 port) { { retVal___ = HPMHooks.source.sockt.make_listen_bind(ip, port); } - if( HPMHooks.count.HP_sockt_make_listen_bind_post ) { + if (HPMHooks.count.HP_sockt_make_listen_bind_post > 0) { int (*postHookFunc) (int retVal___, uint32 ip, uint16 port); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_make_listen_bind_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_make_listen_bind_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_make_listen_bind_post[hIndex].func; retVal___ = postHookFunc(retVal___, ip, port); } @@ -5548,14 +5548,14 @@ int HP_sockt_make_listen_bind(uint32 ip, uint16 port) { int HP_sockt_make_connection(uint32 ip, uint16 port, struct hSockOpt *opt) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_sockt_make_connection_pre ) { + if (HPMHooks.count.HP_sockt_make_connection_pre > 0) { int (*preHookFunc) (uint32 *ip, uint16 *port, struct hSockOpt **opt); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_make_connection_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_make_connection_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_make_connection_pre[hIndex].func; retVal___ = preHookFunc(&ip, &port, &opt); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5563,9 +5563,9 @@ int HP_sockt_make_connection(uint32 ip, uint16 port, struct hSockOpt *opt) { { retVal___ = HPMHooks.source.sockt.make_connection(ip, port, opt); } - if( HPMHooks.count.HP_sockt_make_connection_post ) { + if (HPMHooks.count.HP_sockt_make_connection_post > 0) { int (*postHookFunc) (int retVal___, uint32 ip, uint16 port, struct hSockOpt *opt); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_make_connection_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_make_connection_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_make_connection_post[hIndex].func; retVal___ = postHookFunc(retVal___, ip, port, opt); } @@ -5575,14 +5575,14 @@ int HP_sockt_make_connection(uint32 ip, uint16 port, struct hSockOpt *opt) { int HP_sockt_realloc_fifo(int fd, unsigned int rfifo_size, unsigned int wfifo_size) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_sockt_realloc_fifo_pre ) { + if (HPMHooks.count.HP_sockt_realloc_fifo_pre > 0) { int (*preHookFunc) (int *fd, unsigned int *rfifo_size, unsigned int *wfifo_size); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_realloc_fifo_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_realloc_fifo_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_realloc_fifo_pre[hIndex].func; retVal___ = preHookFunc(&fd, &rfifo_size, &wfifo_size); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5590,9 +5590,9 @@ int HP_sockt_realloc_fifo(int fd, unsigned int rfifo_size, unsigned int wfifo_si { retVal___ = HPMHooks.source.sockt.realloc_fifo(fd, rfifo_size, wfifo_size); } - if( HPMHooks.count.HP_sockt_realloc_fifo_post ) { + if (HPMHooks.count.HP_sockt_realloc_fifo_post > 0) { int (*postHookFunc) (int retVal___, int fd, unsigned int rfifo_size, unsigned int wfifo_size); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_realloc_fifo_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_realloc_fifo_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_realloc_fifo_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd, rfifo_size, wfifo_size); } @@ -5602,14 +5602,14 @@ int HP_sockt_realloc_fifo(int fd, unsigned int rfifo_size, unsigned int wfifo_si int HP_sockt_realloc_writefifo(int fd, size_t addition) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_sockt_realloc_writefifo_pre ) { + if (HPMHooks.count.HP_sockt_realloc_writefifo_pre > 0) { int (*preHookFunc) (int *fd, size_t *addition); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_realloc_writefifo_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_realloc_writefifo_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_realloc_writefifo_pre[hIndex].func; retVal___ = preHookFunc(&fd, &addition); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5617,9 +5617,9 @@ int HP_sockt_realloc_writefifo(int fd, size_t addition) { { retVal___ = HPMHooks.source.sockt.realloc_writefifo(fd, addition); } - if( HPMHooks.count.HP_sockt_realloc_writefifo_post ) { + if (HPMHooks.count.HP_sockt_realloc_writefifo_post > 0) { int (*postHookFunc) (int retVal___, int fd, size_t addition); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_realloc_writefifo_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_realloc_writefifo_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_realloc_writefifo_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd, addition); } @@ -5629,14 +5629,14 @@ int HP_sockt_realloc_writefifo(int fd, size_t addition) { int HP_sockt_wfifoset(int fd, size_t len) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_sockt_wfifoset_pre ) { + if (HPMHooks.count.HP_sockt_wfifoset_pre > 0) { int (*preHookFunc) (int *fd, size_t *len); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_wfifoset_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_wfifoset_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_wfifoset_pre[hIndex].func; retVal___ = preHookFunc(&fd, &len); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5644,9 +5644,9 @@ int HP_sockt_wfifoset(int fd, size_t len) { { retVal___ = HPMHooks.source.sockt.wfifoset(fd, len); } - if( HPMHooks.count.HP_sockt_wfifoset_post ) { + if (HPMHooks.count.HP_sockt_wfifoset_post > 0) { int (*postHookFunc) (int retVal___, int fd, size_t len); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_wfifoset_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_wfifoset_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_wfifoset_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd, len); } @@ -5656,14 +5656,14 @@ int HP_sockt_wfifoset(int fd, size_t len) { int HP_sockt_rfifoskip(int fd, size_t len) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_sockt_rfifoskip_pre ) { + if (HPMHooks.count.HP_sockt_rfifoskip_pre > 0) { int (*preHookFunc) (int *fd, size_t *len); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_rfifoskip_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_rfifoskip_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_rfifoskip_pre[hIndex].func; retVal___ = preHookFunc(&fd, &len); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5671,9 +5671,9 @@ int HP_sockt_rfifoskip(int fd, size_t len) { { retVal___ = HPMHooks.source.sockt.rfifoskip(fd, len); } - if( HPMHooks.count.HP_sockt_rfifoskip_post ) { + if (HPMHooks.count.HP_sockt_rfifoskip_post > 0) { int (*postHookFunc) (int retVal___, int fd, size_t len); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_rfifoskip_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_rfifoskip_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_rfifoskip_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd, len); } @@ -5682,14 +5682,14 @@ int HP_sockt_rfifoskip(int fd, size_t len) { } void HP_sockt_close(int fd) { int hIndex = 0; - if( HPMHooks.count.HP_sockt_close_pre ) { + if (HPMHooks.count.HP_sockt_close_pre > 0) { void (*preHookFunc) (int *fd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_close_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_close_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_close_pre[hIndex].func; preHookFunc(&fd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -5697,9 +5697,9 @@ void HP_sockt_close(int fd) { { HPMHooks.source.sockt.close(fd); } - if( HPMHooks.count.HP_sockt_close_post ) { + if (HPMHooks.count.HP_sockt_close_post > 0) { void (*postHookFunc) (int fd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_close_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_close_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_close_post[hIndex].func; postHookFunc(fd); } @@ -5709,14 +5709,14 @@ void HP_sockt_close(int fd) { bool HP_sockt_session_is_valid(int fd) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_sockt_session_is_valid_pre ) { + if (HPMHooks.count.HP_sockt_session_is_valid_pre > 0) { bool (*preHookFunc) (int *fd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_session_is_valid_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_session_is_valid_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_session_is_valid_pre[hIndex].func; retVal___ = preHookFunc(&fd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5724,9 +5724,9 @@ bool HP_sockt_session_is_valid(int fd) { { retVal___ = HPMHooks.source.sockt.session_is_valid(fd); } - if( HPMHooks.count.HP_sockt_session_is_valid_post ) { + if (HPMHooks.count.HP_sockt_session_is_valid_post > 0) { bool (*postHookFunc) (bool retVal___, int fd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_session_is_valid_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_session_is_valid_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_session_is_valid_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd); } @@ -5736,14 +5736,14 @@ bool HP_sockt_session_is_valid(int fd) { bool HP_sockt_session_is_active(int fd) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_sockt_session_is_active_pre ) { + if (HPMHooks.count.HP_sockt_session_is_active_pre > 0) { bool (*preHookFunc) (int *fd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_session_is_active_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_session_is_active_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_session_is_active_pre[hIndex].func; retVal___ = preHookFunc(&fd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5751,9 +5751,9 @@ bool HP_sockt_session_is_active(int fd) { { retVal___ = HPMHooks.source.sockt.session_is_active(fd); } - if( HPMHooks.count.HP_sockt_session_is_active_post ) { + if (HPMHooks.count.HP_sockt_session_is_active_post > 0) { bool (*postHookFunc) (bool retVal___, int fd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_session_is_active_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_session_is_active_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_session_is_active_post[hIndex].func; retVal___ = postHookFunc(retVal___, fd); } @@ -5762,14 +5762,14 @@ bool HP_sockt_session_is_active(int fd) { } void HP_sockt_flush(int fd) { int hIndex = 0; - if( HPMHooks.count.HP_sockt_flush_pre ) { + if (HPMHooks.count.HP_sockt_flush_pre > 0) { void (*preHookFunc) (int *fd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_flush_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_flush_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_flush_pre[hIndex].func; preHookFunc(&fd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -5777,9 +5777,9 @@ void HP_sockt_flush(int fd) { { HPMHooks.source.sockt.flush(fd); } - if( HPMHooks.count.HP_sockt_flush_post ) { + if (HPMHooks.count.HP_sockt_flush_post > 0) { void (*postHookFunc) (int fd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_flush_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_flush_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_flush_post[hIndex].func; postHookFunc(fd); } @@ -5788,14 +5788,14 @@ void HP_sockt_flush(int fd) { } void HP_sockt_flush_fifos(void) { int hIndex = 0; - if( HPMHooks.count.HP_sockt_flush_fifos_pre ) { + if (HPMHooks.count.HP_sockt_flush_fifos_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_flush_fifos_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_flush_fifos_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_flush_fifos_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -5803,9 +5803,9 @@ void HP_sockt_flush_fifos(void) { { HPMHooks.source.sockt.flush_fifos(); } - if( HPMHooks.count.HP_sockt_flush_fifos_post ) { + if (HPMHooks.count.HP_sockt_flush_fifos_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_flush_fifos_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_flush_fifos_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_flush_fifos_post[hIndex].func; postHookFunc(); } @@ -5814,14 +5814,14 @@ void HP_sockt_flush_fifos(void) { } void HP_sockt_set_nonblocking(int fd, unsigned long yes) { int hIndex = 0; - if( HPMHooks.count.HP_sockt_set_nonblocking_pre ) { + if (HPMHooks.count.HP_sockt_set_nonblocking_pre > 0) { void (*preHookFunc) (int *fd, unsigned long *yes); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_set_nonblocking_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_set_nonblocking_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_set_nonblocking_pre[hIndex].func; preHookFunc(&fd, &yes); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -5829,9 +5829,9 @@ void HP_sockt_set_nonblocking(int fd, unsigned long yes) { { HPMHooks.source.sockt.set_nonblocking(fd, yes); } - if( HPMHooks.count.HP_sockt_set_nonblocking_post ) { + if (HPMHooks.count.HP_sockt_set_nonblocking_post > 0) { void (*postHookFunc) (int fd, unsigned long yes); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_set_nonblocking_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_set_nonblocking_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_set_nonblocking_post[hIndex].func; postHookFunc(fd, yes); } @@ -5840,14 +5840,14 @@ void HP_sockt_set_nonblocking(int fd, unsigned long yes) { } void HP_sockt_set_defaultparse(ParseFunc defaultparse) { int hIndex = 0; - if( HPMHooks.count.HP_sockt_set_defaultparse_pre ) { + if (HPMHooks.count.HP_sockt_set_defaultparse_pre > 0) { void (*preHookFunc) (ParseFunc *defaultparse); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_set_defaultparse_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_set_defaultparse_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_set_defaultparse_pre[hIndex].func; preHookFunc(&defaultparse); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -5855,9 +5855,9 @@ void HP_sockt_set_defaultparse(ParseFunc defaultparse) { { HPMHooks.source.sockt.set_defaultparse(defaultparse); } - if( HPMHooks.count.HP_sockt_set_defaultparse_post ) { + if (HPMHooks.count.HP_sockt_set_defaultparse_post > 0) { void (*postHookFunc) (ParseFunc defaultparse); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_set_defaultparse_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_set_defaultparse_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_set_defaultparse_post[hIndex].func; postHookFunc(defaultparse); } @@ -5867,14 +5867,14 @@ void HP_sockt_set_defaultparse(ParseFunc defaultparse) { uint32 HP_sockt_host2ip(const char *hostname) { int hIndex = 0; uint32 retVal___ = 0; - if( HPMHooks.count.HP_sockt_host2ip_pre ) { + if (HPMHooks.count.HP_sockt_host2ip_pre > 0) { uint32 (*preHookFunc) (const char **hostname); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_host2ip_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_host2ip_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_host2ip_pre[hIndex].func; retVal___ = preHookFunc(&hostname); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5882,9 +5882,9 @@ uint32 HP_sockt_host2ip(const char *hostname) { { retVal___ = HPMHooks.source.sockt.host2ip(hostname); } - if( HPMHooks.count.HP_sockt_host2ip_post ) { + if (HPMHooks.count.HP_sockt_host2ip_post > 0) { uint32 (*postHookFunc) (uint32 retVal___, const char *hostname); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_host2ip_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_host2ip_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_host2ip_post[hIndex].func; retVal___ = postHookFunc(retVal___, hostname); } @@ -5894,14 +5894,14 @@ uint32 HP_sockt_host2ip(const char *hostname) { const char* HP_sockt_ip2str(uint32 ip, char *ip_str) { int hIndex = 0; const char* retVal___ = NULL; - if( HPMHooks.count.HP_sockt_ip2str_pre ) { + if (HPMHooks.count.HP_sockt_ip2str_pre > 0) { const char* (*preHookFunc) (uint32 *ip, char **ip_str); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_ip2str_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_ip2str_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_ip2str_pre[hIndex].func; retVal___ = preHookFunc(&ip, &ip_str); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5909,9 +5909,9 @@ const char* HP_sockt_ip2str(uint32 ip, char *ip_str) { { retVal___ = HPMHooks.source.sockt.ip2str(ip, ip_str); } - if( HPMHooks.count.HP_sockt_ip2str_post ) { + if (HPMHooks.count.HP_sockt_ip2str_post > 0) { const char* (*postHookFunc) (const char* retVal___, uint32 ip, char *ip_str); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_ip2str_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_ip2str_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_ip2str_post[hIndex].func; retVal___ = postHookFunc(retVal___, ip, ip_str); } @@ -5921,14 +5921,14 @@ const char* HP_sockt_ip2str(uint32 ip, char *ip_str) { uint32 HP_sockt_str2ip(const char *ip_str) { int hIndex = 0; uint32 retVal___ = 0; - if( HPMHooks.count.HP_sockt_str2ip_pre ) { + if (HPMHooks.count.HP_sockt_str2ip_pre > 0) { uint32 (*preHookFunc) (const char **ip_str); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_str2ip_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_str2ip_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_str2ip_pre[hIndex].func; retVal___ = preHookFunc(&ip_str); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5936,9 +5936,9 @@ uint32 HP_sockt_str2ip(const char *ip_str) { { retVal___ = HPMHooks.source.sockt.str2ip(ip_str); } - if( HPMHooks.count.HP_sockt_str2ip_post ) { + if (HPMHooks.count.HP_sockt_str2ip_post > 0) { uint32 (*postHookFunc) (uint32 retVal___, const char *ip_str); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_str2ip_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_str2ip_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_str2ip_post[hIndex].func; retVal___ = postHookFunc(retVal___, ip_str); } @@ -5948,14 +5948,14 @@ uint32 HP_sockt_str2ip(const char *ip_str) { uint16 HP_sockt_ntows(uint16 netshort) { int hIndex = 0; uint16 retVal___ = 0; - if( HPMHooks.count.HP_sockt_ntows_pre ) { + if (HPMHooks.count.HP_sockt_ntows_pre > 0) { uint16 (*preHookFunc) (uint16 *netshort); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_ntows_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_ntows_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_ntows_pre[hIndex].func; retVal___ = preHookFunc(&netshort); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5963,9 +5963,9 @@ uint16 HP_sockt_ntows(uint16 netshort) { { retVal___ = HPMHooks.source.sockt.ntows(netshort); } - if( HPMHooks.count.HP_sockt_ntows_post ) { + if (HPMHooks.count.HP_sockt_ntows_post > 0) { uint16 (*postHookFunc) (uint16 retVal___, uint16 netshort); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_ntows_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_ntows_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_ntows_post[hIndex].func; retVal___ = postHookFunc(retVal___, netshort); } @@ -5975,14 +5975,14 @@ uint16 HP_sockt_ntows(uint16 netshort) { int HP_sockt_getips(uint32 *ips, int max) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_sockt_getips_pre ) { + if (HPMHooks.count.HP_sockt_getips_pre > 0) { int (*preHookFunc) (uint32 **ips, int *max); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_getips_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_getips_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_getips_pre[hIndex].func; retVal___ = preHookFunc(&ips, &max); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -5990,9 +5990,9 @@ int HP_sockt_getips(uint32 *ips, int max) { { retVal___ = HPMHooks.source.sockt.getips(ips, max); } - if( HPMHooks.count.HP_sockt_getips_post ) { + if (HPMHooks.count.HP_sockt_getips_post > 0) { int (*postHookFunc) (int retVal___, uint32 *ips, int max); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_getips_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_getips_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_getips_post[hIndex].func; retVal___ = postHookFunc(retVal___, ips, max); } @@ -6001,14 +6001,14 @@ int HP_sockt_getips(uint32 *ips, int max) { } void HP_sockt_eof(int fd) { int hIndex = 0; - if( HPMHooks.count.HP_sockt_eof_pre ) { + if (HPMHooks.count.HP_sockt_eof_pre > 0) { void (*preHookFunc) (int *fd); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_eof_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_eof_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_eof_pre[hIndex].func; preHookFunc(&fd); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -6016,9 +6016,9 @@ void HP_sockt_eof(int fd) { { HPMHooks.source.sockt.eof(fd); } - if( HPMHooks.count.HP_sockt_eof_post ) { + if (HPMHooks.count.HP_sockt_eof_post > 0) { void (*postHookFunc) (int fd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_eof_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_eof_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_eof_post[hIndex].func; postHookFunc(fd); } @@ -6028,14 +6028,14 @@ void HP_sockt_eof(int fd) { uint32 HP_sockt_lan_subnet_check(uint32 ip, struct s_subnet *info) { int hIndex = 0; uint32 retVal___ = 0; - if( HPMHooks.count.HP_sockt_lan_subnet_check_pre ) { + if (HPMHooks.count.HP_sockt_lan_subnet_check_pre > 0) { uint32 (*preHookFunc) (uint32 *ip, struct s_subnet **info); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_lan_subnet_check_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_lan_subnet_check_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_lan_subnet_check_pre[hIndex].func; retVal___ = preHookFunc(&ip, &info); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6043,9 +6043,9 @@ uint32 HP_sockt_lan_subnet_check(uint32 ip, struct s_subnet *info) { { retVal___ = HPMHooks.source.sockt.lan_subnet_check(ip, info); } - if( HPMHooks.count.HP_sockt_lan_subnet_check_post ) { + if (HPMHooks.count.HP_sockt_lan_subnet_check_post > 0) { uint32 (*postHookFunc) (uint32 retVal___, uint32 ip, struct s_subnet *info); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_lan_subnet_check_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_lan_subnet_check_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_lan_subnet_check_post[hIndex].func; retVal___ = postHookFunc(retVal___, ip, info); } @@ -6055,14 +6055,14 @@ uint32 HP_sockt_lan_subnet_check(uint32 ip, struct s_subnet *info) { bool HP_sockt_allowed_ip_check(uint32 ip) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_sockt_allowed_ip_check_pre ) { + if (HPMHooks.count.HP_sockt_allowed_ip_check_pre > 0) { bool (*preHookFunc) (uint32 *ip); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_allowed_ip_check_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_allowed_ip_check_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_allowed_ip_check_pre[hIndex].func; retVal___ = preHookFunc(&ip); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6070,9 +6070,9 @@ bool HP_sockt_allowed_ip_check(uint32 ip) { { retVal___ = HPMHooks.source.sockt.allowed_ip_check(ip); } - if( HPMHooks.count.HP_sockt_allowed_ip_check_post ) { + if (HPMHooks.count.HP_sockt_allowed_ip_check_post > 0) { bool (*postHookFunc) (bool retVal___, uint32 ip); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_allowed_ip_check_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_allowed_ip_check_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_allowed_ip_check_post[hIndex].func; retVal___ = postHookFunc(retVal___, ip); } @@ -6082,14 +6082,14 @@ bool HP_sockt_allowed_ip_check(uint32 ip) { bool HP_sockt_trusted_ip_check(uint32 ip) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_sockt_trusted_ip_check_pre ) { + if (HPMHooks.count.HP_sockt_trusted_ip_check_pre > 0) { bool (*preHookFunc) (uint32 *ip); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_trusted_ip_check_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_trusted_ip_check_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_trusted_ip_check_pre[hIndex].func; retVal___ = preHookFunc(&ip); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6097,9 +6097,9 @@ bool HP_sockt_trusted_ip_check(uint32 ip) { { retVal___ = HPMHooks.source.sockt.trusted_ip_check(ip); } - if( HPMHooks.count.HP_sockt_trusted_ip_check_post ) { + if (HPMHooks.count.HP_sockt_trusted_ip_check_post > 0) { bool (*postHookFunc) (bool retVal___, uint32 ip); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_trusted_ip_check_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_trusted_ip_check_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_trusted_ip_check_post[hIndex].func; retVal___ = postHookFunc(retVal___, ip); } @@ -6109,14 +6109,14 @@ bool HP_sockt_trusted_ip_check(uint32 ip) { int HP_sockt_net_config_read_sub(struct config_setting_t *t, struct s_subnet_vector *list, const char *filename, const char *groupname) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_sockt_net_config_read_sub_pre ) { + if (HPMHooks.count.HP_sockt_net_config_read_sub_pre > 0) { int (*preHookFunc) (struct config_setting_t **t, struct s_subnet_vector **list, const char **filename, const char **groupname); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_net_config_read_sub_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_net_config_read_sub_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_net_config_read_sub_pre[hIndex].func; retVal___ = preHookFunc(&t, &list, &filename, &groupname); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6124,9 +6124,9 @@ int HP_sockt_net_config_read_sub(struct config_setting_t *t, struct s_subnet_vec { retVal___ = HPMHooks.source.sockt.net_config_read_sub(t, list, filename, groupname); } - if( HPMHooks.count.HP_sockt_net_config_read_sub_post ) { + if (HPMHooks.count.HP_sockt_net_config_read_sub_post > 0) { int (*postHookFunc) (int retVal___, struct config_setting_t *t, struct s_subnet_vector *list, const char *filename, const char *groupname); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_net_config_read_sub_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_net_config_read_sub_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_net_config_read_sub_post[hIndex].func; retVal___ = postHookFunc(retVal___, t, list, filename, groupname); } @@ -6135,14 +6135,14 @@ int HP_sockt_net_config_read_sub(struct config_setting_t *t, struct s_subnet_vec } void HP_sockt_net_config_read(const char *filename) { int hIndex = 0; - if( HPMHooks.count.HP_sockt_net_config_read_pre ) { + if (HPMHooks.count.HP_sockt_net_config_read_pre > 0) { void (*preHookFunc) (const char **filename); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_net_config_read_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_net_config_read_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sockt_net_config_read_pre[hIndex].func; preHookFunc(&filename); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -6150,9 +6150,9 @@ void HP_sockt_net_config_read(const char *filename) { { HPMHooks.source.sockt.net_config_read(filename); } - if( HPMHooks.count.HP_sockt_net_config_read_post ) { + if (HPMHooks.count.HP_sockt_net_config_read_post > 0) { void (*postHookFunc) (const char *filename); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_net_config_read_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sockt_net_config_read_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sockt_net_config_read_post[hIndex].func; postHookFunc(filename); } @@ -6163,14 +6163,14 @@ void HP_sockt_net_config_read(const char *filename) { int HP_SQL_Connect(struct Sql *self, const char *user, const char *passwd, const char *host, uint16 port, const char *db) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_SQL_Connect_pre ) { + if (HPMHooks.count.HP_SQL_Connect_pre > 0) { int (*preHookFunc) (struct Sql **self, const char **user, const char **passwd, const char **host, uint16 *port, const char **db); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Connect_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Connect_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_Connect_pre[hIndex].func; retVal___ = preHookFunc(&self, &user, &passwd, &host, &port, &db); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6178,9 +6178,9 @@ int HP_SQL_Connect(struct Sql *self, const char *user, const char *passwd, const { retVal___ = HPMHooks.source.SQL.Connect(self, user, passwd, host, port, db); } - if( HPMHooks.count.HP_SQL_Connect_post ) { + if (HPMHooks.count.HP_SQL_Connect_post > 0) { int (*postHookFunc) (int retVal___, struct Sql *self, const char *user, const char *passwd, const char *host, uint16 port, const char *db); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Connect_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Connect_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_Connect_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, user, passwd, host, port, db); } @@ -6190,14 +6190,14 @@ int HP_SQL_Connect(struct Sql *self, const char *user, const char *passwd, const int HP_SQL_GetTimeout(struct Sql *self, uint32 *out_timeout) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_SQL_GetTimeout_pre ) { + if (HPMHooks.count.HP_SQL_GetTimeout_pre > 0) { int (*preHookFunc) (struct Sql **self, uint32 **out_timeout); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_GetTimeout_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_GetTimeout_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_GetTimeout_pre[hIndex].func; retVal___ = preHookFunc(&self, &out_timeout); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6205,9 +6205,9 @@ int HP_SQL_GetTimeout(struct Sql *self, uint32 *out_timeout) { { retVal___ = HPMHooks.source.SQL.GetTimeout(self, out_timeout); } - if( HPMHooks.count.HP_SQL_GetTimeout_post ) { + if (HPMHooks.count.HP_SQL_GetTimeout_post > 0) { int (*postHookFunc) (int retVal___, struct Sql *self, uint32 *out_timeout); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_GetTimeout_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_GetTimeout_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_GetTimeout_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, out_timeout); } @@ -6217,14 +6217,14 @@ int HP_SQL_GetTimeout(struct Sql *self, uint32 *out_timeout) { int HP_SQL_GetColumnNames(struct Sql *self, const char *table, char *out_buf, size_t buf_len, char sep) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_SQL_GetColumnNames_pre ) { + if (HPMHooks.count.HP_SQL_GetColumnNames_pre > 0) { int (*preHookFunc) (struct Sql **self, const char **table, char **out_buf, size_t *buf_len, char *sep); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_GetColumnNames_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_GetColumnNames_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_GetColumnNames_pre[hIndex].func; retVal___ = preHookFunc(&self, &table, &out_buf, &buf_len, &sep); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6232,9 +6232,9 @@ int HP_SQL_GetColumnNames(struct Sql *self, const char *table, char *out_buf, si { retVal___ = HPMHooks.source.SQL.GetColumnNames(self, table, out_buf, buf_len, sep); } - if( HPMHooks.count.HP_SQL_GetColumnNames_post ) { + if (HPMHooks.count.HP_SQL_GetColumnNames_post > 0) { int (*postHookFunc) (int retVal___, struct Sql *self, const char *table, char *out_buf, size_t buf_len, char sep); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_GetColumnNames_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_GetColumnNames_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_GetColumnNames_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, table, out_buf, buf_len, sep); } @@ -6244,14 +6244,14 @@ int HP_SQL_GetColumnNames(struct Sql *self, const char *table, char *out_buf, si int HP_SQL_SetEncoding(struct Sql *self, const char *encoding) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_SQL_SetEncoding_pre ) { + if (HPMHooks.count.HP_SQL_SetEncoding_pre > 0) { int (*preHookFunc) (struct Sql **self, const char **encoding); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_SetEncoding_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_SetEncoding_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_SetEncoding_pre[hIndex].func; retVal___ = preHookFunc(&self, &encoding); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6259,9 +6259,9 @@ int HP_SQL_SetEncoding(struct Sql *self, const char *encoding) { { retVal___ = HPMHooks.source.SQL.SetEncoding(self, encoding); } - if( HPMHooks.count.HP_SQL_SetEncoding_post ) { + if (HPMHooks.count.HP_SQL_SetEncoding_post > 0) { int (*postHookFunc) (int retVal___, struct Sql *self, const char *encoding); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_SetEncoding_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_SetEncoding_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_SetEncoding_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, encoding); } @@ -6271,14 +6271,14 @@ int HP_SQL_SetEncoding(struct Sql *self, const char *encoding) { int HP_SQL_Ping(struct Sql *self) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_SQL_Ping_pre ) { + if (HPMHooks.count.HP_SQL_Ping_pre > 0) { int (*preHookFunc) (struct Sql **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Ping_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Ping_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_Ping_pre[hIndex].func; retVal___ = preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6286,9 +6286,9 @@ int HP_SQL_Ping(struct Sql *self) { { retVal___ = HPMHooks.source.SQL.Ping(self); } - if( HPMHooks.count.HP_SQL_Ping_post ) { + if (HPMHooks.count.HP_SQL_Ping_post > 0) { int (*postHookFunc) (int retVal___, struct Sql *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Ping_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Ping_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_Ping_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); } @@ -6298,14 +6298,14 @@ int HP_SQL_Ping(struct Sql *self) { size_t HP_SQL_EscapeString(struct Sql *self, char *out_to, const char *from) { int hIndex = 0; size_t retVal___ = 0; - if( HPMHooks.count.HP_SQL_EscapeString_pre ) { + if (HPMHooks.count.HP_SQL_EscapeString_pre > 0) { size_t (*preHookFunc) (struct Sql **self, char **out_to, const char **from); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_EscapeString_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_EscapeString_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_EscapeString_pre[hIndex].func; retVal___ = preHookFunc(&self, &out_to, &from); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6313,9 +6313,9 @@ size_t HP_SQL_EscapeString(struct Sql *self, char *out_to, const char *from) { { retVal___ = HPMHooks.source.SQL.EscapeString(self, out_to, from); } - if( HPMHooks.count.HP_SQL_EscapeString_post ) { + if (HPMHooks.count.HP_SQL_EscapeString_post > 0) { size_t (*postHookFunc) (size_t retVal___, struct Sql *self, char *out_to, const char *from); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_EscapeString_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_EscapeString_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_EscapeString_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, out_to, from); } @@ -6325,14 +6325,14 @@ size_t HP_SQL_EscapeString(struct Sql *self, char *out_to, const char *from) { size_t HP_SQL_EscapeStringLen(struct Sql *self, char *out_to, const char *from, size_t from_len) { int hIndex = 0; size_t retVal___ = 0; - if( HPMHooks.count.HP_SQL_EscapeStringLen_pre ) { + if (HPMHooks.count.HP_SQL_EscapeStringLen_pre > 0) { size_t (*preHookFunc) (struct Sql **self, char **out_to, const char **from, size_t *from_len); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_EscapeStringLen_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_EscapeStringLen_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_EscapeStringLen_pre[hIndex].func; retVal___ = preHookFunc(&self, &out_to, &from, &from_len); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6340,9 +6340,9 @@ size_t HP_SQL_EscapeStringLen(struct Sql *self, char *out_to, const char *from, { retVal___ = HPMHooks.source.SQL.EscapeStringLen(self, out_to, from, from_len); } - if( HPMHooks.count.HP_SQL_EscapeStringLen_post ) { + if (HPMHooks.count.HP_SQL_EscapeStringLen_post > 0) { size_t (*postHookFunc) (size_t retVal___, struct Sql *self, char *out_to, const char *from, size_t from_len); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_EscapeStringLen_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_EscapeStringLen_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_EscapeStringLen_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, out_to, from, from_len); } @@ -6352,16 +6352,16 @@ size_t HP_SQL_EscapeStringLen(struct Sql *self, char *out_to, const char *from, int HP_SQL_QueryV(struct Sql *self, const char *query, va_list args) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_SQL_QueryV_pre ) { + if (HPMHooks.count.HP_SQL_QueryV_pre > 0) { int (*preHookFunc) (struct Sql **self, const char **query, va_list args); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_QueryV_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_QueryV_pre; hIndex++) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_SQL_QueryV_pre[hIndex].func; retVal___ = preHookFunc(&self, &query, args___copy); va_end(args___copy); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6371,9 +6371,9 @@ int HP_SQL_QueryV(struct Sql *self, const char *query, va_list args) { retVal___ = HPMHooks.source.SQL.QueryV(self, query, args___copy); va_end(args___copy); } - if( HPMHooks.count.HP_SQL_QueryV_post ) { + if (HPMHooks.count.HP_SQL_QueryV_post > 0) { int (*postHookFunc) (int retVal___, struct Sql *self, const char *query, va_list args); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_QueryV_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_QueryV_post; hIndex++) { va_list args___copy; va_copy(args___copy, args); postHookFunc = HPMHooks.list.HP_SQL_QueryV_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, query, args___copy); @@ -6385,14 +6385,14 @@ int HP_SQL_QueryV(struct Sql *self, const char *query, va_list args) { int HP_SQL_QueryStr(struct Sql *self, const char *query) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_SQL_QueryStr_pre ) { + if (HPMHooks.count.HP_SQL_QueryStr_pre > 0) { int (*preHookFunc) (struct Sql **self, const char **query); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_QueryStr_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_QueryStr_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_QueryStr_pre[hIndex].func; retVal___ = preHookFunc(&self, &query); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6400,9 +6400,9 @@ int HP_SQL_QueryStr(struct Sql *self, const char *query) { { retVal___ = HPMHooks.source.SQL.QueryStr(self, query); } - if( HPMHooks.count.HP_SQL_QueryStr_post ) { + if (HPMHooks.count.HP_SQL_QueryStr_post > 0) { int (*postHookFunc) (int retVal___, struct Sql *self, const char *query); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_QueryStr_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_QueryStr_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_QueryStr_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, query); } @@ -6412,14 +6412,14 @@ int HP_SQL_QueryStr(struct Sql *self, const char *query) { uint64 HP_SQL_LastInsertId(struct Sql *self) { int hIndex = 0; uint64 retVal___ = 0; - if( HPMHooks.count.HP_SQL_LastInsertId_pre ) { + if (HPMHooks.count.HP_SQL_LastInsertId_pre > 0) { uint64 (*preHookFunc) (struct Sql **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_LastInsertId_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_LastInsertId_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_LastInsertId_pre[hIndex].func; retVal___ = preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6427,9 +6427,9 @@ uint64 HP_SQL_LastInsertId(struct Sql *self) { { retVal___ = HPMHooks.source.SQL.LastInsertId(self); } - if( HPMHooks.count.HP_SQL_LastInsertId_post ) { + if (HPMHooks.count.HP_SQL_LastInsertId_post > 0) { uint64 (*postHookFunc) (uint64 retVal___, struct Sql *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_LastInsertId_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_LastInsertId_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_LastInsertId_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); } @@ -6439,14 +6439,14 @@ uint64 HP_SQL_LastInsertId(struct Sql *self) { uint32 HP_SQL_NumColumns(struct Sql *self) { int hIndex = 0; uint32 retVal___ = 0; - if( HPMHooks.count.HP_SQL_NumColumns_pre ) { + if (HPMHooks.count.HP_SQL_NumColumns_pre > 0) { uint32 (*preHookFunc) (struct Sql **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_NumColumns_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_NumColumns_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_NumColumns_pre[hIndex].func; retVal___ = preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6454,9 +6454,9 @@ uint32 HP_SQL_NumColumns(struct Sql *self) { { retVal___ = HPMHooks.source.SQL.NumColumns(self); } - if( HPMHooks.count.HP_SQL_NumColumns_post ) { + if (HPMHooks.count.HP_SQL_NumColumns_post > 0) { uint32 (*postHookFunc) (uint32 retVal___, struct Sql *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_NumColumns_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_NumColumns_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_NumColumns_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); } @@ -6466,14 +6466,14 @@ uint32 HP_SQL_NumColumns(struct Sql *self) { uint64 HP_SQL_NumRows(struct Sql *self) { int hIndex = 0; uint64 retVal___ = 0; - if( HPMHooks.count.HP_SQL_NumRows_pre ) { + if (HPMHooks.count.HP_SQL_NumRows_pre > 0) { uint64 (*preHookFunc) (struct Sql **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_NumRows_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_NumRows_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_NumRows_pre[hIndex].func; retVal___ = preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6481,9 +6481,9 @@ uint64 HP_SQL_NumRows(struct Sql *self) { { retVal___ = HPMHooks.source.SQL.NumRows(self); } - if( HPMHooks.count.HP_SQL_NumRows_post ) { + if (HPMHooks.count.HP_SQL_NumRows_post > 0) { uint64 (*postHookFunc) (uint64 retVal___, struct Sql *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_NumRows_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_NumRows_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_NumRows_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); } @@ -6493,14 +6493,14 @@ uint64 HP_SQL_NumRows(struct Sql *self) { int HP_SQL_NextRow(struct Sql *self) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_SQL_NextRow_pre ) { + if (HPMHooks.count.HP_SQL_NextRow_pre > 0) { int (*preHookFunc) (struct Sql **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_NextRow_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_NextRow_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_NextRow_pre[hIndex].func; retVal___ = preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6508,9 +6508,9 @@ int HP_SQL_NextRow(struct Sql *self) { { retVal___ = HPMHooks.source.SQL.NextRow(self); } - if( HPMHooks.count.HP_SQL_NextRow_post ) { + if (HPMHooks.count.HP_SQL_NextRow_post > 0) { int (*postHookFunc) (int retVal___, struct Sql *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_NextRow_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_NextRow_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_NextRow_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); } @@ -6520,14 +6520,14 @@ int HP_SQL_NextRow(struct Sql *self) { int HP_SQL_GetData(struct Sql *self, size_t col, char **out_buf, size_t *out_len) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_SQL_GetData_pre ) { + if (HPMHooks.count.HP_SQL_GetData_pre > 0) { int (*preHookFunc) (struct Sql **self, size_t *col, char ***out_buf, size_t **out_len); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_GetData_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_GetData_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_GetData_pre[hIndex].func; retVal___ = preHookFunc(&self, &col, &out_buf, &out_len); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6535,9 +6535,9 @@ int HP_SQL_GetData(struct Sql *self, size_t col, char **out_buf, size_t *out_len { retVal___ = HPMHooks.source.SQL.GetData(self, col, out_buf, out_len); } - if( HPMHooks.count.HP_SQL_GetData_post ) { + if (HPMHooks.count.HP_SQL_GetData_post > 0) { int (*postHookFunc) (int retVal___, struct Sql *self, size_t col, char **out_buf, size_t *out_len); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_GetData_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_GetData_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_GetData_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, col, out_buf, out_len); } @@ -6546,14 +6546,14 @@ int HP_SQL_GetData(struct Sql *self, size_t col, char **out_buf, size_t *out_len } void HP_SQL_FreeResult(struct Sql *self) { int hIndex = 0; - if( HPMHooks.count.HP_SQL_FreeResult_pre ) { + if (HPMHooks.count.HP_SQL_FreeResult_pre > 0) { void (*preHookFunc) (struct Sql **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_FreeResult_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_FreeResult_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_FreeResult_pre[hIndex].func; preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -6561,9 +6561,9 @@ void HP_SQL_FreeResult(struct Sql *self) { { HPMHooks.source.SQL.FreeResult(self); } - if( HPMHooks.count.HP_SQL_FreeResult_post ) { + if (HPMHooks.count.HP_SQL_FreeResult_post > 0) { void (*postHookFunc) (struct Sql *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_FreeResult_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_FreeResult_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_FreeResult_post[hIndex].func; postHookFunc(self); } @@ -6572,14 +6572,14 @@ void HP_SQL_FreeResult(struct Sql *self) { } void HP_SQL_ShowDebug_(struct Sql *self, const char *debug_file, const unsigned long debug_line) { int hIndex = 0; - if( HPMHooks.count.HP_SQL_ShowDebug__pre ) { + if (HPMHooks.count.HP_SQL_ShowDebug__pre > 0) { void (*preHookFunc) (struct Sql **self, const char **debug_file, const unsigned long *debug_line); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_ShowDebug__pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_ShowDebug__pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_ShowDebug__pre[hIndex].func; preHookFunc(&self, &debug_file, &debug_line); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -6587,9 +6587,9 @@ void HP_SQL_ShowDebug_(struct Sql *self, const char *debug_file, const unsigned { HPMHooks.source.SQL.ShowDebug_(self, debug_file, debug_line); } - if( HPMHooks.count.HP_SQL_ShowDebug__post ) { + if (HPMHooks.count.HP_SQL_ShowDebug__post > 0) { void (*postHookFunc) (struct Sql *self, const char *debug_file, const unsigned long debug_line); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_ShowDebug__post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_ShowDebug__post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_ShowDebug__post[hIndex].func; postHookFunc(self, debug_file, debug_line); } @@ -6598,14 +6598,14 @@ void HP_SQL_ShowDebug_(struct Sql *self, const char *debug_file, const unsigned } void HP_SQL_Free(struct Sql *self) { int hIndex = 0; - if( HPMHooks.count.HP_SQL_Free_pre ) { + if (HPMHooks.count.HP_SQL_Free_pre > 0) { void (*preHookFunc) (struct Sql **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Free_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Free_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_Free_pre[hIndex].func; preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -6613,9 +6613,9 @@ void HP_SQL_Free(struct Sql *self) { { HPMHooks.source.SQL.Free(self); } - if( HPMHooks.count.HP_SQL_Free_post ) { + if (HPMHooks.count.HP_SQL_Free_post > 0) { void (*postHookFunc) (struct Sql *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Free_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Free_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_Free_post[hIndex].func; postHookFunc(self); } @@ -6625,14 +6625,14 @@ void HP_SQL_Free(struct Sql *self) { struct Sql* HP_SQL_Malloc(void) { int hIndex = 0; struct Sql* retVal___ = NULL; - if( HPMHooks.count.HP_SQL_Malloc_pre ) { + if (HPMHooks.count.HP_SQL_Malloc_pre > 0) { struct Sql* (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Malloc_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Malloc_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_Malloc_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6640,9 +6640,9 @@ struct Sql* HP_SQL_Malloc(void) { { retVal___ = HPMHooks.source.SQL.Malloc(); } - if( HPMHooks.count.HP_SQL_Malloc_post ) { + if (HPMHooks.count.HP_SQL_Malloc_post > 0) { struct Sql* (*postHookFunc) (struct Sql* retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Malloc_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Malloc_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_Malloc_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -6652,14 +6652,14 @@ struct Sql* HP_SQL_Malloc(void) { struct SqlStmt* HP_SQL_StmtMalloc(struct Sql *sql) { int hIndex = 0; struct SqlStmt* retVal___ = NULL; - if( HPMHooks.count.HP_SQL_StmtMalloc_pre ) { + if (HPMHooks.count.HP_SQL_StmtMalloc_pre > 0) { struct SqlStmt* (*preHookFunc) (struct Sql **sql); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtMalloc_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtMalloc_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_StmtMalloc_pre[hIndex].func; retVal___ = preHookFunc(&sql); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6667,9 +6667,9 @@ struct SqlStmt* HP_SQL_StmtMalloc(struct Sql *sql) { { retVal___ = HPMHooks.source.SQL.StmtMalloc(sql); } - if( HPMHooks.count.HP_SQL_StmtMalloc_post ) { + if (HPMHooks.count.HP_SQL_StmtMalloc_post > 0) { struct SqlStmt* (*postHookFunc) (struct SqlStmt* retVal___, struct Sql *sql); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtMalloc_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtMalloc_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_StmtMalloc_post[hIndex].func; retVal___ = postHookFunc(retVal___, sql); } @@ -6679,16 +6679,16 @@ struct SqlStmt* HP_SQL_StmtMalloc(struct Sql *sql) { int HP_SQL_StmtPrepareV(struct SqlStmt *self, const char *query, va_list args) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_SQL_StmtPrepareV_pre ) { + if (HPMHooks.count.HP_SQL_StmtPrepareV_pre > 0) { int (*preHookFunc) (struct SqlStmt **self, const char **query, va_list args); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtPrepareV_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtPrepareV_pre; hIndex++) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_SQL_StmtPrepareV_pre[hIndex].func; retVal___ = preHookFunc(&self, &query, args___copy); va_end(args___copy); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6698,9 +6698,9 @@ int HP_SQL_StmtPrepareV(struct SqlStmt *self, const char *query, va_list args) { retVal___ = HPMHooks.source.SQL.StmtPrepareV(self, query, args___copy); va_end(args___copy); } - if( HPMHooks.count.HP_SQL_StmtPrepareV_post ) { + if (HPMHooks.count.HP_SQL_StmtPrepareV_post > 0) { int (*postHookFunc) (int retVal___, struct SqlStmt *self, const char *query, va_list args); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtPrepareV_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtPrepareV_post; hIndex++) { va_list args___copy; va_copy(args___copy, args); postHookFunc = HPMHooks.list.HP_SQL_StmtPrepareV_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, query, args___copy); @@ -6712,14 +6712,14 @@ int HP_SQL_StmtPrepareV(struct SqlStmt *self, const char *query, va_list args) { int HP_SQL_StmtPrepareStr(struct SqlStmt *self, const char *query) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_SQL_StmtPrepareStr_pre ) { + if (HPMHooks.count.HP_SQL_StmtPrepareStr_pre > 0) { int (*preHookFunc) (struct SqlStmt **self, const char **query); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtPrepareStr_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtPrepareStr_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_StmtPrepareStr_pre[hIndex].func; retVal___ = preHookFunc(&self, &query); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6727,9 +6727,9 @@ int HP_SQL_StmtPrepareStr(struct SqlStmt *self, const char *query) { { retVal___ = HPMHooks.source.SQL.StmtPrepareStr(self, query); } - if( HPMHooks.count.HP_SQL_StmtPrepareStr_post ) { + if (HPMHooks.count.HP_SQL_StmtPrepareStr_post > 0) { int (*postHookFunc) (int retVal___, struct SqlStmt *self, const char *query); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtPrepareStr_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtPrepareStr_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_StmtPrepareStr_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, query); } @@ -6739,14 +6739,14 @@ int HP_SQL_StmtPrepareStr(struct SqlStmt *self, const char *query) { size_t HP_SQL_StmtNumParams(struct SqlStmt *self) { int hIndex = 0; size_t retVal___ = 0; - if( HPMHooks.count.HP_SQL_StmtNumParams_pre ) { + if (HPMHooks.count.HP_SQL_StmtNumParams_pre > 0) { size_t (*preHookFunc) (struct SqlStmt **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNumParams_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNumParams_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_StmtNumParams_pre[hIndex].func; retVal___ = preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6754,9 +6754,9 @@ size_t HP_SQL_StmtNumParams(struct SqlStmt *self) { { retVal___ = HPMHooks.source.SQL.StmtNumParams(self); } - if( HPMHooks.count.HP_SQL_StmtNumParams_post ) { + if (HPMHooks.count.HP_SQL_StmtNumParams_post > 0) { size_t (*postHookFunc) (size_t retVal___, struct SqlStmt *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNumParams_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNumParams_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_StmtNumParams_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); } @@ -6766,14 +6766,14 @@ size_t HP_SQL_StmtNumParams(struct SqlStmt *self) { int HP_SQL_StmtBindParam(struct SqlStmt *self, size_t idx, enum SqlDataType buffer_type, const void *buffer, size_t buffer_len) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_SQL_StmtBindParam_pre ) { + if (HPMHooks.count.HP_SQL_StmtBindParam_pre > 0) { int (*preHookFunc) (struct SqlStmt **self, size_t *idx, enum SqlDataType *buffer_type, const void **buffer, size_t *buffer_len); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtBindParam_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtBindParam_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_StmtBindParam_pre[hIndex].func; retVal___ = preHookFunc(&self, &idx, &buffer_type, &buffer, &buffer_len); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6781,9 +6781,9 @@ int HP_SQL_StmtBindParam(struct SqlStmt *self, size_t idx, enum SqlDataType buff { retVal___ = HPMHooks.source.SQL.StmtBindParam(self, idx, buffer_type, buffer, buffer_len); } - if( HPMHooks.count.HP_SQL_StmtBindParam_post ) { + if (HPMHooks.count.HP_SQL_StmtBindParam_post > 0) { int (*postHookFunc) (int retVal___, struct SqlStmt *self, size_t idx, enum SqlDataType buffer_type, const void *buffer, size_t buffer_len); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtBindParam_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtBindParam_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_StmtBindParam_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, idx, buffer_type, buffer, buffer_len); } @@ -6793,14 +6793,14 @@ int HP_SQL_StmtBindParam(struct SqlStmt *self, size_t idx, enum SqlDataType buff int HP_SQL_StmtExecute(struct SqlStmt *self) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_SQL_StmtExecute_pre ) { + if (HPMHooks.count.HP_SQL_StmtExecute_pre > 0) { int (*preHookFunc) (struct SqlStmt **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtExecute_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtExecute_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_StmtExecute_pre[hIndex].func; retVal___ = preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6808,9 +6808,9 @@ int HP_SQL_StmtExecute(struct SqlStmt *self) { { retVal___ = HPMHooks.source.SQL.StmtExecute(self); } - if( HPMHooks.count.HP_SQL_StmtExecute_post ) { + if (HPMHooks.count.HP_SQL_StmtExecute_post > 0) { int (*postHookFunc) (int retVal___, struct SqlStmt *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtExecute_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtExecute_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_StmtExecute_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); } @@ -6820,14 +6820,14 @@ int HP_SQL_StmtExecute(struct SqlStmt *self) { uint64 HP_SQL_StmtLastInsertId(struct SqlStmt *self) { int hIndex = 0; uint64 retVal___ = 0; - if( HPMHooks.count.HP_SQL_StmtLastInsertId_pre ) { + if (HPMHooks.count.HP_SQL_StmtLastInsertId_pre > 0) { uint64 (*preHookFunc) (struct SqlStmt **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtLastInsertId_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtLastInsertId_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_StmtLastInsertId_pre[hIndex].func; retVal___ = preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6835,9 +6835,9 @@ uint64 HP_SQL_StmtLastInsertId(struct SqlStmt *self) { { retVal___ = HPMHooks.source.SQL.StmtLastInsertId(self); } - if( HPMHooks.count.HP_SQL_StmtLastInsertId_post ) { + if (HPMHooks.count.HP_SQL_StmtLastInsertId_post > 0) { uint64 (*postHookFunc) (uint64 retVal___, struct SqlStmt *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtLastInsertId_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtLastInsertId_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_StmtLastInsertId_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); } @@ -6847,14 +6847,14 @@ uint64 HP_SQL_StmtLastInsertId(struct SqlStmt *self) { size_t HP_SQL_StmtNumColumns(struct SqlStmt *self) { int hIndex = 0; size_t retVal___ = 0; - if( HPMHooks.count.HP_SQL_StmtNumColumns_pre ) { + if (HPMHooks.count.HP_SQL_StmtNumColumns_pre > 0) { size_t (*preHookFunc) (struct SqlStmt **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNumColumns_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNumColumns_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_StmtNumColumns_pre[hIndex].func; retVal___ = preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6862,9 +6862,9 @@ size_t HP_SQL_StmtNumColumns(struct SqlStmt *self) { { retVal___ = HPMHooks.source.SQL.StmtNumColumns(self); } - if( HPMHooks.count.HP_SQL_StmtNumColumns_post ) { + if (HPMHooks.count.HP_SQL_StmtNumColumns_post > 0) { size_t (*postHookFunc) (size_t retVal___, struct SqlStmt *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNumColumns_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNumColumns_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_StmtNumColumns_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); } @@ -6874,14 +6874,14 @@ size_t HP_SQL_StmtNumColumns(struct SqlStmt *self) { int HP_SQL_StmtBindColumn(struct SqlStmt *self, size_t idx, enum SqlDataType buffer_type, void *buffer, size_t buffer_len, uint32 *out_length, int8 *out_is_null) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_SQL_StmtBindColumn_pre ) { + if (HPMHooks.count.HP_SQL_StmtBindColumn_pre > 0) { int (*preHookFunc) (struct SqlStmt **self, size_t *idx, enum SqlDataType *buffer_type, void **buffer, size_t *buffer_len, uint32 **out_length, int8 **out_is_null); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtBindColumn_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtBindColumn_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_StmtBindColumn_pre[hIndex].func; retVal___ = preHookFunc(&self, &idx, &buffer_type, &buffer, &buffer_len, &out_length, &out_is_null); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6889,9 +6889,9 @@ int HP_SQL_StmtBindColumn(struct SqlStmt *self, size_t idx, enum SqlDataType buf { retVal___ = HPMHooks.source.SQL.StmtBindColumn(self, idx, buffer_type, buffer, buffer_len, out_length, out_is_null); } - if( HPMHooks.count.HP_SQL_StmtBindColumn_post ) { + if (HPMHooks.count.HP_SQL_StmtBindColumn_post > 0) { int (*postHookFunc) (int retVal___, struct SqlStmt *self, size_t idx, enum SqlDataType buffer_type, void *buffer, size_t buffer_len, uint32 *out_length, int8 *out_is_null); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtBindColumn_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtBindColumn_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_StmtBindColumn_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, idx, buffer_type, buffer, buffer_len, out_length, out_is_null); } @@ -6901,14 +6901,14 @@ int HP_SQL_StmtBindColumn(struct SqlStmt *self, size_t idx, enum SqlDataType buf uint64 HP_SQL_StmtNumRows(struct SqlStmt *self) { int hIndex = 0; uint64 retVal___ = 0; - if( HPMHooks.count.HP_SQL_StmtNumRows_pre ) { + if (HPMHooks.count.HP_SQL_StmtNumRows_pre > 0) { uint64 (*preHookFunc) (struct SqlStmt **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNumRows_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNumRows_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_StmtNumRows_pre[hIndex].func; retVal___ = preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6916,9 +6916,9 @@ uint64 HP_SQL_StmtNumRows(struct SqlStmt *self) { { retVal___ = HPMHooks.source.SQL.StmtNumRows(self); } - if( HPMHooks.count.HP_SQL_StmtNumRows_post ) { + if (HPMHooks.count.HP_SQL_StmtNumRows_post > 0) { uint64 (*postHookFunc) (uint64 retVal___, struct SqlStmt *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNumRows_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNumRows_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_StmtNumRows_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); } @@ -6928,14 +6928,14 @@ uint64 HP_SQL_StmtNumRows(struct SqlStmt *self) { int HP_SQL_StmtNextRow(struct SqlStmt *self) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_SQL_StmtNextRow_pre ) { + if (HPMHooks.count.HP_SQL_StmtNextRow_pre > 0) { int (*preHookFunc) (struct SqlStmt **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNextRow_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNextRow_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_StmtNextRow_pre[hIndex].func; retVal___ = preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -6943,9 +6943,9 @@ int HP_SQL_StmtNextRow(struct SqlStmt *self) { { retVal___ = HPMHooks.source.SQL.StmtNextRow(self); } - if( HPMHooks.count.HP_SQL_StmtNextRow_post ) { + if (HPMHooks.count.HP_SQL_StmtNextRow_post > 0) { int (*postHookFunc) (int retVal___, struct SqlStmt *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNextRow_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNextRow_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_StmtNextRow_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); } @@ -6954,14 +6954,14 @@ int HP_SQL_StmtNextRow(struct SqlStmt *self) { } void HP_SQL_StmtFreeResult(struct SqlStmt *self) { int hIndex = 0; - if( HPMHooks.count.HP_SQL_StmtFreeResult_pre ) { + if (HPMHooks.count.HP_SQL_StmtFreeResult_pre > 0) { void (*preHookFunc) (struct SqlStmt **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtFreeResult_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtFreeResult_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_StmtFreeResult_pre[hIndex].func; preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -6969,9 +6969,9 @@ void HP_SQL_StmtFreeResult(struct SqlStmt *self) { { HPMHooks.source.SQL.StmtFreeResult(self); } - if( HPMHooks.count.HP_SQL_StmtFreeResult_post ) { + if (HPMHooks.count.HP_SQL_StmtFreeResult_post > 0) { void (*postHookFunc) (struct SqlStmt *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtFreeResult_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtFreeResult_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_StmtFreeResult_post[hIndex].func; postHookFunc(self); } @@ -6980,14 +6980,14 @@ void HP_SQL_StmtFreeResult(struct SqlStmt *self) { } void HP_SQL_StmtFree(struct SqlStmt *self) { int hIndex = 0; - if( HPMHooks.count.HP_SQL_StmtFree_pre ) { + if (HPMHooks.count.HP_SQL_StmtFree_pre > 0) { void (*preHookFunc) (struct SqlStmt **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtFree_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtFree_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_StmtFree_pre[hIndex].func; preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -6995,9 +6995,9 @@ void HP_SQL_StmtFree(struct SqlStmt *self) { { HPMHooks.source.SQL.StmtFree(self); } - if( HPMHooks.count.HP_SQL_StmtFree_post ) { + if (HPMHooks.count.HP_SQL_StmtFree_post > 0) { void (*postHookFunc) (struct SqlStmt *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtFree_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtFree_post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_StmtFree_post[hIndex].func; postHookFunc(self); } @@ -7006,14 +7006,14 @@ void HP_SQL_StmtFree(struct SqlStmt *self) { } void HP_SQL_StmtShowDebug_(struct SqlStmt *self, const char *debug_file, const unsigned long debug_line) { int hIndex = 0; - if( HPMHooks.count.HP_SQL_StmtShowDebug__pre ) { + if (HPMHooks.count.HP_SQL_StmtShowDebug__pre > 0) { void (*preHookFunc) (struct SqlStmt **self, const char **debug_file, const unsigned long *debug_line); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtShowDebug__pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtShowDebug__pre; hIndex++) { preHookFunc = HPMHooks.list.HP_SQL_StmtShowDebug__pre[hIndex].func; preHookFunc(&self, &debug_file, &debug_line); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -7021,9 +7021,9 @@ void HP_SQL_StmtShowDebug_(struct SqlStmt *self, const char *debug_file, const u { HPMHooks.source.SQL.StmtShowDebug_(self, debug_file, debug_line); } - if( HPMHooks.count.HP_SQL_StmtShowDebug__post ) { + if (HPMHooks.count.HP_SQL_StmtShowDebug__post > 0) { void (*postHookFunc) (struct SqlStmt *self, const char *debug_file, const unsigned long debug_line); - for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtShowDebug__post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtShowDebug__post; hIndex++) { postHookFunc = HPMHooks.list.HP_SQL_StmtShowDebug__post[hIndex].func; postHookFunc(self, debug_file, debug_line); } @@ -7034,14 +7034,14 @@ void HP_SQL_StmtShowDebug_(struct SqlStmt *self, const char *debug_file, const u StringBuf* HP_StrBuf_Malloc(void) { int hIndex = 0; StringBuf* retVal___ = NULL; - if( HPMHooks.count.HP_StrBuf_Malloc_pre ) { + if (HPMHooks.count.HP_StrBuf_Malloc_pre > 0) { StringBuf* (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Malloc_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Malloc_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_StrBuf_Malloc_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7049,9 +7049,9 @@ StringBuf* HP_StrBuf_Malloc(void) { { retVal___ = HPMHooks.source.StrBuf.Malloc(); } - if( HPMHooks.count.HP_StrBuf_Malloc_post ) { + if (HPMHooks.count.HP_StrBuf_Malloc_post > 0) { StringBuf* (*postHookFunc) (StringBuf* retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Malloc_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Malloc_post; hIndex++) { postHookFunc = HPMHooks.list.HP_StrBuf_Malloc_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -7060,14 +7060,14 @@ StringBuf* HP_StrBuf_Malloc(void) { } void HP_StrBuf_Init(StringBuf *self) { int hIndex = 0; - if( HPMHooks.count.HP_StrBuf_Init_pre ) { + if (HPMHooks.count.HP_StrBuf_Init_pre > 0) { void (*preHookFunc) (StringBuf **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Init_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Init_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_StrBuf_Init_pre[hIndex].func; preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -7075,9 +7075,9 @@ void HP_StrBuf_Init(StringBuf *self) { { HPMHooks.source.StrBuf.Init(self); } - if( HPMHooks.count.HP_StrBuf_Init_post ) { + if (HPMHooks.count.HP_StrBuf_Init_post > 0) { void (*postHookFunc) (StringBuf *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Init_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Init_post; hIndex++) { postHookFunc = HPMHooks.list.HP_StrBuf_Init_post[hIndex].func; postHookFunc(self); } @@ -7087,16 +7087,16 @@ void HP_StrBuf_Init(StringBuf *self) { int HP_StrBuf_Vprintf(StringBuf *self, const char *fmt, va_list args) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_StrBuf_Vprintf_pre ) { + if (HPMHooks.count.HP_StrBuf_Vprintf_pre > 0) { int (*preHookFunc) (StringBuf **self, const char **fmt, va_list args); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Vprintf_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Vprintf_pre; hIndex++) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_StrBuf_Vprintf_pre[hIndex].func; retVal___ = preHookFunc(&self, &fmt, args___copy); va_end(args___copy); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7106,9 +7106,9 @@ int HP_StrBuf_Vprintf(StringBuf *self, const char *fmt, va_list args) { retVal___ = HPMHooks.source.StrBuf.Vprintf(self, fmt, args___copy); va_end(args___copy); } - if( HPMHooks.count.HP_StrBuf_Vprintf_post ) { + if (HPMHooks.count.HP_StrBuf_Vprintf_post > 0) { int (*postHookFunc) (int retVal___, StringBuf *self, const char *fmt, va_list args); - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Vprintf_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Vprintf_post; hIndex++) { va_list args___copy; va_copy(args___copy, args); postHookFunc = HPMHooks.list.HP_StrBuf_Vprintf_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, fmt, args___copy); @@ -7120,14 +7120,14 @@ int HP_StrBuf_Vprintf(StringBuf *self, const char *fmt, va_list args) { int HP_StrBuf_Append(StringBuf *self, const StringBuf *sbuf) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_StrBuf_Append_pre ) { + if (HPMHooks.count.HP_StrBuf_Append_pre > 0) { int (*preHookFunc) (StringBuf **self, const StringBuf **sbuf); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Append_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Append_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_StrBuf_Append_pre[hIndex].func; retVal___ = preHookFunc(&self, &sbuf); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7135,9 +7135,9 @@ int HP_StrBuf_Append(StringBuf *self, const StringBuf *sbuf) { { retVal___ = HPMHooks.source.StrBuf.Append(self, sbuf); } - if( HPMHooks.count.HP_StrBuf_Append_post ) { + if (HPMHooks.count.HP_StrBuf_Append_post > 0) { int (*postHookFunc) (int retVal___, StringBuf *self, const StringBuf *sbuf); - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Append_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Append_post; hIndex++) { postHookFunc = HPMHooks.list.HP_StrBuf_Append_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, sbuf); } @@ -7147,14 +7147,14 @@ int HP_StrBuf_Append(StringBuf *self, const StringBuf *sbuf) { int HP_StrBuf_AppendStr(StringBuf *self, const char *str) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_StrBuf_AppendStr_pre ) { + if (HPMHooks.count.HP_StrBuf_AppendStr_pre > 0) { int (*preHookFunc) (StringBuf **self, const char **str); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_AppendStr_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_AppendStr_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_StrBuf_AppendStr_pre[hIndex].func; retVal___ = preHookFunc(&self, &str); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7162,9 +7162,9 @@ int HP_StrBuf_AppendStr(StringBuf *self, const char *str) { { retVal___ = HPMHooks.source.StrBuf.AppendStr(self, str); } - if( HPMHooks.count.HP_StrBuf_AppendStr_post ) { + if (HPMHooks.count.HP_StrBuf_AppendStr_post > 0) { int (*postHookFunc) (int retVal___, StringBuf *self, const char *str); - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_AppendStr_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_AppendStr_post; hIndex++) { postHookFunc = HPMHooks.list.HP_StrBuf_AppendStr_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, str); } @@ -7174,14 +7174,14 @@ int HP_StrBuf_AppendStr(StringBuf *self, const char *str) { int HP_StrBuf_Length(StringBuf *self) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_StrBuf_Length_pre ) { + if (HPMHooks.count.HP_StrBuf_Length_pre > 0) { int (*preHookFunc) (StringBuf **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Length_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Length_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_StrBuf_Length_pre[hIndex].func; retVal___ = preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7189,9 +7189,9 @@ int HP_StrBuf_Length(StringBuf *self) { { retVal___ = HPMHooks.source.StrBuf.Length(self); } - if( HPMHooks.count.HP_StrBuf_Length_post ) { + if (HPMHooks.count.HP_StrBuf_Length_post > 0) { int (*postHookFunc) (int retVal___, StringBuf *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Length_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Length_post; hIndex++) { postHookFunc = HPMHooks.list.HP_StrBuf_Length_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); } @@ -7201,14 +7201,14 @@ int HP_StrBuf_Length(StringBuf *self) { char* HP_StrBuf_Value(StringBuf *self) { int hIndex = 0; char* retVal___ = NULL; - if( HPMHooks.count.HP_StrBuf_Value_pre ) { + if (HPMHooks.count.HP_StrBuf_Value_pre > 0) { char* (*preHookFunc) (StringBuf **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Value_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Value_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_StrBuf_Value_pre[hIndex].func; retVal___ = preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7216,9 +7216,9 @@ char* HP_StrBuf_Value(StringBuf *self) { { retVal___ = HPMHooks.source.StrBuf.Value(self); } - if( HPMHooks.count.HP_StrBuf_Value_post ) { + if (HPMHooks.count.HP_StrBuf_Value_post > 0) { char* (*postHookFunc) (char* retVal___, StringBuf *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Value_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Value_post; hIndex++) { postHookFunc = HPMHooks.list.HP_StrBuf_Value_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); } @@ -7227,14 +7227,14 @@ char* HP_StrBuf_Value(StringBuf *self) { } void HP_StrBuf_Clear(StringBuf *self) { int hIndex = 0; - if( HPMHooks.count.HP_StrBuf_Clear_pre ) { + if (HPMHooks.count.HP_StrBuf_Clear_pre > 0) { void (*preHookFunc) (StringBuf **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Clear_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Clear_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_StrBuf_Clear_pre[hIndex].func; preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -7242,9 +7242,9 @@ void HP_StrBuf_Clear(StringBuf *self) { { HPMHooks.source.StrBuf.Clear(self); } - if( HPMHooks.count.HP_StrBuf_Clear_post ) { + if (HPMHooks.count.HP_StrBuf_Clear_post > 0) { void (*postHookFunc) (StringBuf *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Clear_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Clear_post; hIndex++) { postHookFunc = HPMHooks.list.HP_StrBuf_Clear_post[hIndex].func; postHookFunc(self); } @@ -7253,14 +7253,14 @@ void HP_StrBuf_Clear(StringBuf *self) { } void HP_StrBuf_Destroy(StringBuf *self) { int hIndex = 0; - if( HPMHooks.count.HP_StrBuf_Destroy_pre ) { + if (HPMHooks.count.HP_StrBuf_Destroy_pre > 0) { void (*preHookFunc) (StringBuf **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Destroy_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Destroy_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_StrBuf_Destroy_pre[hIndex].func; preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -7268,9 +7268,9 @@ void HP_StrBuf_Destroy(StringBuf *self) { { HPMHooks.source.StrBuf.Destroy(self); } - if( HPMHooks.count.HP_StrBuf_Destroy_post ) { + if (HPMHooks.count.HP_StrBuf_Destroy_post > 0) { void (*postHookFunc) (StringBuf *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Destroy_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Destroy_post; hIndex++) { postHookFunc = HPMHooks.list.HP_StrBuf_Destroy_post[hIndex].func; postHookFunc(self); } @@ -7279,14 +7279,14 @@ void HP_StrBuf_Destroy(StringBuf *self) { } void HP_StrBuf_Free(StringBuf *self) { int hIndex = 0; - if( HPMHooks.count.HP_StrBuf_Free_pre ) { + if (HPMHooks.count.HP_StrBuf_Free_pre > 0) { void (*preHookFunc) (StringBuf **self); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Free_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Free_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_StrBuf_Free_pre[hIndex].func; preHookFunc(&self); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -7294,9 +7294,9 @@ void HP_StrBuf_Free(StringBuf *self) { { HPMHooks.source.StrBuf.Free(self); } - if( HPMHooks.count.HP_StrBuf_Free_post ) { + if (HPMHooks.count.HP_StrBuf_Free_post > 0) { void (*postHookFunc) (StringBuf *self); - for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Free_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Free_post; hIndex++) { postHookFunc = HPMHooks.list.HP_StrBuf_Free_post[hIndex].func; postHookFunc(self); } @@ -7307,14 +7307,14 @@ void HP_StrBuf_Free(StringBuf *self) { char* HP_strlib_jstrescape(char *pt) { int hIndex = 0; char* retVal___ = NULL; - if( HPMHooks.count.HP_strlib_jstrescape_pre ) { + if (HPMHooks.count.HP_strlib_jstrescape_pre > 0) { char* (*preHookFunc) (char **pt); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_jstrescape_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_jstrescape_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_strlib_jstrescape_pre[hIndex].func; retVal___ = preHookFunc(&pt); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7322,9 +7322,9 @@ char* HP_strlib_jstrescape(char *pt) { { retVal___ = HPMHooks.source.strlib.jstrescape(pt); } - if( HPMHooks.count.HP_strlib_jstrescape_post ) { + if (HPMHooks.count.HP_strlib_jstrescape_post > 0) { char* (*postHookFunc) (char* retVal___, char *pt); - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_jstrescape_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_jstrescape_post; hIndex++) { postHookFunc = HPMHooks.list.HP_strlib_jstrescape_post[hIndex].func; retVal___ = postHookFunc(retVal___, pt); } @@ -7334,14 +7334,14 @@ char* HP_strlib_jstrescape(char *pt) { char* HP_strlib_jstrescapecpy(char *pt, const char *spt) { int hIndex = 0; char* retVal___ = NULL; - if( HPMHooks.count.HP_strlib_jstrescapecpy_pre ) { + if (HPMHooks.count.HP_strlib_jstrescapecpy_pre > 0) { char* (*preHookFunc) (char **pt, const char **spt); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_jstrescapecpy_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_jstrescapecpy_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_strlib_jstrescapecpy_pre[hIndex].func; retVal___ = preHookFunc(&pt, &spt); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7349,9 +7349,9 @@ char* HP_strlib_jstrescapecpy(char *pt, const char *spt) { { retVal___ = HPMHooks.source.strlib.jstrescapecpy(pt, spt); } - if( HPMHooks.count.HP_strlib_jstrescapecpy_post ) { + if (HPMHooks.count.HP_strlib_jstrescapecpy_post > 0) { char* (*postHookFunc) (char* retVal___, char *pt, const char *spt); - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_jstrescapecpy_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_jstrescapecpy_post; hIndex++) { postHookFunc = HPMHooks.list.HP_strlib_jstrescapecpy_post[hIndex].func; retVal___ = postHookFunc(retVal___, pt, spt); } @@ -7361,14 +7361,14 @@ char* HP_strlib_jstrescapecpy(char *pt, const char *spt) { int HP_strlib_jmemescapecpy(char *pt, const char *spt, int size) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_strlib_jmemescapecpy_pre ) { + if (HPMHooks.count.HP_strlib_jmemescapecpy_pre > 0) { int (*preHookFunc) (char **pt, const char **spt, int *size); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_jmemescapecpy_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_jmemescapecpy_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_strlib_jmemescapecpy_pre[hIndex].func; retVal___ = preHookFunc(&pt, &spt, &size); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7376,9 +7376,9 @@ int HP_strlib_jmemescapecpy(char *pt, const char *spt, int size) { { retVal___ = HPMHooks.source.strlib.jmemescapecpy(pt, spt, size); } - if( HPMHooks.count.HP_strlib_jmemescapecpy_post ) { + if (HPMHooks.count.HP_strlib_jmemescapecpy_post > 0) { int (*postHookFunc) (int retVal___, char *pt, const char *spt, int size); - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_jmemescapecpy_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_jmemescapecpy_post; hIndex++) { postHookFunc = HPMHooks.list.HP_strlib_jmemescapecpy_post[hIndex].func; retVal___ = postHookFunc(retVal___, pt, spt, size); } @@ -7388,14 +7388,14 @@ int HP_strlib_jmemescapecpy(char *pt, const char *spt, int size) { int HP_strlib_remove_control_chars_(char *str) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_strlib_remove_control_chars__pre ) { + if (HPMHooks.count.HP_strlib_remove_control_chars__pre > 0) { int (*preHookFunc) (char **str); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_remove_control_chars__pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_remove_control_chars__pre; hIndex++) { preHookFunc = HPMHooks.list.HP_strlib_remove_control_chars__pre[hIndex].func; retVal___ = preHookFunc(&str); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7403,9 +7403,9 @@ int HP_strlib_remove_control_chars_(char *str) { { retVal___ = HPMHooks.source.strlib.remove_control_chars_(str); } - if( HPMHooks.count.HP_strlib_remove_control_chars__post ) { + if (HPMHooks.count.HP_strlib_remove_control_chars__post > 0) { int (*postHookFunc) (int retVal___, char *str); - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_remove_control_chars__post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_remove_control_chars__post; hIndex++) { postHookFunc = HPMHooks.list.HP_strlib_remove_control_chars__post[hIndex].func; retVal___ = postHookFunc(retVal___, str); } @@ -7415,14 +7415,14 @@ int HP_strlib_remove_control_chars_(char *str) { char* HP_strlib_trim_(char *str) { int hIndex = 0; char* retVal___ = NULL; - if( HPMHooks.count.HP_strlib_trim__pre ) { + if (HPMHooks.count.HP_strlib_trim__pre > 0) { char* (*preHookFunc) (char **str); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_trim__pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_trim__pre; hIndex++) { preHookFunc = HPMHooks.list.HP_strlib_trim__pre[hIndex].func; retVal___ = preHookFunc(&str); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7430,9 +7430,9 @@ char* HP_strlib_trim_(char *str) { { retVal___ = HPMHooks.source.strlib.trim_(str); } - if( HPMHooks.count.HP_strlib_trim__post ) { + if (HPMHooks.count.HP_strlib_trim__post > 0) { char* (*postHookFunc) (char* retVal___, char *str); - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_trim__post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_trim__post; hIndex++) { postHookFunc = HPMHooks.list.HP_strlib_trim__post[hIndex].func; retVal___ = postHookFunc(retVal___, str); } @@ -7442,14 +7442,14 @@ char* HP_strlib_trim_(char *str) { char* HP_strlib_normalize_name_(char *str, const char *delims) { int hIndex = 0; char* retVal___ = NULL; - if( HPMHooks.count.HP_strlib_normalize_name__pre ) { + if (HPMHooks.count.HP_strlib_normalize_name__pre > 0) { char* (*preHookFunc) (char **str, const char **delims); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_normalize_name__pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_normalize_name__pre; hIndex++) { preHookFunc = HPMHooks.list.HP_strlib_normalize_name__pre[hIndex].func; retVal___ = preHookFunc(&str, &delims); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7457,9 +7457,9 @@ char* HP_strlib_normalize_name_(char *str, const char *delims) { { retVal___ = HPMHooks.source.strlib.normalize_name_(str, delims); } - if( HPMHooks.count.HP_strlib_normalize_name__post ) { + if (HPMHooks.count.HP_strlib_normalize_name__post > 0) { char* (*postHookFunc) (char* retVal___, char *str, const char *delims); - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_normalize_name__post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_normalize_name__post; hIndex++) { postHookFunc = HPMHooks.list.HP_strlib_normalize_name__post[hIndex].func; retVal___ = postHookFunc(retVal___, str, delims); } @@ -7469,14 +7469,14 @@ char* HP_strlib_normalize_name_(char *str, const char *delims) { const char* HP_strlib_stristr_(const char *haystack, const char *needle) { int hIndex = 0; const char* retVal___ = NULL; - if( HPMHooks.count.HP_strlib_stristr__pre ) { + if (HPMHooks.count.HP_strlib_stristr__pre > 0) { const char* (*preHookFunc) (const char **haystack, const char **needle); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_stristr__pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_stristr__pre; hIndex++) { preHookFunc = HPMHooks.list.HP_strlib_stristr__pre[hIndex].func; retVal___ = preHookFunc(&haystack, &needle); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7484,9 +7484,9 @@ const char* HP_strlib_stristr_(const char *haystack, const char *needle) { { retVal___ = HPMHooks.source.strlib.stristr_(haystack, needle); } - if( HPMHooks.count.HP_strlib_stristr__post ) { + if (HPMHooks.count.HP_strlib_stristr__post > 0) { const char* (*postHookFunc) (const char* retVal___, const char *haystack, const char *needle); - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_stristr__post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_stristr__post; hIndex++) { postHookFunc = HPMHooks.list.HP_strlib_stristr__post[hIndex].func; retVal___ = postHookFunc(retVal___, haystack, needle); } @@ -7496,14 +7496,14 @@ const char* HP_strlib_stristr_(const char *haystack, const char *needle) { size_t HP_strlib_strnlen_(const char *string, size_t maxlen) { int hIndex = 0; size_t retVal___ = 0; - if( HPMHooks.count.HP_strlib_strnlen__pre ) { + if (HPMHooks.count.HP_strlib_strnlen__pre > 0) { size_t (*preHookFunc) (const char **string, size_t *maxlen); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_strnlen__pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_strnlen__pre; hIndex++) { preHookFunc = HPMHooks.list.HP_strlib_strnlen__pre[hIndex].func; retVal___ = preHookFunc(&string, &maxlen); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7511,9 +7511,9 @@ size_t HP_strlib_strnlen_(const char *string, size_t maxlen) { { retVal___ = HPMHooks.source.strlib.strnlen_(string, maxlen); } - if( HPMHooks.count.HP_strlib_strnlen__post ) { + if (HPMHooks.count.HP_strlib_strnlen__post > 0) { size_t (*postHookFunc) (size_t retVal___, const char *string, size_t maxlen); - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_strnlen__post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_strnlen__post; hIndex++) { postHookFunc = HPMHooks.list.HP_strlib_strnlen__post[hIndex].func; retVal___ = postHookFunc(retVal___, string, maxlen); } @@ -7523,14 +7523,14 @@ size_t HP_strlib_strnlen_(const char *string, size_t maxlen) { char* HP_strlib_strtok_r_(char *s1, const char *s2, char **lasts) { int hIndex = 0; char* retVal___ = NULL; - if( HPMHooks.count.HP_strlib_strtok_r__pre ) { + if (HPMHooks.count.HP_strlib_strtok_r__pre > 0) { char* (*preHookFunc) (char **s1, const char **s2, char ***lasts); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_strtok_r__pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_strtok_r__pre; hIndex++) { preHookFunc = HPMHooks.list.HP_strlib_strtok_r__pre[hIndex].func; retVal___ = preHookFunc(&s1, &s2, &lasts); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7538,9 +7538,9 @@ char* HP_strlib_strtok_r_(char *s1, const char *s2, char **lasts) { { retVal___ = HPMHooks.source.strlib.strtok_r_(s1, s2, lasts); } - if( HPMHooks.count.HP_strlib_strtok_r__post ) { + if (HPMHooks.count.HP_strlib_strtok_r__post > 0) { char* (*postHookFunc) (char* retVal___, char *s1, const char *s2, char **lasts); - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_strtok_r__post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_strtok_r__post; hIndex++) { postHookFunc = HPMHooks.list.HP_strlib_strtok_r__post[hIndex].func; retVal___ = postHookFunc(retVal___, s1, s2, lasts); } @@ -7550,14 +7550,14 @@ char* HP_strlib_strtok_r_(char *s1, const char *s2, char **lasts) { int HP_strlib_e_mail_check_(char *email) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_strlib_e_mail_check__pre ) { + if (HPMHooks.count.HP_strlib_e_mail_check__pre > 0) { int (*preHookFunc) (char **email); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_e_mail_check__pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_e_mail_check__pre; hIndex++) { preHookFunc = HPMHooks.list.HP_strlib_e_mail_check__pre[hIndex].func; retVal___ = preHookFunc(&email); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7565,9 +7565,9 @@ int HP_strlib_e_mail_check_(char *email) { { retVal___ = HPMHooks.source.strlib.e_mail_check_(email); } - if( HPMHooks.count.HP_strlib_e_mail_check__post ) { + if (HPMHooks.count.HP_strlib_e_mail_check__post > 0) { int (*postHookFunc) (int retVal___, char *email); - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_e_mail_check__post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_e_mail_check__post; hIndex++) { postHookFunc = HPMHooks.list.HP_strlib_e_mail_check__post[hIndex].func; retVal___ = postHookFunc(retVal___, email); } @@ -7577,14 +7577,14 @@ int HP_strlib_e_mail_check_(char *email) { int HP_strlib_config_switch_(const char *str) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_strlib_config_switch__pre ) { + if (HPMHooks.count.HP_strlib_config_switch__pre > 0) { int (*preHookFunc) (const char **str); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_config_switch__pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_config_switch__pre; hIndex++) { preHookFunc = HPMHooks.list.HP_strlib_config_switch__pre[hIndex].func; retVal___ = preHookFunc(&str); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7592,9 +7592,9 @@ int HP_strlib_config_switch_(const char *str) { { retVal___ = HPMHooks.source.strlib.config_switch_(str); } - if( HPMHooks.count.HP_strlib_config_switch__post ) { + if (HPMHooks.count.HP_strlib_config_switch__post > 0) { int (*postHookFunc) (int retVal___, const char *str); - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_config_switch__post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_config_switch__post; hIndex++) { postHookFunc = HPMHooks.list.HP_strlib_config_switch__post[hIndex].func; retVal___ = postHookFunc(retVal___, str); } @@ -7604,14 +7604,14 @@ int HP_strlib_config_switch_(const char *str) { char* HP_strlib_safestrncpy_(char *dst, const char *src, size_t n) { int hIndex = 0; char* retVal___ = NULL; - if( HPMHooks.count.HP_strlib_safestrncpy__pre ) { + if (HPMHooks.count.HP_strlib_safestrncpy__pre > 0) { char* (*preHookFunc) (char **dst, const char **src, size_t *n); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_safestrncpy__pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_safestrncpy__pre; hIndex++) { preHookFunc = HPMHooks.list.HP_strlib_safestrncpy__pre[hIndex].func; retVal___ = preHookFunc(&dst, &src, &n); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7619,9 +7619,9 @@ char* HP_strlib_safestrncpy_(char *dst, const char *src, size_t n) { { retVal___ = HPMHooks.source.strlib.safestrncpy_(dst, src, n); } - if( HPMHooks.count.HP_strlib_safestrncpy__post ) { + if (HPMHooks.count.HP_strlib_safestrncpy__post > 0) { char* (*postHookFunc) (char* retVal___, char *dst, const char *src, size_t n); - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_safestrncpy__post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_safestrncpy__post; hIndex++) { postHookFunc = HPMHooks.list.HP_strlib_safestrncpy__post[hIndex].func; retVal___ = postHookFunc(retVal___, dst, src, n); } @@ -7631,14 +7631,14 @@ char* HP_strlib_safestrncpy_(char *dst, const char *src, size_t n) { size_t HP_strlib_safestrnlen_(const char *string, size_t maxlen) { int hIndex = 0; size_t retVal___ = 0; - if( HPMHooks.count.HP_strlib_safestrnlen__pre ) { + if (HPMHooks.count.HP_strlib_safestrnlen__pre > 0) { size_t (*preHookFunc) (const char **string, size_t *maxlen); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_safestrnlen__pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_safestrnlen__pre; hIndex++) { preHookFunc = HPMHooks.list.HP_strlib_safestrnlen__pre[hIndex].func; retVal___ = preHookFunc(&string, &maxlen); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7646,9 +7646,9 @@ size_t HP_strlib_safestrnlen_(const char *string, size_t maxlen) { { retVal___ = HPMHooks.source.strlib.safestrnlen_(string, maxlen); } - if( HPMHooks.count.HP_strlib_safestrnlen__post ) { + if (HPMHooks.count.HP_strlib_safestrnlen__post > 0) { size_t (*postHookFunc) (size_t retVal___, const char *string, size_t maxlen); - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_safestrnlen__post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_safestrnlen__post; hIndex++) { postHookFunc = HPMHooks.list.HP_strlib_safestrnlen__post[hIndex].func; retVal___ = postHookFunc(retVal___, string, maxlen); } @@ -7658,14 +7658,14 @@ size_t HP_strlib_safestrnlen_(const char *string, size_t maxlen) { int HP_strlib_strline_(const char *str, size_t pos) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_strlib_strline__pre ) { + if (HPMHooks.count.HP_strlib_strline__pre > 0) { int (*preHookFunc) (const char **str, size_t *pos); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_strline__pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_strline__pre; hIndex++) { preHookFunc = HPMHooks.list.HP_strlib_strline__pre[hIndex].func; retVal___ = preHookFunc(&str, &pos); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7673,9 +7673,9 @@ int HP_strlib_strline_(const char *str, size_t pos) { { retVal___ = HPMHooks.source.strlib.strline_(str, pos); } - if( HPMHooks.count.HP_strlib_strline__post ) { + if (HPMHooks.count.HP_strlib_strline__post > 0) { int (*postHookFunc) (int retVal___, const char *str, size_t pos); - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_strline__post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_strline__post; hIndex++) { postHookFunc = HPMHooks.list.HP_strlib_strline__post[hIndex].func; retVal___ = postHookFunc(retVal___, str, pos); } @@ -7685,14 +7685,14 @@ int HP_strlib_strline_(const char *str, size_t pos) { bool HP_strlib_bin2hex_(char *output, const unsigned char *input, size_t count) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_strlib_bin2hex__pre ) { + if (HPMHooks.count.HP_strlib_bin2hex__pre > 0) { bool (*preHookFunc) (char **output, const unsigned char **input, size_t *count); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_bin2hex__pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_bin2hex__pre; hIndex++) { preHookFunc = HPMHooks.list.HP_strlib_bin2hex__pre[hIndex].func; retVal___ = preHookFunc(&output, &input, &count); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7700,9 +7700,9 @@ bool HP_strlib_bin2hex_(char *output, const unsigned char *input, size_t count) { retVal___ = HPMHooks.source.strlib.bin2hex_(output, input, count); } - if( HPMHooks.count.HP_strlib_bin2hex__post ) { + if (HPMHooks.count.HP_strlib_bin2hex__post > 0) { bool (*postHookFunc) (bool retVal___, char *output, const unsigned char *input, size_t count); - for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_bin2hex__post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_strlib_bin2hex__post; hIndex++) { postHookFunc = HPMHooks.list.HP_strlib_bin2hex__post[hIndex].func; retVal___ = postHookFunc(retVal___, output, input, count); } @@ -7713,14 +7713,14 @@ bool HP_strlib_bin2hex_(char *output, const unsigned char *input, size_t count) int HP_sv_parse_next(struct s_svstate *svstate) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_sv_parse_next_pre ) { + if (HPMHooks.count.HP_sv_parse_next_pre > 0) { int (*preHookFunc) (struct s_svstate **svstate); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_parse_next_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sv_parse_next_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sv_parse_next_pre[hIndex].func; retVal___ = preHookFunc(&svstate); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7728,9 +7728,9 @@ int HP_sv_parse_next(struct s_svstate *svstate) { { retVal___ = HPMHooks.source.sv.parse_next(svstate); } - if( HPMHooks.count.HP_sv_parse_next_post ) { + if (HPMHooks.count.HP_sv_parse_next_post > 0) { int (*postHookFunc) (int retVal___, struct s_svstate *svstate); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_parse_next_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sv_parse_next_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sv_parse_next_post[hIndex].func; retVal___ = postHookFunc(retVal___, svstate); } @@ -7740,14 +7740,14 @@ int HP_sv_parse_next(struct s_svstate *svstate) { int HP_sv_parse(const char *str, int len, int startoff, char delim, int *out_pos, int npos, enum e_svopt opt) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_sv_parse_pre ) { + if (HPMHooks.count.HP_sv_parse_pre > 0) { int (*preHookFunc) (const char **str, int *len, int *startoff, char *delim, int **out_pos, int *npos, enum e_svopt *opt); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_parse_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sv_parse_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sv_parse_pre[hIndex].func; retVal___ = preHookFunc(&str, &len, &startoff, &delim, &out_pos, &npos, &opt); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7755,9 +7755,9 @@ int HP_sv_parse(const char *str, int len, int startoff, char delim, int *out_pos { retVal___ = HPMHooks.source.sv.parse(str, len, startoff, delim, out_pos, npos, opt); } - if( HPMHooks.count.HP_sv_parse_post ) { + if (HPMHooks.count.HP_sv_parse_post > 0) { int (*postHookFunc) (int retVal___, const char *str, int len, int startoff, char delim, int *out_pos, int npos, enum e_svopt opt); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_parse_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sv_parse_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sv_parse_post[hIndex].func; retVal___ = postHookFunc(retVal___, str, len, startoff, delim, out_pos, npos, opt); } @@ -7767,14 +7767,14 @@ int HP_sv_parse(const char *str, int len, int startoff, char delim, int *out_pos int HP_sv_split(char *str, int len, int startoff, char delim, char **out_fields, int nfields, enum e_svopt opt) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_sv_split_pre ) { + if (HPMHooks.count.HP_sv_split_pre > 0) { int (*preHookFunc) (char **str, int *len, int *startoff, char *delim, char ***out_fields, int *nfields, enum e_svopt *opt); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_split_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sv_split_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sv_split_pre[hIndex].func; retVal___ = preHookFunc(&str, &len, &startoff, &delim, &out_fields, &nfields, &opt); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7782,9 +7782,9 @@ int HP_sv_split(char *str, int len, int startoff, char delim, char **out_fields, { retVal___ = HPMHooks.source.sv.split(str, len, startoff, delim, out_fields, nfields, opt); } - if( HPMHooks.count.HP_sv_split_post ) { + if (HPMHooks.count.HP_sv_split_post > 0) { int (*postHookFunc) (int retVal___, char *str, int len, int startoff, char delim, char **out_fields, int nfields, enum e_svopt opt); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_split_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sv_split_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sv_split_post[hIndex].func; retVal___ = postHookFunc(retVal___, str, len, startoff, delim, out_fields, nfields, opt); } @@ -7794,14 +7794,14 @@ int HP_sv_split(char *str, int len, int startoff, char delim, char **out_fields, size_t HP_sv_escape_c(char *out_dest, const char *src, size_t len, const char *escapes) { int hIndex = 0; size_t retVal___ = 0; - if( HPMHooks.count.HP_sv_escape_c_pre ) { + if (HPMHooks.count.HP_sv_escape_c_pre > 0) { size_t (*preHookFunc) (char **out_dest, const char **src, size_t *len, const char **escapes); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_escape_c_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sv_escape_c_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sv_escape_c_pre[hIndex].func; retVal___ = preHookFunc(&out_dest, &src, &len, &escapes); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7809,9 +7809,9 @@ size_t HP_sv_escape_c(char *out_dest, const char *src, size_t len, const char *e { retVal___ = HPMHooks.source.sv.escape_c(out_dest, src, len, escapes); } - if( HPMHooks.count.HP_sv_escape_c_post ) { + if (HPMHooks.count.HP_sv_escape_c_post > 0) { size_t (*postHookFunc) (size_t retVal___, char *out_dest, const char *src, size_t len, const char *escapes); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_escape_c_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sv_escape_c_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sv_escape_c_post[hIndex].func; retVal___ = postHookFunc(retVal___, out_dest, src, len, escapes); } @@ -7821,14 +7821,14 @@ size_t HP_sv_escape_c(char *out_dest, const char *src, size_t len, const char *e size_t HP_sv_unescape_c(char *out_dest, const char *src, size_t len) { int hIndex = 0; size_t retVal___ = 0; - if( HPMHooks.count.HP_sv_unescape_c_pre ) { + if (HPMHooks.count.HP_sv_unescape_c_pre > 0) { size_t (*preHookFunc) (char **out_dest, const char **src, size_t *len); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_unescape_c_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sv_unescape_c_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sv_unescape_c_pre[hIndex].func; retVal___ = preHookFunc(&out_dest, &src, &len); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7836,9 +7836,9 @@ size_t HP_sv_unescape_c(char *out_dest, const char *src, size_t len) { { retVal___ = HPMHooks.source.sv.unescape_c(out_dest, src, len); } - if( HPMHooks.count.HP_sv_unescape_c_post ) { + if (HPMHooks.count.HP_sv_unescape_c_post > 0) { size_t (*postHookFunc) (size_t retVal___, char *out_dest, const char *src, size_t len); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_unescape_c_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sv_unescape_c_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sv_unescape_c_post[hIndex].func; retVal___ = postHookFunc(retVal___, out_dest, src, len); } @@ -7848,14 +7848,14 @@ size_t HP_sv_unescape_c(char *out_dest, const char *src, size_t len) { const char* HP_sv_skip_escaped_c(const char *p) { int hIndex = 0; const char* retVal___ = NULL; - if( HPMHooks.count.HP_sv_skip_escaped_c_pre ) { + if (HPMHooks.count.HP_sv_skip_escaped_c_pre > 0) { const char* (*preHookFunc) (const char **p); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_skip_escaped_c_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sv_skip_escaped_c_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sv_skip_escaped_c_pre[hIndex].func; retVal___ = preHookFunc(&p); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7863,9 +7863,9 @@ const char* HP_sv_skip_escaped_c(const char *p) { { retVal___ = HPMHooks.source.sv.skip_escaped_c(p); } - if( HPMHooks.count.HP_sv_skip_escaped_c_post ) { + if (HPMHooks.count.HP_sv_skip_escaped_c_post > 0) { const char* (*postHookFunc) (const char* retVal___, const char *p); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_skip_escaped_c_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sv_skip_escaped_c_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sv_skip_escaped_c_post[hIndex].func; retVal___ = postHookFunc(retVal___, p); } @@ -7875,14 +7875,14 @@ const char* HP_sv_skip_escaped_c(const char *p) { bool HP_sv_readdb(const char *directory, const char *filename, char delim, int mincols, int maxcols, int maxrows, bool ( *parseproc ) (char *fields[], int columns, int current)) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_sv_readdb_pre ) { + if (HPMHooks.count.HP_sv_readdb_pre > 0) { bool (*preHookFunc) (const char **directory, const char **filename, char *delim, int *mincols, int *maxcols, int *maxrows, bool ( **parseproc ) (char *fields[], int columns, int current)); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_readdb_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sv_readdb_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sv_readdb_pre[hIndex].func; retVal___ = preHookFunc(&directory, &filename, &delim, &mincols, &maxcols, &maxrows, &parseproc); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7890,9 +7890,9 @@ bool HP_sv_readdb(const char *directory, const char *filename, char delim, int m { retVal___ = HPMHooks.source.sv.readdb(directory, filename, delim, mincols, maxcols, maxrows, parseproc); } - if( HPMHooks.count.HP_sv_readdb_post ) { + if (HPMHooks.count.HP_sv_readdb_post > 0) { bool (*postHookFunc) (bool retVal___, const char *directory, const char *filename, char delim, int mincols, int maxcols, int maxrows, bool ( *parseproc ) (char *fields[], int columns, int current)); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_readdb_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sv_readdb_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sv_readdb_post[hIndex].func; retVal___ = postHookFunc(retVal___, directory, filename, delim, mincols, maxcols, maxrows, parseproc); } @@ -7903,14 +7903,14 @@ bool HP_sv_readdb(const char *directory, const char *filename, char delim, int m int HP_sysinfo_getpagesize(void) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_sysinfo_getpagesize_pre ) { + if (HPMHooks.count.HP_sysinfo_getpagesize_pre > 0) { int (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_getpagesize_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_getpagesize_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sysinfo_getpagesize_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7918,9 +7918,9 @@ int HP_sysinfo_getpagesize(void) { { retVal___ = HPMHooks.source.sysinfo.getpagesize(); } - if( HPMHooks.count.HP_sysinfo_getpagesize_post ) { + if (HPMHooks.count.HP_sysinfo_getpagesize_post > 0) { int (*postHookFunc) (int retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_getpagesize_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_getpagesize_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sysinfo_getpagesize_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -7930,14 +7930,14 @@ int HP_sysinfo_getpagesize(void) { const char* HP_sysinfo_platform(void) { int hIndex = 0; const char* retVal___ = NULL; - if( HPMHooks.count.HP_sysinfo_platform_pre ) { + if (HPMHooks.count.HP_sysinfo_platform_pre > 0) { const char* (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_platform_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_platform_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sysinfo_platform_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7945,9 +7945,9 @@ const char* HP_sysinfo_platform(void) { { retVal___ = HPMHooks.source.sysinfo.platform(); } - if( HPMHooks.count.HP_sysinfo_platform_post ) { + if (HPMHooks.count.HP_sysinfo_platform_post > 0) { const char* (*postHookFunc) (const char* retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_platform_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_platform_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sysinfo_platform_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -7957,14 +7957,14 @@ const char* HP_sysinfo_platform(void) { const char* HP_sysinfo_osversion(void) { int hIndex = 0; const char* retVal___ = NULL; - if( HPMHooks.count.HP_sysinfo_osversion_pre ) { + if (HPMHooks.count.HP_sysinfo_osversion_pre > 0) { const char* (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_osversion_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_osversion_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sysinfo_osversion_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7972,9 +7972,9 @@ const char* HP_sysinfo_osversion(void) { { retVal___ = HPMHooks.source.sysinfo.osversion(); } - if( HPMHooks.count.HP_sysinfo_osversion_post ) { + if (HPMHooks.count.HP_sysinfo_osversion_post > 0) { const char* (*postHookFunc) (const char* retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_osversion_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_osversion_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sysinfo_osversion_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -7984,14 +7984,14 @@ const char* HP_sysinfo_osversion(void) { const char* HP_sysinfo_cpu(void) { int hIndex = 0; const char* retVal___ = NULL; - if( HPMHooks.count.HP_sysinfo_cpu_pre ) { + if (HPMHooks.count.HP_sysinfo_cpu_pre > 0) { const char* (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_cpu_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_cpu_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sysinfo_cpu_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -7999,9 +7999,9 @@ const char* HP_sysinfo_cpu(void) { { retVal___ = HPMHooks.source.sysinfo.cpu(); } - if( HPMHooks.count.HP_sysinfo_cpu_post ) { + if (HPMHooks.count.HP_sysinfo_cpu_post > 0) { const char* (*postHookFunc) (const char* retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_cpu_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_cpu_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sysinfo_cpu_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -8011,14 +8011,14 @@ const char* HP_sysinfo_cpu(void) { int HP_sysinfo_cpucores(void) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_sysinfo_cpucores_pre ) { + if (HPMHooks.count.HP_sysinfo_cpucores_pre > 0) { int (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_cpucores_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_cpucores_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sysinfo_cpucores_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8026,9 +8026,9 @@ int HP_sysinfo_cpucores(void) { { retVal___ = HPMHooks.source.sysinfo.cpucores(); } - if( HPMHooks.count.HP_sysinfo_cpucores_post ) { + if (HPMHooks.count.HP_sysinfo_cpucores_post > 0) { int (*postHookFunc) (int retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_cpucores_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_cpucores_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sysinfo_cpucores_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -8038,14 +8038,14 @@ int HP_sysinfo_cpucores(void) { const char* HP_sysinfo_arch(void) { int hIndex = 0; const char* retVal___ = NULL; - if( HPMHooks.count.HP_sysinfo_arch_pre ) { + if (HPMHooks.count.HP_sysinfo_arch_pre > 0) { const char* (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_arch_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_arch_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sysinfo_arch_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8053,9 +8053,9 @@ const char* HP_sysinfo_arch(void) { { retVal___ = HPMHooks.source.sysinfo.arch(); } - if( HPMHooks.count.HP_sysinfo_arch_post ) { + if (HPMHooks.count.HP_sysinfo_arch_post > 0) { const char* (*postHookFunc) (const char* retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_arch_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_arch_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sysinfo_arch_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -8065,14 +8065,14 @@ const char* HP_sysinfo_arch(void) { bool HP_sysinfo_is64bit(void) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_sysinfo_is64bit_pre ) { + if (HPMHooks.count.HP_sysinfo_is64bit_pre > 0) { bool (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_is64bit_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_is64bit_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sysinfo_is64bit_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8080,9 +8080,9 @@ bool HP_sysinfo_is64bit(void) { { retVal___ = HPMHooks.source.sysinfo.is64bit(); } - if( HPMHooks.count.HP_sysinfo_is64bit_post ) { + if (HPMHooks.count.HP_sysinfo_is64bit_post > 0) { bool (*postHookFunc) (bool retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_is64bit_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_is64bit_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sysinfo_is64bit_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -8092,14 +8092,14 @@ bool HP_sysinfo_is64bit(void) { const char* HP_sysinfo_compiler(void) { int hIndex = 0; const char* retVal___ = NULL; - if( HPMHooks.count.HP_sysinfo_compiler_pre ) { + if (HPMHooks.count.HP_sysinfo_compiler_pre > 0) { const char* (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_compiler_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_compiler_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sysinfo_compiler_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8107,9 +8107,9 @@ const char* HP_sysinfo_compiler(void) { { retVal___ = HPMHooks.source.sysinfo.compiler(); } - if( HPMHooks.count.HP_sysinfo_compiler_post ) { + if (HPMHooks.count.HP_sysinfo_compiler_post > 0) { const char* (*postHookFunc) (const char* retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_compiler_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_compiler_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sysinfo_compiler_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -8119,14 +8119,14 @@ const char* HP_sysinfo_compiler(void) { const char* HP_sysinfo_cflags(void) { int hIndex = 0; const char* retVal___ = NULL; - if( HPMHooks.count.HP_sysinfo_cflags_pre ) { + if (HPMHooks.count.HP_sysinfo_cflags_pre > 0) { const char* (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_cflags_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_cflags_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sysinfo_cflags_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8134,9 +8134,9 @@ const char* HP_sysinfo_cflags(void) { { retVal___ = HPMHooks.source.sysinfo.cflags(); } - if( HPMHooks.count.HP_sysinfo_cflags_post ) { + if (HPMHooks.count.HP_sysinfo_cflags_post > 0) { const char* (*postHookFunc) (const char* retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_cflags_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_cflags_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sysinfo_cflags_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -8146,14 +8146,14 @@ const char* HP_sysinfo_cflags(void) { const char* HP_sysinfo_time(void) { int hIndex = 0; const char* retVal___ = NULL; - if( HPMHooks.count.HP_sysinfo_time_pre ) { + if (HPMHooks.count.HP_sysinfo_time_pre > 0) { const char* (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_time_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_time_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sysinfo_time_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8161,9 +8161,9 @@ const char* HP_sysinfo_time(void) { { retVal___ = HPMHooks.source.sysinfo.time(); } - if( HPMHooks.count.HP_sysinfo_time_post ) { + if (HPMHooks.count.HP_sysinfo_time_post > 0) { const char* (*postHookFunc) (const char* retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_time_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_time_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sysinfo_time_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -8173,14 +8173,14 @@ const char* HP_sysinfo_time(void) { const char* HP_sysinfo_vcstype(void) { int hIndex = 0; const char* retVal___ = NULL; - if( HPMHooks.count.HP_sysinfo_vcstype_pre ) { + if (HPMHooks.count.HP_sysinfo_vcstype_pre > 0) { const char* (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcstype_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcstype_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sysinfo_vcstype_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8188,9 +8188,9 @@ const char* HP_sysinfo_vcstype(void) { { retVal___ = HPMHooks.source.sysinfo.vcstype(); } - if( HPMHooks.count.HP_sysinfo_vcstype_post ) { + if (HPMHooks.count.HP_sysinfo_vcstype_post > 0) { const char* (*postHookFunc) (const char* retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcstype_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcstype_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sysinfo_vcstype_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -8200,14 +8200,14 @@ const char* HP_sysinfo_vcstype(void) { int HP_sysinfo_vcstypeid(void) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_sysinfo_vcstypeid_pre ) { + if (HPMHooks.count.HP_sysinfo_vcstypeid_pre > 0) { int (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcstypeid_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcstypeid_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sysinfo_vcstypeid_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8215,9 +8215,9 @@ int HP_sysinfo_vcstypeid(void) { { retVal___ = HPMHooks.source.sysinfo.vcstypeid(); } - if( HPMHooks.count.HP_sysinfo_vcstypeid_post ) { + if (HPMHooks.count.HP_sysinfo_vcstypeid_post > 0) { int (*postHookFunc) (int retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcstypeid_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcstypeid_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sysinfo_vcstypeid_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -8227,14 +8227,14 @@ int HP_sysinfo_vcstypeid(void) { const char* HP_sysinfo_vcsrevision_src(void) { int hIndex = 0; const char* retVal___ = NULL; - if( HPMHooks.count.HP_sysinfo_vcsrevision_src_pre ) { + if (HPMHooks.count.HP_sysinfo_vcsrevision_src_pre > 0) { const char* (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcsrevision_src_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcsrevision_src_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sysinfo_vcsrevision_src_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8242,9 +8242,9 @@ const char* HP_sysinfo_vcsrevision_src(void) { { retVal___ = HPMHooks.source.sysinfo.vcsrevision_src(); } - if( HPMHooks.count.HP_sysinfo_vcsrevision_src_post ) { + if (HPMHooks.count.HP_sysinfo_vcsrevision_src_post > 0) { const char* (*postHookFunc) (const char* retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcsrevision_src_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcsrevision_src_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sysinfo_vcsrevision_src_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -8254,14 +8254,14 @@ const char* HP_sysinfo_vcsrevision_src(void) { const char* HP_sysinfo_vcsrevision_scripts(void) { int hIndex = 0; const char* retVal___ = NULL; - if( HPMHooks.count.HP_sysinfo_vcsrevision_scripts_pre ) { + if (HPMHooks.count.HP_sysinfo_vcsrevision_scripts_pre > 0) { const char* (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcsrevision_scripts_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcsrevision_scripts_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sysinfo_vcsrevision_scripts_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8269,9 +8269,9 @@ const char* HP_sysinfo_vcsrevision_scripts(void) { { retVal___ = HPMHooks.source.sysinfo.vcsrevision_scripts(); } - if( HPMHooks.count.HP_sysinfo_vcsrevision_scripts_post ) { + if (HPMHooks.count.HP_sysinfo_vcsrevision_scripts_post > 0) { const char* (*postHookFunc) (const char* retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcsrevision_scripts_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcsrevision_scripts_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sysinfo_vcsrevision_scripts_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -8280,14 +8280,14 @@ const char* HP_sysinfo_vcsrevision_scripts(void) { } void HP_sysinfo_vcsrevision_reload(void) { int hIndex = 0; - if( HPMHooks.count.HP_sysinfo_vcsrevision_reload_pre ) { + if (HPMHooks.count.HP_sysinfo_vcsrevision_reload_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcsrevision_reload_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcsrevision_reload_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sysinfo_vcsrevision_reload_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -8295,9 +8295,9 @@ void HP_sysinfo_vcsrevision_reload(void) { { HPMHooks.source.sysinfo.vcsrevision_reload(); } - if( HPMHooks.count.HP_sysinfo_vcsrevision_reload_post ) { + if (HPMHooks.count.HP_sysinfo_vcsrevision_reload_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcsrevision_reload_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_vcsrevision_reload_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sysinfo_vcsrevision_reload_post[hIndex].func; postHookFunc(); } @@ -8307,14 +8307,14 @@ void HP_sysinfo_vcsrevision_reload(void) { bool HP_sysinfo_is_superuser(void) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_sysinfo_is_superuser_pre ) { + if (HPMHooks.count.HP_sysinfo_is_superuser_pre > 0) { bool (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_is_superuser_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_is_superuser_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sysinfo_is_superuser_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8322,9 +8322,9 @@ bool HP_sysinfo_is_superuser(void) { { retVal___ = HPMHooks.source.sysinfo.is_superuser(); } - if( HPMHooks.count.HP_sysinfo_is_superuser_post ) { + if (HPMHooks.count.HP_sysinfo_is_superuser_post > 0) { bool (*postHookFunc) (bool retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_is_superuser_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_is_superuser_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sysinfo_is_superuser_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -8333,14 +8333,14 @@ bool HP_sysinfo_is_superuser(void) { } void HP_sysinfo_init(void) { int hIndex = 0; - if( HPMHooks.count.HP_sysinfo_init_pre ) { + if (HPMHooks.count.HP_sysinfo_init_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_init_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_init_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sysinfo_init_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -8348,9 +8348,9 @@ void HP_sysinfo_init(void) { { HPMHooks.source.sysinfo.init(); } - if( HPMHooks.count.HP_sysinfo_init_post ) { + if (HPMHooks.count.HP_sysinfo_init_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_init_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_init_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sysinfo_init_post[hIndex].func; postHookFunc(); } @@ -8359,14 +8359,14 @@ void HP_sysinfo_init(void) { } void HP_sysinfo_final(void) { int hIndex = 0; - if( HPMHooks.count.HP_sysinfo_final_pre ) { + if (HPMHooks.count.HP_sysinfo_final_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_final_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_final_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_sysinfo_final_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -8374,9 +8374,9 @@ void HP_sysinfo_final(void) { { HPMHooks.source.sysinfo.final(); } - if( HPMHooks.count.HP_sysinfo_final_post ) { + if (HPMHooks.count.HP_sysinfo_final_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_final_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_sysinfo_final_post; hIndex++) { postHookFunc = HPMHooks.list.HP_sysinfo_final_post[hIndex].func; postHookFunc(); } @@ -8386,14 +8386,14 @@ void HP_sysinfo_final(void) { /* thread_interface */ void HP_thread_init(void) { int hIndex = 0; - if( HPMHooks.count.HP_thread_init_pre ) { + if (HPMHooks.count.HP_thread_init_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_init_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_init_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_thread_init_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -8401,9 +8401,9 @@ void HP_thread_init(void) { { HPMHooks.source.thread.init(); } - if( HPMHooks.count.HP_thread_init_post ) { + if (HPMHooks.count.HP_thread_init_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_init_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_init_post; hIndex++) { postHookFunc = HPMHooks.list.HP_thread_init_post[hIndex].func; postHookFunc(); } @@ -8412,14 +8412,14 @@ void HP_thread_init(void) { } void HP_thread_final(void) { int hIndex = 0; - if( HPMHooks.count.HP_thread_final_pre ) { + if (HPMHooks.count.HP_thread_final_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_final_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_final_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_thread_final_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -8427,9 +8427,9 @@ void HP_thread_final(void) { { HPMHooks.source.thread.final(); } - if( HPMHooks.count.HP_thread_final_post ) { + if (HPMHooks.count.HP_thread_final_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_final_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_final_post; hIndex++) { postHookFunc = HPMHooks.list.HP_thread_final_post[hIndex].func; postHookFunc(); } @@ -8439,14 +8439,14 @@ void HP_thread_final(void) { struct thread_handle* HP_thread_create(threadFunc entry_point, void *param) { int hIndex = 0; struct thread_handle* retVal___ = NULL; - if( HPMHooks.count.HP_thread_create_pre ) { + if (HPMHooks.count.HP_thread_create_pre > 0) { struct thread_handle* (*preHookFunc) (threadFunc *entry_point, void **param); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_create_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_create_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_thread_create_pre[hIndex].func; retVal___ = preHookFunc(&entry_point, ¶m); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8454,9 +8454,9 @@ struct thread_handle* HP_thread_create(threadFunc entry_point, void *param) { { retVal___ = HPMHooks.source.thread.create(entry_point, param); } - if( HPMHooks.count.HP_thread_create_post ) { + if (HPMHooks.count.HP_thread_create_post > 0) { struct thread_handle* (*postHookFunc) (struct thread_handle* retVal___, threadFunc entry_point, void *param); - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_create_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_create_post; hIndex++) { postHookFunc = HPMHooks.list.HP_thread_create_post[hIndex].func; retVal___ = postHookFunc(retVal___, entry_point, param); } @@ -8466,14 +8466,14 @@ struct thread_handle* HP_thread_create(threadFunc entry_point, void *param) { struct thread_handle* HP_thread_create_opt(threadFunc entry_point, void *param, size_t stack_size, enum thread_priority prio) { int hIndex = 0; struct thread_handle* retVal___ = NULL; - if( HPMHooks.count.HP_thread_create_opt_pre ) { + if (HPMHooks.count.HP_thread_create_opt_pre > 0) { struct thread_handle* (*preHookFunc) (threadFunc *entry_point, void **param, size_t *stack_size, enum thread_priority *prio); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_create_opt_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_create_opt_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_thread_create_opt_pre[hIndex].func; retVal___ = preHookFunc(&entry_point, ¶m, &stack_size, &prio); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8481,9 +8481,9 @@ struct thread_handle* HP_thread_create_opt(threadFunc entry_point, void *param, { retVal___ = HPMHooks.source.thread.create_opt(entry_point, param, stack_size, prio); } - if( HPMHooks.count.HP_thread_create_opt_post ) { + if (HPMHooks.count.HP_thread_create_opt_post > 0) { struct thread_handle* (*postHookFunc) (struct thread_handle* retVal___, threadFunc entry_point, void *param, size_t stack_size, enum thread_priority prio); - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_create_opt_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_create_opt_post; hIndex++) { postHookFunc = HPMHooks.list.HP_thread_create_opt_post[hIndex].func; retVal___ = postHookFunc(retVal___, entry_point, param, stack_size, prio); } @@ -8492,14 +8492,14 @@ struct thread_handle* HP_thread_create_opt(threadFunc entry_point, void *param, } void HP_thread_destroy(struct thread_handle *handle) { int hIndex = 0; - if( HPMHooks.count.HP_thread_destroy_pre ) { + if (HPMHooks.count.HP_thread_destroy_pre > 0) { void (*preHookFunc) (struct thread_handle **handle); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_destroy_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_destroy_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_thread_destroy_pre[hIndex].func; preHookFunc(&handle); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -8507,9 +8507,9 @@ void HP_thread_destroy(struct thread_handle *handle) { { HPMHooks.source.thread.destroy(handle); } - if( HPMHooks.count.HP_thread_destroy_post ) { + if (HPMHooks.count.HP_thread_destroy_post > 0) { void (*postHookFunc) (struct thread_handle *handle); - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_destroy_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_destroy_post; hIndex++) { postHookFunc = HPMHooks.list.HP_thread_destroy_post[hIndex].func; postHookFunc(handle); } @@ -8519,14 +8519,14 @@ void HP_thread_destroy(struct thread_handle *handle) { struct thread_handle* HP_thread_self(void) { int hIndex = 0; struct thread_handle* retVal___ = NULL; - if( HPMHooks.count.HP_thread_self_pre ) { + if (HPMHooks.count.HP_thread_self_pre > 0) { struct thread_handle* (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_self_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_self_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_thread_self_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8534,9 +8534,9 @@ struct thread_handle* HP_thread_self(void) { { retVal___ = HPMHooks.source.thread.self(); } - if( HPMHooks.count.HP_thread_self_post ) { + if (HPMHooks.count.HP_thread_self_post > 0) { struct thread_handle* (*postHookFunc) (struct thread_handle* retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_self_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_self_post; hIndex++) { postHookFunc = HPMHooks.list.HP_thread_self_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -8546,14 +8546,14 @@ struct thread_handle* HP_thread_self(void) { int HP_thread_get_tid(void) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_thread_get_tid_pre ) { + if (HPMHooks.count.HP_thread_get_tid_pre > 0) { int (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_get_tid_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_get_tid_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_thread_get_tid_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8561,9 +8561,9 @@ int HP_thread_get_tid(void) { { retVal___ = HPMHooks.source.thread.get_tid(); } - if( HPMHooks.count.HP_thread_get_tid_post ) { + if (HPMHooks.count.HP_thread_get_tid_post > 0) { int (*postHookFunc) (int retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_get_tid_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_get_tid_post; hIndex++) { postHookFunc = HPMHooks.list.HP_thread_get_tid_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -8573,14 +8573,14 @@ int HP_thread_get_tid(void) { bool HP_thread_wait(struct thread_handle *handle, void **out_exit_code) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_thread_wait_pre ) { + if (HPMHooks.count.HP_thread_wait_pre > 0) { bool (*preHookFunc) (struct thread_handle **handle, void ***out_exit_code); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_wait_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_wait_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_thread_wait_pre[hIndex].func; retVal___ = preHookFunc(&handle, &out_exit_code); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8588,9 +8588,9 @@ bool HP_thread_wait(struct thread_handle *handle, void **out_exit_code) { { retVal___ = HPMHooks.source.thread.wait(handle, out_exit_code); } - if( HPMHooks.count.HP_thread_wait_post ) { + if (HPMHooks.count.HP_thread_wait_post > 0) { bool (*postHookFunc) (bool retVal___, struct thread_handle *handle, void **out_exit_code); - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_wait_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_wait_post; hIndex++) { postHookFunc = HPMHooks.list.HP_thread_wait_post[hIndex].func; retVal___ = postHookFunc(retVal___, handle, out_exit_code); } @@ -8599,14 +8599,14 @@ bool HP_thread_wait(struct thread_handle *handle, void **out_exit_code) { } void HP_thread_prio_set(struct thread_handle *handle, enum thread_priority prio) { int hIndex = 0; - if( HPMHooks.count.HP_thread_prio_set_pre ) { + if (HPMHooks.count.HP_thread_prio_set_pre > 0) { void (*preHookFunc) (struct thread_handle **handle, enum thread_priority *prio); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_prio_set_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_prio_set_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_thread_prio_set_pre[hIndex].func; preHookFunc(&handle, &prio); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -8614,9 +8614,9 @@ void HP_thread_prio_set(struct thread_handle *handle, enum thread_priority prio) { HPMHooks.source.thread.prio_set(handle, prio); } - if( HPMHooks.count.HP_thread_prio_set_post ) { + if (HPMHooks.count.HP_thread_prio_set_post > 0) { void (*postHookFunc) (struct thread_handle *handle, enum thread_priority prio); - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_prio_set_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_prio_set_post; hIndex++) { postHookFunc = HPMHooks.list.HP_thread_prio_set_post[hIndex].func; postHookFunc(handle, prio); } @@ -8626,14 +8626,14 @@ void HP_thread_prio_set(struct thread_handle *handle, enum thread_priority prio) enum thread_priority HP_thread_prio_get(struct thread_handle *handle) { int hIndex = 0; enum thread_priority retVal___ = THREADPRIO_NORMAL; - if( HPMHooks.count.HP_thread_prio_get_pre ) { + if (HPMHooks.count.HP_thread_prio_get_pre > 0) { enum thread_priority (*preHookFunc) (struct thread_handle **handle); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_prio_get_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_prio_get_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_thread_prio_get_pre[hIndex].func; retVal___ = preHookFunc(&handle); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8641,9 +8641,9 @@ enum thread_priority HP_thread_prio_get(struct thread_handle *handle) { { retVal___ = HPMHooks.source.thread.prio_get(handle); } - if( HPMHooks.count.HP_thread_prio_get_post ) { + if (HPMHooks.count.HP_thread_prio_get_post > 0) { enum thread_priority (*postHookFunc) (enum thread_priority retVal___, struct thread_handle *handle); - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_prio_get_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_prio_get_post; hIndex++) { postHookFunc = HPMHooks.list.HP_thread_prio_get_post[hIndex].func; retVal___ = postHookFunc(retVal___, handle); } @@ -8652,14 +8652,14 @@ enum thread_priority HP_thread_prio_get(struct thread_handle *handle) { } void HP_thread_yield(void) { int hIndex = 0; - if( HPMHooks.count.HP_thread_yield_pre ) { + if (HPMHooks.count.HP_thread_yield_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_yield_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_yield_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_thread_yield_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -8667,9 +8667,9 @@ void HP_thread_yield(void) { { HPMHooks.source.thread.yield(); } - if( HPMHooks.count.HP_thread_yield_post ) { + if (HPMHooks.count.HP_thread_yield_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_thread_yield_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_thread_yield_post; hIndex++) { postHookFunc = HPMHooks.list.HP_thread_yield_post[hIndex].func; postHookFunc(); } @@ -8680,14 +8680,14 @@ void HP_thread_yield(void) { int64 HP_timer_gettick(void) { int hIndex = 0; int64 retVal___ = 0; - if( HPMHooks.count.HP_timer_gettick_pre ) { + if (HPMHooks.count.HP_timer_gettick_pre > 0) { int64 (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_gettick_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_gettick_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_timer_gettick_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8695,9 +8695,9 @@ int64 HP_timer_gettick(void) { { retVal___ = HPMHooks.source.timer.gettick(); } - if( HPMHooks.count.HP_timer_gettick_post ) { + if (HPMHooks.count.HP_timer_gettick_post > 0) { int64 (*postHookFunc) (int64 retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_gettick_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_gettick_post; hIndex++) { postHookFunc = HPMHooks.list.HP_timer_gettick_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -8707,14 +8707,14 @@ int64 HP_timer_gettick(void) { int64 HP_timer_gettick_nocache(void) { int hIndex = 0; int64 retVal___ = 0; - if( HPMHooks.count.HP_timer_gettick_nocache_pre ) { + if (HPMHooks.count.HP_timer_gettick_nocache_pre > 0) { int64 (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_gettick_nocache_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_gettick_nocache_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_timer_gettick_nocache_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8722,9 +8722,9 @@ int64 HP_timer_gettick_nocache(void) { { retVal___ = HPMHooks.source.timer.gettick_nocache(); } - if( HPMHooks.count.HP_timer_gettick_nocache_post ) { + if (HPMHooks.count.HP_timer_gettick_nocache_post > 0) { int64 (*postHookFunc) (int64 retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_gettick_nocache_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_gettick_nocache_post; hIndex++) { postHookFunc = HPMHooks.list.HP_timer_gettick_nocache_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -8734,14 +8734,14 @@ int64 HP_timer_gettick_nocache(void) { int HP_timer_add(int64 tick, TimerFunc func, int id, intptr_t data) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_timer_add_pre ) { + if (HPMHooks.count.HP_timer_add_pre > 0) { int (*preHookFunc) (int64 *tick, TimerFunc *func, int *id, intptr_t *data); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_add_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_add_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_timer_add_pre[hIndex].func; retVal___ = preHookFunc(&tick, &func, &id, &data); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8749,9 +8749,9 @@ int HP_timer_add(int64 tick, TimerFunc func, int id, intptr_t data) { { retVal___ = HPMHooks.source.timer.add(tick, func, id, data); } - if( HPMHooks.count.HP_timer_add_post ) { + if (HPMHooks.count.HP_timer_add_post > 0) { int (*postHookFunc) (int retVal___, int64 tick, TimerFunc func, int id, intptr_t data); - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_add_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_add_post; hIndex++) { postHookFunc = HPMHooks.list.HP_timer_add_post[hIndex].func; retVal___ = postHookFunc(retVal___, tick, func, id, data); } @@ -8761,14 +8761,14 @@ int HP_timer_add(int64 tick, TimerFunc func, int id, intptr_t data) { int HP_timer_add_interval(int64 tick, TimerFunc func, int id, intptr_t data, int interval) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_timer_add_interval_pre ) { + if (HPMHooks.count.HP_timer_add_interval_pre > 0) { int (*preHookFunc) (int64 *tick, TimerFunc *func, int *id, intptr_t *data, int *interval); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_add_interval_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_add_interval_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_timer_add_interval_pre[hIndex].func; retVal___ = preHookFunc(&tick, &func, &id, &data, &interval); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8776,9 +8776,9 @@ int HP_timer_add_interval(int64 tick, TimerFunc func, int id, intptr_t data, int { retVal___ = HPMHooks.source.timer.add_interval(tick, func, id, data, interval); } - if( HPMHooks.count.HP_timer_add_interval_post ) { + if (HPMHooks.count.HP_timer_add_interval_post > 0) { int (*postHookFunc) (int retVal___, int64 tick, TimerFunc func, int id, intptr_t data, int interval); - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_add_interval_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_add_interval_post; hIndex++) { postHookFunc = HPMHooks.list.HP_timer_add_interval_post[hIndex].func; retVal___ = postHookFunc(retVal___, tick, func, id, data, interval); } @@ -8788,14 +8788,14 @@ int HP_timer_add_interval(int64 tick, TimerFunc func, int id, intptr_t data, int const struct TimerData* HP_timer_get(int tid) { int hIndex = 0; const struct TimerData* retVal___ = NULL; - if( HPMHooks.count.HP_timer_get_pre ) { + if (HPMHooks.count.HP_timer_get_pre > 0) { const struct TimerData* (*preHookFunc) (int *tid); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_get_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_get_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_timer_get_pre[hIndex].func; retVal___ = preHookFunc(&tid); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8803,9 +8803,9 @@ const struct TimerData* HP_timer_get(int tid) { { retVal___ = HPMHooks.source.timer.get(tid); } - if( HPMHooks.count.HP_timer_get_post ) { + if (HPMHooks.count.HP_timer_get_post > 0) { const struct TimerData* (*postHookFunc) (const struct TimerData* retVal___, int tid); - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_get_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_get_post; hIndex++) { postHookFunc = HPMHooks.list.HP_timer_get_post[hIndex].func; retVal___ = postHookFunc(retVal___, tid); } @@ -8815,14 +8815,14 @@ const struct TimerData* HP_timer_get(int tid) { int HP_timer_delete(int tid, TimerFunc func) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_timer_delete_pre ) { + if (HPMHooks.count.HP_timer_delete_pre > 0) { int (*preHookFunc) (int *tid, TimerFunc *func); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_delete_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_delete_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_timer_delete_pre[hIndex].func; retVal___ = preHookFunc(&tid, &func); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8830,9 +8830,9 @@ int HP_timer_delete(int tid, TimerFunc func) { { retVal___ = HPMHooks.source.timer.delete(tid, func); } - if( HPMHooks.count.HP_timer_delete_post ) { + if (HPMHooks.count.HP_timer_delete_post > 0) { int (*postHookFunc) (int retVal___, int tid, TimerFunc func); - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_delete_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_delete_post; hIndex++) { postHookFunc = HPMHooks.list.HP_timer_delete_post[hIndex].func; retVal___ = postHookFunc(retVal___, tid, func); } @@ -8842,14 +8842,14 @@ int HP_timer_delete(int tid, TimerFunc func) { int64 HP_timer_addtick(int tid, int64 tick) { int hIndex = 0; int64 retVal___ = 0; - if( HPMHooks.count.HP_timer_addtick_pre ) { + if (HPMHooks.count.HP_timer_addtick_pre > 0) { int64 (*preHookFunc) (int *tid, int64 *tick); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_addtick_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_addtick_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_timer_addtick_pre[hIndex].func; retVal___ = preHookFunc(&tid, &tick); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8857,9 +8857,9 @@ int64 HP_timer_addtick(int tid, int64 tick) { { retVal___ = HPMHooks.source.timer.addtick(tid, tick); } - if( HPMHooks.count.HP_timer_addtick_post ) { + if (HPMHooks.count.HP_timer_addtick_post > 0) { int64 (*postHookFunc) (int64 retVal___, int tid, int64 tick); - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_addtick_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_addtick_post; hIndex++) { postHookFunc = HPMHooks.list.HP_timer_addtick_post[hIndex].func; retVal___ = postHookFunc(retVal___, tid, tick); } @@ -8869,14 +8869,14 @@ int64 HP_timer_addtick(int tid, int64 tick) { int64 HP_timer_settick(int tid, int64 tick) { int hIndex = 0; int64 retVal___ = 0; - if( HPMHooks.count.HP_timer_settick_pre ) { + if (HPMHooks.count.HP_timer_settick_pre > 0) { int64 (*preHookFunc) (int *tid, int64 *tick); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_settick_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_settick_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_timer_settick_pre[hIndex].func; retVal___ = preHookFunc(&tid, &tick); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8884,9 +8884,9 @@ int64 HP_timer_settick(int tid, int64 tick) { { retVal___ = HPMHooks.source.timer.settick(tid, tick); } - if( HPMHooks.count.HP_timer_settick_post ) { + if (HPMHooks.count.HP_timer_settick_post > 0) { int64 (*postHookFunc) (int64 retVal___, int tid, int64 tick); - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_settick_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_settick_post; hIndex++) { postHookFunc = HPMHooks.list.HP_timer_settick_post[hIndex].func; retVal___ = postHookFunc(retVal___, tid, tick); } @@ -8896,14 +8896,14 @@ int64 HP_timer_settick(int tid, int64 tick) { int HP_timer_add_func_list(TimerFunc func, char *name) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_timer_add_func_list_pre ) { + if (HPMHooks.count.HP_timer_add_func_list_pre > 0) { int (*preHookFunc) (TimerFunc *func, char **name); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_add_func_list_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_add_func_list_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_timer_add_func_list_pre[hIndex].func; retVal___ = preHookFunc(&func, &name); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8911,9 +8911,9 @@ int HP_timer_add_func_list(TimerFunc func, char *name) { { retVal___ = HPMHooks.source.timer.add_func_list(func, name); } - if( HPMHooks.count.HP_timer_add_func_list_post ) { + if (HPMHooks.count.HP_timer_add_func_list_post > 0) { int (*postHookFunc) (int retVal___, TimerFunc func, char *name); - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_add_func_list_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_add_func_list_post; hIndex++) { postHookFunc = HPMHooks.list.HP_timer_add_func_list_post[hIndex].func; retVal___ = postHookFunc(retVal___, func, name); } @@ -8923,14 +8923,14 @@ int HP_timer_add_func_list(TimerFunc func, char *name) { unsigned long HP_timer_get_uptime(void) { int hIndex = 0; unsigned long retVal___ = 0; - if( HPMHooks.count.HP_timer_get_uptime_pre ) { + if (HPMHooks.count.HP_timer_get_uptime_pre > 0) { unsigned long (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_get_uptime_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_get_uptime_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_timer_get_uptime_pre[hIndex].func; retVal___ = preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8938,9 +8938,9 @@ unsigned long HP_timer_get_uptime(void) { { retVal___ = HPMHooks.source.timer.get_uptime(); } - if( HPMHooks.count.HP_timer_get_uptime_post ) { + if (HPMHooks.count.HP_timer_get_uptime_post > 0) { unsigned long (*postHookFunc) (unsigned long retVal___); - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_get_uptime_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_get_uptime_post; hIndex++) { postHookFunc = HPMHooks.list.HP_timer_get_uptime_post[hIndex].func; retVal___ = postHookFunc(retVal___); } @@ -8950,14 +8950,14 @@ unsigned long HP_timer_get_uptime(void) { int HP_timer_perform(int64 tick) { int hIndex = 0; int retVal___ = 0; - if( HPMHooks.count.HP_timer_perform_pre ) { + if (HPMHooks.count.HP_timer_perform_pre > 0) { int (*preHookFunc) (int64 *tick); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_perform_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_perform_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_timer_perform_pre[hIndex].func; retVal___ = preHookFunc(&tick); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return retVal___; } @@ -8965,9 +8965,9 @@ int HP_timer_perform(int64 tick) { { retVal___ = HPMHooks.source.timer.perform(tick); } - if( HPMHooks.count.HP_timer_perform_post ) { + if (HPMHooks.count.HP_timer_perform_post > 0) { int (*postHookFunc) (int retVal___, int64 tick); - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_perform_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_perform_post; hIndex++) { postHookFunc = HPMHooks.list.HP_timer_perform_post[hIndex].func; retVal___ = postHookFunc(retVal___, tick); } @@ -8976,14 +8976,14 @@ int HP_timer_perform(int64 tick) { } void HP_timer_init(void) { int hIndex = 0; - if( HPMHooks.count.HP_timer_init_pre ) { + if (HPMHooks.count.HP_timer_init_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_init_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_init_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_timer_init_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -8991,9 +8991,9 @@ void HP_timer_init(void) { { HPMHooks.source.timer.init(); } - if( HPMHooks.count.HP_timer_init_post ) { + if (HPMHooks.count.HP_timer_init_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_init_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_init_post; hIndex++) { postHookFunc = HPMHooks.list.HP_timer_init_post[hIndex].func; postHookFunc(); } @@ -9002,14 +9002,14 @@ void HP_timer_init(void) { } void HP_timer_final(void) { int hIndex = 0; - if( HPMHooks.count.HP_timer_final_pre ) { + if (HPMHooks.count.HP_timer_final_pre > 0) { void (*preHookFunc) (void); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_final_pre; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_final_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_timer_final_pre[hIndex].func; preHookFunc(); } - if( *HPMforce_return ) { + if (*HPMforce_return) { *HPMforce_return = false; return; } @@ -9017,9 +9017,9 @@ void HP_timer_final(void) { { HPMHooks.source.timer.final(); } - if( HPMHooks.count.HP_timer_final_post ) { + if (HPMHooks.count.HP_timer_final_post > 0) { void (*postHookFunc) (void); - for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_final_post; hIndex++ ) { + for (hIndex = 0; hIndex < HPMHooks.count.HP_timer_final_post; hIndex++) { postHookFunc = HPMHooks.list.HP_timer_final_post[hIndex].func; postHookFunc(); } |