int _log_initialize( void ) { #if BUILD_ENABLE_LOG || BUILD_ENABLE_DEBUG_LOG _log_suppress = hashtable64_allocate( 149 ); #endif return 0; }
int _stream_initialize(void) { _stream_protocol_table = hashtable64_allocate(32); stream_set_protocol_handler(0, 0, fs_open_file); #if FOUNDATION_PLATFORM_ANDROID stream_set_protocol_handler(STRING_CONST("asset"), asset_stream_open); #endif stream_set_protocol_handler(STRING_CONST("file"), fs_open_file); stream_set_protocol_handler(STRING_CONST("stdout"), _stream_open_stdout); stream_set_protocol_handler(STRING_CONST("stderr"), _stream_open_stderr); stream_set_protocol_handler(STRING_CONST("stdin"), _stream_open_stdin); return 0; }