static icl_demo_scope_t * icl_demo_scope_alloc_ ( char * file, // Source file for call size_t line // Line number for call ) { icl_demo_scope_t * self = NULL; // Object reference // Initialise cache if necessary if (!s_cache) icl_demo_scope_cache_initialise (); self = (icl_demo_scope_t *) icl_mem_cache_alloc_ (s_cache, file, line); if (self) memset (self, 0, sizeof (icl_demo_scope_t)); return (self); }
static icl_demo_scope_t * icl_demo_scope_alloc_ ( char * file, // Source file for call size_t line // Line number for call ) { icl_demo_scope_t * self = NULL; // Object reference #if (defined (BASE_ANIMATE) || defined (BASE_ANIMATE_ICL_DEMO_SCOPE) || defined (BASE_ANIMATE_ICL_DEMO_SCOPE_ALLOC)) if (icl_demo_scope_animating) icl_console_print ("<icl_demo_scope_alloc_start" #if (defined (BASE_THREADSAFE)) " thread=\"%pp\"" #endif " file=\"%s\"" " line=\"%u\"" "/>" #if (defined (BASE_THREADSAFE)) , apr_os_thread_current () #endif , file, line); #endif #if (defined (BASE_TRACE) || defined (BASE_TRACE_ICL_DEMO_SCOPE) || defined (BASE_TRACE_ICL_DEMO_SCOPE_ALLOC)) icl_trace_record (NULL, icl_demo_scope_dump, 7); #endif #if (defined (BASE_STATS) || defined (BASE_STATS_ICL_DEMO_SCOPE) || defined (BASE_STATS_ICL_DEMO_SCOPE_ALLOC)) icl_stats_inc ("icl_demo_scope_alloc", &s_icl_demo_scope_alloc_stats); #endif // Initialise cache if necessary if (!s_cache) icl_demo_scope_cache_initialise (); self = (icl_demo_scope_t *) icl_mem_cache_alloc_ (s_cache, file, line); if (self) memset (self, 0, sizeof (icl_demo_scope_t)); #if (defined (BASE_TRACE) || defined (BASE_TRACE_ICL_DEMO_SCOPE) || defined (BASE_TRACE_ICL_DEMO_SCOPE_ALLOC)) icl_trace_record (NULL, icl_demo_scope_dump, 0x10000 + 7); #endif #if (defined (BASE_ANIMATE) || defined (BASE_ANIMATE_ICL_DEMO_SCOPE) || defined (BASE_ANIMATE_ICL_DEMO_SCOPE_ALLOC)) if (icl_demo_scope_animating) icl_console_print ("<icl_demo_scope_alloc_finish" #if (defined (BASE_THREADSAFE)) " thread=\"%pp\"" #endif " file=\"%s\"" " line=\"%u\"" " self=\"%pp\"" "/>" #if (defined (BASE_THREADSAFE)) , apr_os_thread_current () #endif , file, line, self); #endif return (self); }