Prepare an argument for a BE
| 21 | |
| 22 | // Prepare an argument for a BE |
| 23 | void |
| 24 | be_util::prep_be_arg (char *arg) |
| 25 | { |
| 26 | static const char WB_STUB_EXPORT_MACRO[] = "stub_export_macro="; |
| 27 | static const size_t SZ_WB_STUB_EXPORT_MACRO = |
| 28 | sizeof(WB_STUB_EXPORT_MACRO) - 1; |
| 29 | static const char WB_STUB_EXPORT_INCLUDE[] = "stub_export_include="; |
| 30 | static const size_t SZ_WB_STUB_EXPORT_INCLUDE = |
| 31 | sizeof(WB_STUB_EXPORT_INCLUDE) - 1; |
| 32 | static const char WB_SKEL_EXPORT_MACRO[] = "skel_export_macro="; |
| 33 | static const size_t SZ_WB_SKEL_EXPORT_MACRO = |
| 34 | sizeof(WB_SKEL_EXPORT_MACRO) - 1; |
| 35 | static const char WB_SKEL_EXPORT_INCLUDE[] = "skel_export_include="; |
| 36 | static const size_t SZ_WB_SKEL_EXPORT_INCLUDE = |
| 37 | sizeof(WB_SKEL_EXPORT_INCLUDE) - 1; |
| 38 | static const char WB_NATIVE_LIB_NAME[] = "native_lib_name="; |
| 39 | static const size_t SZ_WB_NATIVE_LIB_NAME = |
| 40 | sizeof(WB_NATIVE_LIB_NAME) - 1; |
| 41 | static const char WB_STUB_EXTRA_INCLUDE[] = "stub_extra_include="; |
| 42 | static const size_t SZ_WB_STUB_EXTRA_INCLUDE = |
| 43 | sizeof(WB_STUB_EXTRA_INCLUDE) - 1; |
| 44 | static const char WB_TAO_INC_PRE[] = "tao_include_prefix="; |
| 45 | static const size_t SZ_WB_TAO_INC_PRE = sizeof(WB_TAO_INC_PRE) - 1; |
| 46 | |
| 47 | if (0 == ACE_OS::strncasecmp(arg, WB_STUB_EXPORT_MACRO, |
| 48 | SZ_WB_STUB_EXPORT_MACRO)) { |
| 49 | be_global->stub_export_macro(arg + SZ_WB_STUB_EXPORT_MACRO); |
| 50 | |
| 51 | } else if (0 == ACE_OS::strncasecmp(arg, WB_STUB_EXPORT_INCLUDE, |
| 52 | SZ_WB_STUB_EXPORT_INCLUDE)) { |
| 53 | be_global->stub_export_include(arg + SZ_WB_STUB_EXPORT_INCLUDE); |
| 54 | |
| 55 | } else if (0 == ACE_OS::strncasecmp(arg, WB_SKEL_EXPORT_MACRO, |
| 56 | SZ_WB_SKEL_EXPORT_MACRO)) { |
| 57 | be_global->skel_export_macro(arg + SZ_WB_SKEL_EXPORT_MACRO); |
| 58 | |
| 59 | } else if (0 == ACE_OS::strncasecmp(arg, WB_SKEL_EXPORT_INCLUDE, |
| 60 | SZ_WB_SKEL_EXPORT_INCLUDE)) { |
| 61 | be_global->skel_export_include(arg + SZ_WB_SKEL_EXPORT_INCLUDE); |
| 62 | |
| 63 | } else if (0 == ACE_OS::strncasecmp(arg, WB_NATIVE_LIB_NAME, |
| 64 | SZ_WB_NATIVE_LIB_NAME)) { |
| 65 | be_global->native_lib_name(arg + SZ_WB_NATIVE_LIB_NAME); |
| 66 | |
| 67 | } else if (0 == ACE_OS::strncasecmp(arg, WB_STUB_EXTRA_INCLUDE, |
| 68 | SZ_WB_STUB_EXTRA_INCLUDE)) { |
| 69 | be_global->add_include(arg + SZ_WB_STUB_EXTRA_INCLUDE, |
| 70 | BE_GlobalData::STUB_CPP); |
| 71 | |
| 72 | } else if (0 == ACE_OS::strncasecmp(arg, WB_TAO_INC_PRE, SZ_WB_TAO_INC_PRE)) { |
| 73 | be_global->tao_inc_pre_ = arg + SZ_WB_TAO_INC_PRE; |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | void |
| 78 | be_util::arg_post_proc (void) |
nothing calls this directly
no test coverage detected