Commit 92c4d156679855ee8c16448bc9e483762eca794d
- Diff rendering mode:
- inline
- side by side
c/pbe/lib/be_args.cc
(1 / 1)
|   | |||
| 364 | 364 | } | |
| 365 | 365 | ||
| 366 | 366 | /* Does `pres_impl' contain a directory component? If so, get it. */ | |
| 367 | pres_impl_slash = (pres_impl ? strrchr(pres_impl, '/') : 0); | ||
| 367 | pres_impl_slash = (char *)(pres_impl ? strrchr(pres_impl, '/') : 0); | ||
| 368 | 368 | if (pres_impl_slash) { | |
| 369 | 369 | if (pres_impl_slash == pres_impl) | |
| 370 | 370 | /* `pres_impl' is in `/'. */ |
c/pbe/lib/state_handlers.cc
(1 / 0)
|   | |||
| 39 | 39 | #endif | |
| 40 | 40 | ||
| 41 | 41 | #include <unistd.h> | |
| 42 | #include <time.h> | ||
| 42 | 43 | #endif /* !defined(__CYGWIN__) && !defined(__CYGWIN32__) */ | |
| 43 | 44 | ||
| 44 | 45 | #ifdef NEED_GETHOSTNAME_DECL |
c/pfe/fluke/pg_fluke.cc
(3 / 3)
|   | |||
| 33 | 33 | ||
| 34 | 34 | pg_fluke::pg_fluke() | |
| 35 | 35 | { | |
| 36 | #define NAME_FORMAT(type) names.formats[name_strings::##type##_fmt] | ||
| 37 | #define NAME_LITERAL_STR(type) names.literals[name_strings::##type##_lit].str | ||
| 38 | #define NAME_LITERAL_LEN(type) names.literals[name_strings::##type##_lit].len | ||
| 36 | #define NAME_FORMAT(type) names.formats[name_strings::type##_fmt] | ||
| 37 | #define NAME_LITERAL_STR(type) names.literals[name_strings::type##_lit].str | ||
| 38 | #define NAME_LITERAL_LEN(type) names.literals[name_strings::type##_lit].len | ||
| 39 | 39 | ||
| 40 | 40 | /* Should define them all... */ | |
| 41 | 41 | NAME_FORMAT(server_func) = "%I%_server%_%s"; |
c/pfe/lib/build_init_cast.cc
(1 / 9)
|   | |||
| 20 | 20 | */ | |
| 21 | 21 | ||
| 22 | 22 | #include <stdio.h> | |
| 23 | /* | ||
| 24 | #include <string.h> | ||
| 25 | We declare these individually rather than use the header because | ||
| 26 | the HPUX and SunOS4 systems we tried compiling on have funky g++ | ||
| 27 | installations that make strrchr get munged _strrchr__FPci instead | ||
| 28 | of _strrchr | ||
| 29 | */ | ||
| 30 | extern "C" char *strrchr(const char *s, int c); | ||
| 31 | extern "C" int strcmp(const char *s, const char *s2); | ||
| 23 | #include <string.h> | ||
| 32 | 24 | ||
| 33 | 25 | #include "private.hh" | |
| 34 | 26 |
c/pfe/lib/p_calc_name.cc
(6 / 6)
|   | |||
| 98 | 98 | #define DEFINE_CALC_NAME_FMT_OPTION(type, explain) \ | |
| 99 | 99 | { \ | |
| 100 | 100 | #type "_fmt", \ | |
| 101 | name_strings::##type##_fmt, \ | ||
| 101 | name_strings::type##_fmt, \ | ||
| 102 | 102 | "Specify the format of " explain \ | |
| 103 | 103 | } | |
| 104 | 104 | ||
| 105 | 105 | #define DEFINE_CALC_NAME_LIT_OPTION(type, explain) \ | |
| 106 | 106 | { \ | |
| 107 | 107 | #type "_lit", \ | |
| 108 | name_strings::##type##_lit, \ | ||
| 108 | name_strings::type##_lit, \ | ||
| 109 | 109 | "Specify the string for " explain \ | |
| 110 | 110 | } | |
| 111 | 111 | ||
| … | … | ||
| 333 | 333 | #define DEFINE_CALC_NAME_FUNCTION(type) \ | |
| 334 | 334 | char *pg_state::calc_##type##_name(const char *basic_name) \ | |
| 335 | 335 | { \ | |
| 336 | return calc_name(names.formats[name_strings::##type##_fmt], \ | ||
| 336 | return calc_name(names.formats[name_strings::type##_fmt], \ | ||
| 337 | 337 | basic_name); \ | |
| 338 | 338 | } | |
| 339 | 339 | ||
| … | … | ||
| 346 | 346 | \ | |
| 347 | 347 | calc_scoped_name(&scname, \ | |
| 348 | 348 | parent_ref, \ | |
| 349 | names.formats[name_strings::##type##_scoped_fmt]); \ | ||
| 349 | names.formats[name_strings::type##_scoped_fmt]); \ | ||
| 350 | 350 | cast_add_scope_name(&scname, \ | |
| 351 | 351 | base_name, \ | |
| 352 | 352 | null_template_arg_array); \ | |
| … | … | ||
| 715 | 715 | ++calc_name_data.count; \ | |
| 716 | 716 | } while (0) | |
| 717 | 717 | ||
| 718 | #define NAME_LITERAL_STR(type) names.literals[name_strings::##type##_lit].str | ||
| 719 | #define NAME_LITERAL_LEN(type) names.literals[name_strings::##type##_lit].len | ||
| 718 | #define NAME_LITERAL_STR(type) names.literals[name_strings::type##_lit].str | ||
| 719 | #define NAME_LITERAL_LEN(type) names.literals[name_strings::type##_lit].len | ||
| 720 | 720 | ||
| 721 | 721 | /* | |
| 722 | 722 | * An internal auxiliary. `calc_name_module' locates the names of the AOI |
c/pfe/lib/p_interface_def.cc
(1 / 9)
|   | |||
| 20 | 20 | */ | |
| 21 | 21 | ||
| 22 | 22 | #include <stdio.h> | |
| 23 | /* | ||
| 24 | #include <string.h> | ||
| 25 | We declare these individually rather than use the header because | ||
| 26 | the HPUX and SunOS4 systems we tried compiling on have funky g++ | ||
| 27 | installations that make strrchr get munged _strrchr__FPci instead | ||
| 28 | of _strrchr | ||
| 29 | */ | ||
| 30 | extern "C" char *strrchr(const char *s, int c); | ||
| 31 | extern "C" int strcmp(const char *s, const char *s2); | ||
| 23 | #include <string.h> | ||
| 32 | 24 | ||
| 33 | 25 | #include <mom/compiler.h> | |
| 34 | 26 | #include <mom/libaoi.h> |
c/pfe/lib/pg_state.cc
(3 / 3)
|   | |||
| 53 | 53 | * Initialize the strings that are used to construct names. Most | |
| 54 | 54 | * presentation generators will override at least some of these values. | |
| 55 | 55 | */ | |
| 56 | #define NAME_FORMAT(type) names.formats[name_strings::##type##_fmt] | ||
| 57 | #define NAME_LITERAL_STR(type) names.literals[name_strings::##type##_lit].str | ||
| 58 | #define NAME_LITERAL_LEN(type) names.literals[name_strings::##type##_lit].len | ||
| 56 | #define NAME_FORMAT(type) names.formats[name_strings::type##_fmt] | ||
| 57 | #define NAME_LITERAL_STR(type) names.literals[name_strings::type##_lit].str | ||
| 58 | #define NAME_LITERAL_LEN(type) names.literals[name_strings::type##_lit].len | ||
| 59 | 59 | ||
| 60 | 60 | /* The `null' format should never ever be used. */ | |
| 61 | 61 | NAME_FORMAT(null) = ""; |
c/pfe/libcorba/pg_corba.cc
(3 / 3)
|   | |||
| 25 | 25 | ||
| 26 | 26 | pg_corba::pg_corba() | |
| 27 | 27 | { | |
| 28 | #define NAME_FORMAT(type) names.formats[name_strings::##type##_fmt] | ||
| 29 | #define NAME_LITERAL_STR(type) names.literals[name_strings::##type##_lit].str | ||
| 30 | #define NAME_LITERAL_LEN(type) names.literals[name_strings::##type##_lit].len | ||
| 28 | #define NAME_FORMAT(type) names.formats[name_strings::type##_fmt] | ||
| 29 | #define NAME_LITERAL_STR(type) names.literals[name_strings::type##_lit].str | ||
| 30 | #define NAME_LITERAL_LEN(type) names.literals[name_strings::type##_lit].len | ||
| 31 | 31 | ||
| 32 | 32 | /* | |
| 33 | 33 | * CORBA does not specify the names of server skeletons nor the names |
|   | |||
| 27 | 27 | ||
| 28 | 28 | pg_corbaxx::pg_corbaxx() | |
| 29 | 29 | { | |
| 30 | #define NAME_FORMAT(type) names.formats[name_strings::##type##_fmt] | ||
| 31 | #define NAME_LITERAL_STR(type) names.literals[name_strings::##type##_lit].str | ||
| 32 | #define NAME_LITERAL_LEN(type) names.literals[name_strings::##type##_lit].len | ||
| 30 | #define NAME_FORMAT(type) names.formats[name_strings::type##_fmt] | ||
| 31 | #define NAME_LITERAL_STR(type) names.literals[name_strings::type##_lit].str | ||
| 32 | #define NAME_LITERAL_LEN(type) names.literals[name_strings::type##_lit].len | ||
| 33 | 33 | ||
| 34 | 34 | /* | |
| 35 | 35 | * CORBA does not specify the names of server skeletons nor the names |
c/pfe/sun/p_calc_name.cc
(1 / 1)
|   | |||
| 84 | 84 | * These functions are auxiliaries for the override methods above. | |
| 85 | 85 | */ | |
| 86 | 86 | ||
| 87 | #define NAME_LITERAL_STR(type) names.literals[name_strings::##type##_lit].str | ||
| 87 | #define NAME_LITERAL_STR(type) names.literals[name_strings::type##_lit].str | ||
| 88 | 88 | ||
| 89 | 89 | char *pg_sun::calc_operation_and_version_id(const char *basic_name) | |
| 90 | 90 | { |
c/pfe/sun/pg_sun.cc
(3 / 3)
|   | |||
| 50 | 50 | ||
| 51 | 51 | pg_sun::pg_sun() | |
| 52 | 52 | { | |
| 53 | #define NAME_FORMAT(type) names.formats[name_strings::##type##_fmt] | ||
| 54 | #define NAME_LITERAL_STR(type) names.literals[name_strings::##type##_lit].str | ||
| 55 | #define NAME_LITERAL_LEN(type) names.literals[name_strings::##type##_lit].len | ||
| 53 | #define NAME_FORMAT(type) names.formats[name_strings::type##_fmt] | ||
| 54 | #define NAME_LITERAL_STR(type) names.literals[name_strings::type##_lit].str | ||
| 55 | #define NAME_LITERAL_LEN(type) names.literals[name_strings::type##_lit].len | ||
| 56 | 56 | ||
| 57 | 57 | /* | |
| 58 | 58 | * Override some of the format strings for Sun RPC-style presentations. |
|   | |||
| 186 | 186 | ||
| 187 | 187 | #define corba_except(name) \ | |
| 188 | 188 | typedef flick_system_exception name; \ | |
| 189 | name *##name##__alloc(); | ||
| 189 | name *name##__alloc(); | ||
| 190 | 190 | ||
| 191 | 191 | /* | |
| 192 | 192 | * Here are the standard CORBA system exception. |
|   | |||
| 254 | 254 | * Define the allocators for the standard CORBA exceptions. | |
| 255 | 255 | */ | |
| 256 | 256 | #define sys_except__alloc(name) \ | |
| 257 | name *##name##__alloc() { return (name *) flick_system_exception_alloc(); } | ||
| 257 | name *name##__alloc() { return (name *) flick_system_exception_alloc(); } | ||
| 258 | 258 | ||
| 259 | 259 | sys_except__alloc(CORBA_UNKNOWN) | |
| 260 | 260 | sys_except__alloc(CORBA_BAD_PARAM) |
|   | |||
| 254 | 254 | * Define the allocators for the standard CORBA exceptions. | |
| 255 | 255 | */ | |
| 256 | 256 | #define sys_except__alloc(name) \ | |
| 257 | name *##name##__alloc() { return (name *) flick_system_exception_alloc(); } | ||
| 257 | name *name##__alloc() { return (name *) flick_system_exception_alloc(); } | ||
| 258 | 258 | ||
| 259 | 259 | sys_except__alloc(CORBA_UNKNOWN) | |
| 260 | 260 | sys_except__alloc(CORBA_BAD_PARAM) |
|   | |||
| 254 | 254 | * Define the allocators for the standard CORBA exceptions. | |
| 255 | 255 | */ | |
| 256 | 256 | #define sys_except__alloc(name) \ | |
| 257 | name *##name##__alloc() { return (name *) flick_system_exception_alloc(); } | ||
| 257 | name *name##__alloc() { return (name *) flick_system_exception_alloc(); } | ||
| 258 | 258 | ||
| 259 | 259 | sys_except__alloc(CORBA_UNKNOWN) | |
| 260 | 260 | sys_except__alloc(CORBA_BAD_PARAM) |
|   | |||
| 254 | 254 | * Define the allocators for the standard CORBA exceptions. | |
| 255 | 255 | */ | |
| 256 | 256 | #define sys_except__alloc(name) \ | |
| 257 | name *##name##__alloc() { return (name *) flick_system_exception_alloc(); } | ||
| 257 | name *name##__alloc() { return (name *) flick_system_exception_alloc(); } | ||
| 258 | 258 | ||
| 259 | 259 | sys_except__alloc(CORBA_UNKNOWN) | |
| 260 | 260 | sys_except__alloc(CORBA_BAD_PARAM) |

