#include "idl.h"
#include "idl_extern.h"
#include "drv_private_ifr.h"
#include "be_extern.h"
Include dependency graph for drv_init_ifr.cpp:
Go to the source code of this file.
Functions | |
void | DRV_init (void) |
Variables | |
const size_t | LOCAL_ESCAPES_BUFFER_SIZE = 1024 |
|
Definition at line 79 of file drv_init_ifr.cpp. References ACE_NEW, be_global, DRV_file_index, DRV_nfiles, LOCAL_ESCAPES_BUFFER_SIZE, and ACE_OS::memset().
00080 { 00081 // Initialize FE global data object. 00082 ACE_NEW (idl_global, 00083 IDL_GlobalData); 00084 00085 // Initialize some of its data. 00086 idl_global->set_root (0); 00087 idl_global->set_gen (0); 00088 idl_global->set_err (FE_new_UTL_Error ()); 00089 idl_global->set_err_count (0); 00090 idl_global->set_indent (FE_new_UTL_Indenter ()); 00091 idl_global->set_filename (0); 00092 idl_global->set_main_filename (0); 00093 idl_global->set_real_filename (0); 00094 idl_global->set_stripped_filename (0); 00095 idl_global->set_import (I_TRUE); 00096 idl_global->set_in_main_file (I_FALSE); 00097 idl_global->set_lineno (-1); 00098 idl_global->set_prog_name (0); 00099 00100 #if defined (TAO_IDL_PREPROCESSOR) 00101 idl_global->set_cpp_location (TAO_IDL_PREPROCESSOR); 00102 #elif defined (ACE_CC_PREPROCESSOR) 00103 idl_global->set_cpp_location (ACE_CC_PREPROCESSOR); 00104 #else 00105 // Just default to cc. 00106 idl_global->set_cpp_location ("cc"); 00107 #endif /* TAO_IDL_PREPROCESSOR */ 00108 00109 char local_escapes[LOCAL_ESCAPES_BUFFER_SIZE]; 00110 ACE_OS::memset (&local_escapes, 00111 0, 00112 LOCAL_ESCAPES_BUFFER_SIZE); 00113 00114 idl_global->set_local_escapes (local_escapes); 00115 idl_global->set_be (""); 00116 idl_global->set_compile_flags (0); 00117 idl_global->set_read_from_stdin (I_FALSE); 00118 idl_global->set_include_file_names (0); 00119 idl_global->set_n_include_file_names (0); 00120 idl_global->set_parse_state (IDL_GlobalData::PS_NoState); 00121 00122 // Initialize BE global data object. 00123 ACE_NEW (be_global, 00124 BE_GlobalData); 00125 00126 // Initialize driver private data. 00127 DRV_nfiles = 0; 00128 DRV_file_index = 0; 00129 } |
|
Definition at line 76 of file drv_init_ifr.cpp. Referenced by DRV_init(). |