ReactOS 0.4.16-dev-889-g9563c07
|
#include "config.h"
#include "wine/port.h"
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <ctype.h>
#include <signal.h>
#include "widl.h"
#include "utils.h"
#include "parser.h"
#include "wine/wpp.h"
#include "header.h"
Go to the source code of this file.
Classes | |
struct | filename_node_t |
Enumerations | |
enum | { OLDNAMES_OPTION = CHAR_MAX + 1 , ACF_OPTION , APP_CONFIG_OPTION , DLLDATA_OPTION , DLLDATA_ONLY_OPTION , LOCAL_STUBS_OPTION , OLD_TYPELIB_OPTION , PREFIX_ALL_OPTION , PREFIX_CLIENT_OPTION , PREFIX_SERVER_OPTION , PRINT_HELP , RT_NS_PREFIX , RT_OPTION , ROBUST_OPTION , WIN32_OPTION , WIN64_OPTION , WIN32_ALIGN_OPTION , WIN64_ALIGN_OPTION } |
Functions | |
static void | rm_tempfile (void) |
enum stub_mode | get_stub_mode (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 | set_target (const char *target) |
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 | add_filename_node (struct list *list, const char *name) |
static void | free_filename_nodes (struct list *list) |
static void | write_dlldata_list (struct list *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 UUID *uuid) |
static void | write_id_data_stmts (const statement_list_t *stmts) |
void | write_id_data (const statement_list_t *stmts) |
int | main (int argc, char *argv[]) |
anonymous enum |
Definition at line 161 of file widl.c.
Definition at line 359 of file widl.c.
Referenced by main(), and write_dlldata().
Definition at line 346 of file widl.c.
Referenced by write_dlldata_list(), write_header(), and write_id_data().
Definition at line 366 of file widl.c.
Referenced by main(), and write_dlldata().
Definition at line 210 of file widl.c.
Referenced by gen_proxy(), is_interpreted_func(), need_inline_stubs(), need_proxy_and_inline_stubs(), write_client_call_routine(), write_dispatchtable(), write_nonsimple_pointer(), write_proc_func_header(), write_procformatstring_func(), write_proxy(), write_proxy_routines(), write_serialize_function(), write_simple_pointer(), write_stub_methods(), write_stubdesc(), and write_stubdescriptor().
Definition at line 584 of file widl.c.
Definition at line 217 of file widl.c.
Referenced by main().
Definition at line 957 of file widl.c.
Referenced by main().
Definition at line 277 of file widl.c.
Referenced by main().
Definition at line 339 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 421 of file widl.c.
Definition at line 376 of file widl.c.
Referenced by main(), and write_dlldata().
void write_id_data | ( | const statement_list_t * | stmts | ) |
Definition at line 528 of file widl.c.
|
static |
Definition at line 491 of file widl.c.
Referenced by write_id_data(), and write_id_data_stmts().
|
static |
Definition at line 481 of file widl.c.
Referenced by write_id_data_stmts().
char* client_name |
Definition at line 142 of file widl.c.
Referenced by init_client(), main(), and rm_tempfile().
char* client_token |
Definition at line 143 of file widl.c.
Referenced by main(), and write_client_routines().
int debuglevel = DEBUGLEVEL_NONE |
Definition at line 109 of file widl.c.
Referenced by chat(), dump_var_desc(), and main().
char* dlldata_name |
Definition at line 139 of file widl.c.
Referenced by main(), write_dlldata(), and write_dlldata_list().
int do_client = 0 |
Definition at line 119 of file widl.c.
Referenced by main(), rm_tempfile(), set_everything(), and write_client().
int do_dlldata = 0 |
Definition at line 123 of file widl.c.
Referenced by main(), set_everything(), and write_dlldata().
int do_everything = 1 |
Definition at line 113 of file widl.c.
Referenced by main(), write_client(), write_proxies(), write_regscript(), and write_server().
int do_header = 0 |
Definition at line 115 of file widl.c.
Referenced by main(), rm_tempfile(), set_everything(), and write_header().
int do_idfile = 0 |
Definition at line 122 of file widl.c.
Referenced by main(), rm_tempfile(), set_everything(), and write_id_data().
int do_old_typelib = 0 |
Definition at line 117 of file widl.c.
Referenced by main(), and set_everything().
int do_proxies = 0 |
Definition at line 118 of file widl.c.
Referenced by main(), rm_tempfile(), set_everything(), and write_proxies().
int do_regscript = 0 |
Definition at line 121 of file widl.c.
Referenced by main(), rm_tempfile(), set_everything(), and write_regscript().
int do_server = 0 |
Definition at line 120 of file widl.c.
Referenced by main(), rm_tempfile(), set_everything(), and write_server().
int do_typelib = 0 |
Definition at line 116 of file widl.c.
Referenced by main(), rm_tempfile(), set_everything(), type_new_struct(), and write_typelib_regscript().
char* header_name |
Definition at line 135 of file widl.c.
Referenced by get_channel_http_header(), init_client(), init_server(), main(), rm_tempfile(), write_header(), write_local_stubs(), and write_proxy_routines().
char* header_token |
Definition at line 137 of file widl.c.
Referenced by main(), and write_header().
|
static |
Definition at line 155 of file widl.c.
Referenced by write_id_data(), and write_id_data_stmts().
|
static |
Definition at line 148 of file widl.c.
Referenced by main(), rm_tempfile(), and write_id_data().
char* input_idl_name |
Definition at line 133 of file widl.c.
Referenced by main(), and write_id_data().
char* input_name |
Definition at line 132 of file widl.c.
Referenced by init_client(), init_proxy(), init_server(), main(), write_header(), and write_local_stubs().
char* local_stubs_name |
Definition at line 136 of file widl.c.
Referenced by main(), rm_tempfile(), and write_local_stubs().
Definition at line 184 of file widl.c.
Referenced by _getopt_long_only_r(), _getopt_long_r(), getopt_long(), getopt_long_only(), and main().
int old_names = 0 |
Definition at line 125 of file widl.c.
Referenced by main(), write_clientinterfacedecl(), write_rpc_interface_start(), and write_serverinterfacedecl().
int parser_debug |
Definition at line 110 of file widl.c.
Referenced by main(), and wpp_set_debug().
int pedantic = 0 |
Definition at line 112 of file widl.c.
Referenced by main(), pp_internal_error(), and tt_loader_init().
Definition at line 157 of file widl.c.
Referenced by add_coclass_typeinfo(), add_dispinterface_typeinfo(), add_func_desc(), add_interface_typeinfo(), add_var_desc(), clamp_align(), create_msft_typelib(), get_array_fc(), get_element_size(), get_parameter_fc(), get_required_buffer_size_type(), get_stack_size(), get_struct_fc(), get_stub_mode(), get_type_vt(), init_library(), is_interpreted_func(), main(), output_typelib_regscript(), print_phase_basetype(), put_pword(), type_memsize_and_alignment(), vncNewCursor(), write_client_call_routine(), write_client_ifaces(), write_conf_or_var_desc(), write_func_param_struct(), write_new_procformatstring_type(), write_old_procformatstring_type(), write_proc_func_header(), write_procformatstring_func(), write_proxy_routines(), and write_server_stmts().
Definition at line 150 of file widl.c.
Referenced by main(), write_client_func_decl(), write_clientinterfacedecl(), write_function_stub(), write_header_stmts(), and write_rpc_interface_start().
Definition at line 151 of file widl.c.
Referenced by main(), write_function_stub(), write_header_stmts(), write_routinetable(), write_rpc_interface_start(), and write_serverinterfacedecl().
char* proxy_name |
Definition at line 140 of file widl.c.
Referenced by init_proxy(), main(), and rm_tempfile().
char* proxy_token |
Definition at line 141 of file widl.c.
Referenced by main(), write_dlldata(), and write_proxy_routines().
char* regscript_name |
Definition at line 146 of file widl.c.
Referenced by main(), rm_tempfile(), and write_regscript().
char* regscript_token |
Definition at line 147 of file widl.c.
Referenced by main(), and write_regscript().
char* server_name |
Definition at line 144 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(), rm_tempfile(), WTSOpenServerExA(), and WTSOpenServerExW().
char* server_token |
Definition at line 145 of file widl.c.
Referenced by main(), and write_server_routines().
Definition at line 130 of file widl.c.
Referenced by get_stub_mode().
char* temp_name |
Definition at line 149 of file widl.c.
Referenced by main(), rm_tempfile(), and StgOpenStorage().
char* typelib_name |
Definition at line 138 of file widl.c.
Referenced by main(), output_typelib_regscript(), rm_tempfile(), save_all_changes(), and write_typelib_regscript().
int use_abi_namespace = 0 |
Definition at line 129 of file widl.c.
Referenced by append_namespace(), format_namespace(), main(), write_namespace_end(), and write_namespace_start().
int win32_packing = 8 |
Definition at line 126 of file widl.c.
Referenced by clamp_align(), and main().
int win64_packing = 8 |
Definition at line 127 of file widl.c.
Referenced by clamp_align(), and main().
int winrt_mode = 0 |
Definition at line 128 of file widl.c.
Referenced by main(), and write_com_interface_end().