2002-07-16 05:20:45 +02:00
|
|
|
/*
|
|
|
|
* IDL Compiler
|
|
|
|
*
|
|
|
|
* Copyright 2002 Ove Kaaven
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2002-07-16 05:20:45 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WIDL_WIDL_H
|
|
|
|
#define __WIDL_WIDL_H
|
|
|
|
|
|
|
|
#include "widltypes.h"
|
|
|
|
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
extern int debuglevel;
|
|
|
|
#define DEBUGLEVEL_NONE 0x0000
|
|
|
|
#define DEBUGLEVEL_CHAT 0x0001
|
|
|
|
#define DEBUGLEVEL_DUMP 0x0002
|
|
|
|
#define DEBUGLEVEL_TRACE 0x0004
|
|
|
|
#define DEBUGLEVEL_PPMSG 0x0008
|
|
|
|
#define DEBUGLEVEL_PPLEX 0x0010
|
|
|
|
#define DEBUGLEVEL_PPTRACE 0x0020
|
|
|
|
|
|
|
|
extern int pedantic;
|
2007-01-19 12:46:19 +01:00
|
|
|
extern int do_everything;
|
2005-01-26 20:40:47 +01:00
|
|
|
extern int do_header;
|
|
|
|
extern int do_typelib;
|
|
|
|
extern int do_proxies;
|
2005-02-23 21:31:07 +01:00
|
|
|
extern int do_client;
|
|
|
|
extern int do_server;
|
2010-11-27 13:24:49 +01:00
|
|
|
extern int do_regscript;
|
2006-08-04 02:48:45 +02:00
|
|
|
extern int do_idfile;
|
2007-10-18 03:03:57 +02:00
|
|
|
extern int do_dlldata;
|
2006-04-22 21:52:51 +02:00
|
|
|
extern int old_names;
|
2008-12-26 17:21:12 +01:00
|
|
|
extern int do_win32;
|
|
|
|
extern int do_win64;
|
2009-08-25 14:29:47 +02:00
|
|
|
extern int win32_packing;
|
|
|
|
extern int win64_packing;
|
2002-07-16 05:20:45 +02:00
|
|
|
|
|
|
|
extern char *input_name;
|
|
|
|
extern char *header_name;
|
2008-12-29 13:06:35 +01:00
|
|
|
extern char *header_token;
|
2007-10-31 03:07:36 +01:00
|
|
|
extern char *local_stubs_name;
|
2004-01-07 05:21:27 +01:00
|
|
|
extern char *typelib_name;
|
2007-10-18 03:03:57 +02:00
|
|
|
extern char *dlldata_name;
|
2002-07-16 05:20:45 +02:00
|
|
|
extern char *proxy_name;
|
2002-12-03 20:12:07 +01:00
|
|
|
extern char *proxy_token;
|
2005-02-23 21:31:07 +01:00
|
|
|
extern char *client_name;
|
|
|
|
extern char *client_token;
|
|
|
|
extern char *server_name;
|
|
|
|
extern char *server_token;
|
2010-11-27 13:24:49 +01:00
|
|
|
extern char *regscript_name;
|
|
|
|
extern char *regscript_token;
|
2007-04-26 03:17:31 +02:00
|
|
|
extern const char *prefix_client;
|
|
|
|
extern const char *prefix_server;
|
2011-05-26 21:34:51 +02:00
|
|
|
extern unsigned int pointer_size;
|
2002-07-16 05:20:45 +02:00
|
|
|
extern time_t now;
|
|
|
|
|
|
|
|
extern int line_number;
|
|
|
|
extern int char_number;
|
|
|
|
|
2011-06-01 21:00:56 +02:00
|
|
|
enum stub_mode
|
|
|
|
{
|
|
|
|
MODE_Os, /* inline stubs */
|
|
|
|
MODE_Oi, /* old-style interpreted stubs */
|
|
|
|
MODE_Oif /* new-style fully interpreted stubs */
|
|
|
|
};
|
2011-06-08 12:14:47 +02:00
|
|
|
extern enum stub_mode get_stub_mode(void);
|
2011-06-01 21:00:56 +02:00
|
|
|
|
2008-12-29 13:06:35 +01:00
|
|
|
extern void write_header(const statement_list_t *stmts);
|
2008-12-29 13:06:12 +01:00
|
|
|
extern void write_id_data(const statement_list_t *stmts);
|
2008-04-24 20:06:28 +02:00
|
|
|
extern void write_proxies(const statement_list_t *stmts);
|
|
|
|
extern void write_client(const statement_list_t *stmts);
|
|
|
|
extern void write_server(const statement_list_t *stmts);
|
2010-11-27 13:24:49 +01:00
|
|
|
extern void write_regscript(const statement_list_t *stmts);
|
2008-12-29 13:06:24 +01:00
|
|
|
extern void write_local_stubs(const statement_list_t *stmts);
|
2008-04-24 20:06:28 +02:00
|
|
|
extern void write_dlldata(const statement_list_t *stmts);
|
2005-02-23 21:31:07 +01:00
|
|
|
|
2008-12-29 13:06:35 +01:00
|
|
|
extern void start_cplusplus_guard(FILE *fp);
|
|
|
|
extern void end_cplusplus_guard(FILE *fp);
|
|
|
|
|
2002-07-16 05:20:45 +02:00
|
|
|
#endif
|