|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include "config.h"#include <errno.h>#include <limits.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <assert.h>#include <ctype.h>#include <sys/types.h>#include "widl.h"#include "utils.h"#include "parser.h"#include "wpp_private.h"#include "header.h"
Go to the source code of this file.
Macros | |
| #define | TRYOPEN(str) |
Enumerations | |
| enum | { OLDNAMES_OPTION = CHAR_MAX + 1 , ACF_OPTION , APP_CONFIG_OPTION , DLLDATA_OPTION , DLLDATA_ONLY_OPTION , LOCAL_STUBS_OPTION , NOSTDINC_OPTION , OLD_TYPELIB_OPTION , PACKING_OPTION , PREFIX_ALL_OPTION , PREFIX_CLIENT_OPTION , PREFIX_SERVER_OPTION , PRINT_HELP , RT_NS_PREFIX , RT_OPTION , ROBUST_OPTION , SYSROOT_OPTION , WIN32_OPTION , WIN64_OPTION } |
Functions | |
| static void | rm_tempfile (void) |
| static char * | make_token (const char *name) |
| static char * | dup_basename_token (const char *name, const char *ext) |
| static void | add_widl_version_define (void) |
| static void | exit_on_signal (int sig) |
| static void | set_everything (int x) |
| void | start_cplusplus_guard (FILE *fp) |
| void | end_cplusplus_guard (FILE *fp) |
| static void | write_dlldata_list (struct strarray filenames, int define_proxy_delegation) |
| static char * | eat_space (char *s) |
| void | write_dlldata (const statement_list_t *stmts) |
| static void | write_id_guid (FILE *f, const char *type, const char *guid_prefix, const char *name, const struct uuid *uuid) |
| static void | write_id_data_stmts (const statement_list_t *stmts) |
| void | write_id_data (const statement_list_t *stmts) |
| static void | option_callback (int optc, char *optarg) |
| int | open_typelib (const char *name) |
| int | main (int argc, char *argv[]) |
| char * | find_input_file (const char *name, const char *parent) |
| FILE * | open_input_file (const char *path) |
| anonymous enum |
Definition at line 151 of file widl.c.
Definition at line 225 of file widl.c.
Referenced by main().
Definition at line 217 of file widl.c.
Referenced by main().
Definition at line 275 of file widl.c.
Referenced by write_dlldata_list(), write_header(), and write_id_data().
Definition at line 888 of file widl.c.
Definition at line 705 of file widl.c.
Definition at line 203 of file widl.c.
Referenced by main().
Definition at line 899 of file widl.c.
Referenced by main().
Definition at line 650 of file widl.c.
Referenced by read_importlib().
Definition at line 487 of file widl.c.
Referenced by main().
Definition at line 268 of file widl.c.
Referenced by write_dlldata_list(), write_header(), and write_id_data().
| void write_dlldata | ( | const statement_list_t * | stmts | ) |
Definition at line 329 of file widl.c.
Definition at line 282 of file widl.c.
Referenced by main(), and write_dlldata().
| void write_id_data | ( | const statement_list_t * | stmts | ) |
Definition at line 431 of file widl.c.
|
static |
Definition at line 394 of file widl.c.
Referenced by write_id_data(), and write_id_data_stmts().
|
static |
Definition at line 384 of file widl.c.
Referenced by write_id_data_stmts().
| char* acf_name |
Definition at line 118 of file widl.c.
Referenced by option_callback().
Definition at line 137 of file widl.c.
Referenced by get_nlsdir(), and main().
| char* client_name |
Definition at line 126 of file widl.c.
Referenced by init_client(), main(), option_callback(), and rm_tempfile().
| char* client_token |
Definition at line 127 of file widl.c.
Referenced by main(), and write_client_routines().
| int debuglevel = DEBUGLEVEL_NONE |
Definition at line 94 of file widl.c.
Referenced by chat(), dump_var_desc(), main(), and option_callback().
| char* dlldata_name |
Definition at line 123 of file widl.c.
Referenced by main(), option_callback(), write_dlldata(), and write_dlldata_list().
Definition at line 140 of file widl.c.
Referenced by open_typelib(), and option_callback().
| int do_client = 0 |
Definition at line 103 of file widl.c.
Referenced by main(), option_callback(), rm_tempfile(), set_everything(), and write_client().
| int do_dlldata = 0 |
Definition at line 107 of file widl.c.
Referenced by main(), option_callback(), set_everything(), and write_dlldata().
| int do_everything = 1 |
Definition at line 98 of file widl.c.
Referenced by main(), option_callback(), write_client(), write_proxies(), write_regscript(), and write_server().
| int do_header = 0 |
Definition at line 100 of file widl.c.
Referenced by main(), option_callback(), rm_tempfile(), set_everything(), and write_header().
| int do_idfile = 0 |
Definition at line 106 of file widl.c.
Referenced by main(), option_callback(), rm_tempfile(), set_everything(), and write_id_data().
| int do_proxies = 0 |
Definition at line 102 of file widl.c.
Referenced by main(), option_callback(), rm_tempfile(), set_everything(), and write_proxies().
| int do_regscript = 0 |
Definition at line 105 of file widl.c.
Referenced by main(), option_callback(), rm_tempfile(), set_everything(), and write_regscript().
| int do_server = 0 |
Definition at line 104 of file widl.c.
Referenced by main(), option_callback(), rm_tempfile(), set_everything(), and write_server().
| int do_typelib = 0 |
Definition at line 101 of file widl.c.
Referenced by main(), option_callback(), rm_tempfile(), set_everything(), and write_typelib_regscript().
| char* header_name |
Definition at line 119 of file widl.c.
Referenced by get_channel_http_header(), init_client(), init_server(), main(), option_callback(), rm_tempfile(), write_header(), write_local_stubs(), and write_proxy_routines().
| char* header_token |
Definition at line 121 of file widl.c.
Referenced by main(), and write_header().
|
static |
Definition at line 144 of file widl.c.
Referenced by write_id_data(), and write_id_data_stmts().
|
static |
Definition at line 132 of file widl.c.
Referenced by main(), option_callback(), rm_tempfile(), and write_id_data().
| char* idl_name |
Definition at line 117 of file widl.c.
Referenced by main(), and write_id_data().
| char* input_name |
Definition at line 116 of file widl.c.
Referenced by init_client(), init_proxy(), init_server(), main(), write_header(), and write_local_stubs().
| int interpreted_mode = 1 |
Definition at line 112 of file widl.c.
Referenced by is_interpreted_func(), need_inline_stubs(), need_proxy_and_inline_stubs(), option_callback(), write_client_call_routine(), write_conf_or_var_desc(), write_descriptors(), write_function_stub(), write_member_type(), write_proxy(), write_proxy_routines(), write_serialize_function(), write_stub_methods(), write_stubdesc(), and write_stubdescriptor().
Definition at line 138 of file widl.c.
Referenced by main(), and open_typelib().
| char* local_stubs_name |
Definition at line 120 of file widl.c.
Referenced by main(), option_callback(), rm_tempfile(), and write_local_stubs().
|
static |
Definition at line 175 of file widl.c.
Referenced by _getopt_long_only_r(), _getopt_long_r(), getopt_long(), getopt_long_only(), and main().
|
static |
Definition at line 108 of file widl.c.
Referenced by open_input_file(), and option_callback().
| int old_names = 0 |
Definition at line 109 of file widl.c.
Referenced by option_callback(), write_clientinterfacedecl(), write_rpc_interface_start(), and write_serverinterfacedecl().
| int old_typelib = 0 |
Definition at line 110 of file widl.c.
Referenced by option_callback(), and write_typelib_regscript().
|
static |
Definition at line 141 of file widl.c.
Referenced by main(), option_callback(), and QCAP_createAVIMux().
Definition at line 146 of file widl.c.
Referenced by clamp_align(), gl_pixel_addr_in_image(), HLPFILE_DecompressGfx(), and option_callback().
| int parser_debug |
Definition at line 95 of file widl.c.
Referenced by main(), and wpp_set_debug().
| int pedantic = 0 |
Definition at line 97 of file widl.c.
Referenced by option_callback(), pp_add_define(), pp_add_macro(), pp_del_define(), and tt_loader_init().
Definition at line 147 of file widl.c.
Referenced by add_coclass_typeinfo(), add_dispinterface_typeinfo(), add_func_desc(), add_interface_typeinfo(), add_var_desc(), create_msft_typelib(), create_sltg_typelib(), fill_params_array(), get_array_fc(), get_correlation_type(), get_element_size(), get_parameter_fc(), get_required_buffer_size_type(), get_stack_size(), get_struct_fc(), get_type_vt(), init_library(), is_interpreted_func(), main(), option_callback(), output_typelib_regscript(), print_phase_basetype(), put_pword(), type_memsize_and_alignment(), vncNewCursor(), write_client_ifaces(), write_conf_or_var_desc(), write_func_param_struct(), write_old_procformatstring_type(), write_proc_func_interp(), write_proxy_routines(), and write_server_stmts().
Definition at line 135 of file widl.c.
Referenced by option_callback(), write_client_func_decl(), write_clientinterfacedecl(), write_function_stub(), write_header_stmts(), and write_rpc_interface_start().
Definition at line 136 of file widl.c.
Referenced by option_callback(), write_function_stub(), write_header_stmts(), write_routinetable(), write_rpc_interface_start(), and write_serverinterfacedecl().
|
static |
Definition at line 99 of file widl.c.
Referenced by main(), and option_callback().
| char* proxy_name |
Definition at line 124 of file widl.c.
Referenced by init_proxy(), main(), option_callback(), and rm_tempfile().
| char* proxy_token |
Definition at line 125 of file widl.c.
Referenced by main(), write_dlldata(), and write_proxy_routines().
| char* regscript_name |
Definition at line 130 of file widl.c.
Referenced by main(), rm_tempfile(), and write_regscript().
| char* regscript_token |
Definition at line 131 of file widl.c.
Referenced by main(), and write_regscript().
| char* server_name |
Definition at line 128 of file widl.c.
Referenced by create_rpcsec_auth_client(), get_client_for_multi_addr(), get_client_for_netaddr(), init_server(), main(), match_common_name(), match_dns_to_subject_alt_name(), match_dns_to_subject_dn(), option_callback(), rm_tempfile(), WTSOpenServerExA(), and WTSOpenServerExW().
| char* server_token |
Definition at line 129 of file widl.c.
Referenced by main(), and write_server_routines().
|
static |
Definition at line 114 of file widl.c.
Referenced by main(), open_typelib(), and option_callback().
Definition at line 142 of file widl.c.
Referenced by main(), and option_callback().
Definition at line 134 of file widl.c.
Referenced by create_file(), make_temp_file(), and remove_temp_files().
Definition at line 133 of file widl.c.
Referenced by make_temp_file(), and remove_temp_files().
| char* typelib_name |
Definition at line 122 of file widl.c.
Referenced by main(), option_callback(), output_typelib_regscript(), rm_tempfile(), save_all_changes(), and write_typelib_regscript().
| int use_abi_namespace = 0 |
Definition at line 113 of file widl.c.
Referenced by compute_delegate_iface_names(), format_parameterized_type_c_name(), option_callback(), write_namespace_end(), and write_namespace_start().
Definition at line 89 of file widl.c.
Referenced by option_callback().
| int winrt_mode = 0 |
Definition at line 111 of file widl.c.
Referenced by check_struct_attrs(), option_callback(), write_apicontract_guard_end(), write_apicontract_guard_start(), write_com_interface_end(), write_regscript(), write_type_definition(), write_type_left(), and write_typedef().