00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include "register_type.h"
00020
00021
00022 TypeHandle long_type_handle;
00023 TypeHandle int_type_handle;
00024 TypeHandle short_type_handle;
00025 TypeHandle char_type_handle;
00026 TypeHandle bool_type_handle;
00027 TypeHandle double_type_handle;
00028 TypeHandle float_type_handle;
00029
00030 TypeHandle long_p_type_handle;
00031 TypeHandle int_p_type_handle;
00032 TypeHandle short_p_type_handle;
00033 TypeHandle char_p_type_handle;
00034 TypeHandle bool_p_type_handle;
00035 TypeHandle double_p_type_handle;
00036 TypeHandle float_p_type_handle;
00037 TypeHandle void_p_type_handle;
00038
00039 void init_system_type_handles() {
00040 static bool done = false;
00041 if (!done) {
00042 done = true;
00043 register_type(long_type_handle, "long");
00044 register_type(int_type_handle, "int");
00045 register_type(short_type_handle, "short");
00046 register_type(char_type_handle, "char");
00047 register_type(bool_type_handle, "bool");
00048 register_type(double_type_handle, "double");
00049 register_type(float_type_handle, "float");
00050
00051 register_type(int_p_type_handle, "int*");
00052 register_type(short_p_type_handle, "short*");
00053 register_type(char_p_type_handle, "char*");
00054 register_type(bool_p_type_handle, "bool*");
00055 register_type(double_p_type_handle, "double*");
00056 register_type(float_p_type_handle, "float*");
00057 register_type(void_p_type_handle, "void*");
00058 }
00059 }
00060
00061