MCPcopy Create free account
hub / github.com/apache/thrift / initGlobals

Function initGlobals

compiler/cpp/src/thrift/common.cc:34–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32t_type* g_type_double;
33
34void initGlobals() {
35 g_type_void = new t_base_type("void", t_base_type::TYPE_VOID);
36 g_type_string = new t_base_type("string", t_base_type::TYPE_STRING);
37 g_type_binary = new t_base_type("string", t_base_type::TYPE_STRING);
38 ((t_base_type*)g_type_binary)->set_binary(true);
39 g_type_uuid = new t_base_type("string", t_base_type::TYPE_UUID);
40 g_type_bool = new t_base_type("bool", t_base_type::TYPE_BOOL);
41 g_type_i8 = new t_base_type("i8", t_base_type::TYPE_I8);
42 g_type_i16 = new t_base_type("i16", t_base_type::TYPE_I16);
43 g_type_i32 = new t_base_type("i32", t_base_type::TYPE_I32);
44 g_type_i64 = new t_base_type("i64", t_base_type::TYPE_I64);
45 g_type_double = new t_base_type("double", t_base_type::TYPE_DOUBLE);
46}
47
48void clearGlobals() {
49 delete g_type_void;

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 1

set_binaryMethod · 0.80

Tested by 1

mainFunction · 0.68