1998-12-03 09:33:59 +03:00
|
|
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2001-09-29 00:14:13 +04:00
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
2005-12-31 16:18:10 +03:00
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
2001-09-29 00:14:13 +04:00
|
|
|
*
|
2005-12-31 16:18:10 +03:00
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
1998-11-28 19:52:24 +03:00
|
|
|
*
|
2001-09-29 00:14:13 +04:00
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
1998-11-28 19:52:24 +03:00
|
|
|
*
|
1999-11-06 06:43:54 +03:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
2005-12-31 16:18:10 +03:00
|
|
|
* The Initial Developer of the Original Code is
|
2001-09-29 00:14:13 +04:00
|
|
|
* Netscape Communications Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
1999-11-06 06:43:54 +03:00
|
|
|
*
|
2001-09-29 00:14:13 +04:00
|
|
|
* Contributor(s):
|
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
2005-12-31 16:18:10 +03:00
|
|
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
2001-09-29 00:14:13 +04:00
|
|
|
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
2005-12-31 16:18:10 +03:00
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
2001-09-29 00:14:13 +04:00
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
2005-12-31 16:18:10 +03:00
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
2001-09-29 00:14:13 +04:00
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
1998-11-28 19:52:24 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Intramodule declarations.
|
|
|
|
*/
|
|
|
|
|
1998-11-24 00:02:31 +03:00
|
|
|
#ifndef __xpidl_h
|
|
|
|
#define __xpidl_h
|
|
|
|
|
1999-02-17 04:17:52 +03:00
|
|
|
#include <errno.h>
|
1998-11-24 00:02:31 +03:00
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdio.h>
|
1999-02-17 04:17:52 +03:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <glib.h>
|
1999-06-10 12:21:35 +04:00
|
|
|
#include <string.h> /* After glib.h to avoid warnings about shadowing 'index'. */
|
1999-04-11 04:09:14 +04:00
|
|
|
|
1998-11-24 00:02:31 +03:00
|
|
|
#include <libIDL/IDL.h>
|
|
|
|
|
2002-02-26 04:41:42 +03:00
|
|
|
#include <xpt_struct.h>
|
|
|
|
|
1999-08-22 05:10:14 +04:00
|
|
|
/*
|
|
|
|
* IDL_tree_warning bombs on libIDL version 6.5, and I don't want to not write
|
|
|
|
* warnings... so I define a versioned one here. Thanks to Mike Shaver for the
|
2002-09-30 18:18:27 +04:00
|
|
|
* this solution, which allows us to pass through varargs calls.
|
1999-08-22 05:10:14 +04:00
|
|
|
*/
|
|
|
|
#if !(LIBIDL_MAJOR_VERSION == 0 && LIBIDL_MINOR_VERSION == 6 && \
|
1999-10-27 04:37:39 +04:00
|
|
|
LIBIDL_MICRO_VERSION == 5) && !defined(DEBUG_shaver)
|
1999-08-22 05:10:14 +04:00
|
|
|
/*
|
1999-10-27 04:37:39 +04:00
|
|
|
* This turns a varargs call to XPIDL_WARNING directly into a varargs
|
|
|
|
* call to IDL_tree_warning or xpidl_tree_warning as appropriate. The
|
|
|
|
* only tricky bit is that you must call XPIDL_WARNING with extra
|
|
|
|
* parens, e.g. XPIDL_WARNING((foo, bar, "sil"))
|
1999-08-22 05:10:14 +04:00
|
|
|
*
|
1999-10-27 04:37:39 +04:00
|
|
|
* Probably best removed when we leave 6.5. */
|
2002-09-30 18:18:27 +04:00
|
|
|
#define XPIDL_WARNING(x) IDL_tree_warning x
|
1999-08-22 05:10:14 +04:00
|
|
|
#else
|
1999-10-27 04:37:39 +04:00
|
|
|
extern void xpidl_tree_warning(IDL_tree p, int level, const char *fmt, ...);
|
2002-09-30 18:18:27 +04:00
|
|
|
#define XPIDL_WARNING(x) xpidl_tree_warning x
|
1999-08-22 05:10:14 +04:00
|
|
|
#endif
|
|
|
|
|
1998-11-24 00:02:31 +03:00
|
|
|
/*
|
|
|
|
* Internal operation flags.
|
|
|
|
*/
|
|
|
|
extern gboolean enable_debug;
|
|
|
|
extern gboolean enable_warnings;
|
|
|
|
extern gboolean verbose_mode;
|
1999-09-11 09:20:39 +04:00
|
|
|
extern gboolean emit_typelib_annotations;
|
2001-11-01 02:28:36 +03:00
|
|
|
extern gboolean explicit_output_filename;
|
2006-01-04 16:43:59 +03:00
|
|
|
extern FILE *deps;
|
1998-11-24 00:02:31 +03:00
|
|
|
|
2002-02-26 04:41:42 +03:00
|
|
|
extern PRUint8 major_version;
|
|
|
|
extern PRUint8 minor_version;
|
|
|
|
|
1999-02-04 02:55:33 +03:00
|
|
|
typedef struct TreeState TreeState;
|
1998-11-24 00:02:31 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* A function to handle an IDL_tree type.
|
|
|
|
*/
|
|
|
|
typedef gboolean (*nodeHandler)(TreeState *);
|
|
|
|
|
|
|
|
/*
|
Batched set of fixes to xpidl. NOTE this'll probably cause the world to rebuild.
* fix 20833 - generate numbers of appropriate form in header output mode for short, long, signed or unsigned IDL consts. Thanks to bratell@lysator.liu.se for finding this and confirming the fix.
* fix 11199, remove .h output file on failure - partially generated files caused trouble, as they had the proper timestamp to fool 'make' next time around. Punted on mac.
* Restore Mac hack to fix \r to \n, requested by Beard.
* Make 'const decl must be short or long' warning into error for typelib mode. This mirrors an existing error in header mode.
* Fix up various aspects of xpidl, including:
- Move shared functions from xpidl_idl.c and xpidl.c 'main' module to new xpidl_util.c.
- Recast nodehandler-table-per-backend as 'backend' struct, including broken-out prolog and epilog functions. Replaces overloaded IDLN_NONE node handler that did prolog code on non-null tree, epilog on null. Move backends to new API.
- Rename a few structs more logically.
- Add a new list to track files included from the base .idl file, for generated #includes in output header file. This replaces using the 'already-included' hashtable for this purpose, and lets us generate just the minimal set of #includes, in the order they occured in the .h file.
- Various fixes to quiet xpidl warnings.
- Change main() to only accept one input file from the command line, because the basename code assumes this, and multiple files aren't needed by our make system.
r=jband
2000-01-12 04:46:21 +03:00
|
|
|
* Struct containing functions to define the behavior of a given output mode.
|
1998-11-24 00:02:31 +03:00
|
|
|
*/
|
Batched set of fixes to xpidl. NOTE this'll probably cause the world to rebuild.
* fix 20833 - generate numbers of appropriate form in header output mode for short, long, signed or unsigned IDL consts. Thanks to bratell@lysator.liu.se for finding this and confirming the fix.
* fix 11199, remove .h output file on failure - partially generated files caused trouble, as they had the proper timestamp to fool 'make' next time around. Punted on mac.
* Restore Mac hack to fix \r to \n, requested by Beard.
* Make 'const decl must be short or long' warning into error for typelib mode. This mirrors an existing error in header mode.
* Fix up various aspects of xpidl, including:
- Move shared functions from xpidl_idl.c and xpidl.c 'main' module to new xpidl_util.c.
- Recast nodehandler-table-per-backend as 'backend' struct, including broken-out prolog and epilog functions. Replaces overloaded IDLN_NONE node handler that did prolog code on non-null tree, epilog on null. Move backends to new API.
- Rename a few structs more logically.
- Add a new list to track files included from the base .idl file, for generated #includes in output header file. This replaces using the 'already-included' hashtable for this purpose, and lets us generate just the minimal set of #includes, in the order they occured in the .h file.
- Various fixes to quiet xpidl warnings.
- Change main() to only accept one input file from the command line, because the basename code assumes this, and multiple files aren't needed by our make system.
r=jband
2000-01-12 04:46:21 +03:00
|
|
|
typedef struct backend {
|
|
|
|
nodeHandler *dispatch_table; /* nodeHandlers table, indexed by node type. */
|
|
|
|
nodeHandler emit_prolog; /* called at beginning of output generation. */
|
|
|
|
nodeHandler emit_epilog; /* called at end. */
|
|
|
|
} backend;
|
|
|
|
|
|
|
|
/* Function that produces a struct of output-generation functions */
|
|
|
|
typedef backend *(*backendFactory)();
|
|
|
|
|
|
|
|
extern backend *xpidl_header_dispatch(void);
|
|
|
|
extern backend *xpidl_typelib_dispatch(void);
|
|
|
|
extern backend *xpidl_doc_dispatch(void);
|
|
|
|
extern backend *xpidl_java_dispatch(void);
|
1998-11-24 00:02:31 +03:00
|
|
|
|
1999-02-04 02:55:33 +03:00
|
|
|
typedef struct ModeData {
|
|
|
|
char *mode;
|
|
|
|
char *modeInfo;
|
|
|
|
char *suffix;
|
Batched set of fixes to xpidl. NOTE this'll probably cause the world to rebuild.
* fix 20833 - generate numbers of appropriate form in header output mode for short, long, signed or unsigned IDL consts. Thanks to bratell@lysator.liu.se for finding this and confirming the fix.
* fix 11199, remove .h output file on failure - partially generated files caused trouble, as they had the proper timestamp to fool 'make' next time around. Punted on mac.
* Restore Mac hack to fix \r to \n, requested by Beard.
* Make 'const decl must be short or long' warning into error for typelib mode. This mirrors an existing error in header mode.
* Fix up various aspects of xpidl, including:
- Move shared functions from xpidl_idl.c and xpidl.c 'main' module to new xpidl_util.c.
- Recast nodehandler-table-per-backend as 'backend' struct, including broken-out prolog and epilog functions. Replaces overloaded IDLN_NONE node handler that did prolog code on non-null tree, epilog on null. Move backends to new API.
- Rename a few structs more logically.
- Add a new list to track files included from the base .idl file, for generated #includes in output header file. This replaces using the 'already-included' hashtable for this purpose, and lets us generate just the minimal set of #includes, in the order they occured in the .h file.
- Various fixes to quiet xpidl warnings.
- Change main() to only accept one input file from the command line, because the basename code assumes this, and multiple files aren't needed by our make system.
r=jband
2000-01-12 04:46:21 +03:00
|
|
|
backendFactory factory;
|
1999-02-04 02:55:33 +03:00
|
|
|
} ModeData;
|
|
|
|
|
|
|
|
typedef struct IncludePathEntry {
|
1999-02-16 06:47:24 +03:00
|
|
|
char *directory;
|
1999-02-04 02:55:33 +03:00
|
|
|
struct IncludePathEntry *next;
|
|
|
|
} IncludePathEntry;
|
|
|
|
|
|
|
|
struct TreeState {
|
1999-02-16 06:47:24 +03:00
|
|
|
FILE *file;
|
2006-08-28 19:24:32 +04:00
|
|
|
char *filename;
|
1999-06-15 13:22:04 +04:00
|
|
|
/* Maybe supplied by -o. Not related to (g_)basename from string.h or glib */
|
1999-02-16 06:47:24 +03:00
|
|
|
char *basename;
|
|
|
|
IDL_ns ns;
|
|
|
|
IDL_tree tree;
|
Batched set of fixes to xpidl. NOTE this'll probably cause the world to rebuild.
* fix 20833 - generate numbers of appropriate form in header output mode for short, long, signed or unsigned IDL consts. Thanks to bratell@lysator.liu.se for finding this and confirming the fix.
* fix 11199, remove .h output file on failure - partially generated files caused trouble, as they had the proper timestamp to fool 'make' next time around. Punted on mac.
* Restore Mac hack to fix \r to \n, requested by Beard.
* Make 'const decl must be short or long' warning into error for typelib mode. This mirrors an existing error in header mode.
* Fix up various aspects of xpidl, including:
- Move shared functions from xpidl_idl.c and xpidl.c 'main' module to new xpidl_util.c.
- Recast nodehandler-table-per-backend as 'backend' struct, including broken-out prolog and epilog functions. Replaces overloaded IDLN_NONE node handler that did prolog code on non-null tree, epilog on null. Move backends to new API.
- Rename a few structs more logically.
- Add a new list to track files included from the base .idl file, for generated #includes in output header file. This replaces using the 'already-included' hashtable for this purpose, and lets us generate just the minimal set of #includes, in the order they occured in the .h file.
- Various fixes to quiet xpidl warnings.
- Change main() to only accept one input file from the command line, because the basename code assumes this, and multiple files aren't needed by our make system.
r=jband
2000-01-12 04:46:21 +03:00
|
|
|
GSList *base_includes;
|
1999-02-16 06:47:24 +03:00
|
|
|
nodeHandler *dispatch;
|
|
|
|
void *priv; /* mode-private data */
|
1999-02-04 02:55:33 +03:00
|
|
|
};
|
|
|
|
|
2006-08-28 19:24:32 +04:00
|
|
|
struct java_priv_data {
|
|
|
|
GHashTable *typedefTable;
|
|
|
|
GHashTable *keywords;
|
|
|
|
char *filename;
|
|
|
|
GHashTable *nonIDLIfaces;
|
|
|
|
};
|
|
|
|
|
1998-11-24 00:02:31 +03:00
|
|
|
/*
|
1998-12-06 21:41:44 +03:00
|
|
|
* Process an IDL file, generating InterfaceInfo, documentation and headers as
|
Batched set of fixes to xpidl. NOTE this'll probably cause the world to rebuild.
* fix 20833 - generate numbers of appropriate form in header output mode for short, long, signed or unsigned IDL consts. Thanks to bratell@lysator.liu.se for finding this and confirming the fix.
* fix 11199, remove .h output file on failure - partially generated files caused trouble, as they had the proper timestamp to fool 'make' next time around. Punted on mac.
* Restore Mac hack to fix \r to \n, requested by Beard.
* Make 'const decl must be short or long' warning into error for typelib mode. This mirrors an existing error in header mode.
* Fix up various aspects of xpidl, including:
- Move shared functions from xpidl_idl.c and xpidl.c 'main' module to new xpidl_util.c.
- Recast nodehandler-table-per-backend as 'backend' struct, including broken-out prolog and epilog functions. Replaces overloaded IDLN_NONE node handler that did prolog code on non-null tree, epilog on null. Move backends to new API.
- Rename a few structs more logically.
- Add a new list to track files included from the base .idl file, for generated #includes in output header file. This replaces using the 'already-included' hashtable for this purpose, and lets us generate just the minimal set of #includes, in the order they occured in the .h file.
- Various fixes to quiet xpidl warnings.
- Change main() to only accept one input file from the command line, because the basename code assumes this, and multiple files aren't needed by our make system.
r=jband
2000-01-12 04:46:21 +03:00
|
|
|
* appropriate.
|
1998-11-24 00:02:31 +03:00
|
|
|
*/
|
|
|
|
int
|
1998-12-14 21:47:39 +03:00
|
|
|
xpidl_process_idl(char *filename, IncludePathEntry *include_path,
|
1999-06-10 12:21:35 +04:00
|
|
|
char *file_basename, ModeData *mode);
|
1998-11-24 00:02:31 +03:00
|
|
|
|
1998-11-27 00:03:03 +03:00
|
|
|
/*
|
|
|
|
* Iterate over an IDLN_LIST -- why is this not part of libIDL?
|
|
|
|
*/
|
|
|
|
void
|
|
|
|
xpidl_list_foreach(IDL_tree p, IDL_tree_func foreach, gpointer user_data);
|
|
|
|
|
1998-11-24 00:02:31 +03:00
|
|
|
/*
|
1999-02-16 08:10:40 +03:00
|
|
|
* Wrapper whines to stderr then exits after null return from malloc or strdup.
|
1998-11-24 00:02:31 +03:00
|
|
|
*/
|
1999-02-16 08:10:40 +03:00
|
|
|
void *
|
|
|
|
xpidl_malloc(size_t nbytes);
|
1998-11-24 00:02:31 +03:00
|
|
|
|
1999-02-16 08:10:40 +03:00
|
|
|
char *
|
|
|
|
xpidl_strdup(const char *s);
|
1998-11-24 00:02:31 +03:00
|
|
|
|
2002-01-10 16:03:45 +03:00
|
|
|
/*
|
|
|
|
* Return a pointer to the start of the base filename of path
|
|
|
|
*/
|
|
|
|
const char *
|
|
|
|
xpidl_basename(const char * path);
|
|
|
|
|
1999-02-16 08:10:40 +03:00
|
|
|
/*
|
|
|
|
* Process an XPIDL node and its kids, if any.
|
|
|
|
*/
|
1999-02-16 06:47:24 +03:00
|
|
|
gboolean
|
1999-02-16 08:10:40 +03:00
|
|
|
xpidl_process_node(TreeState *state);
|
1999-01-21 21:59:52 +03:00
|
|
|
|
1999-02-17 04:17:52 +03:00
|
|
|
/*
|
1999-02-22 03:24:34 +03:00
|
|
|
* Write a newline folllowed by an indented, one-line comment containing IDL
|
|
|
|
* source decompiled from state->tree.
|
1999-02-17 04:17:52 +03:00
|
|
|
*/
|
|
|
|
void
|
1999-02-22 03:24:34 +03:00
|
|
|
xpidl_write_comment(TreeState *state, int indent);
|
1999-02-17 04:17:52 +03:00
|
|
|
|
1999-08-02 15:19:30 +04:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Functions for parsing and printing UUIDs.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* How large should the buffer supplied to xpidl_sprint_IID be?
|
|
|
|
*/
|
|
|
|
#define UUID_LENGTH 37
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Print an iid to into a supplied buffer; the buffer should be at least
|
|
|
|
* UUID_LENGTH bytes.
|
|
|
|
*/
|
|
|
|
gboolean
|
Batched set of fixes to xpidl. NOTE this'll probably cause the world to rebuild.
* fix 20833 - generate numbers of appropriate form in header output mode for short, long, signed or unsigned IDL consts. Thanks to bratell@lysator.liu.se for finding this and confirming the fix.
* fix 11199, remove .h output file on failure - partially generated files caused trouble, as they had the proper timestamp to fool 'make' next time around. Punted on mac.
* Restore Mac hack to fix \r to \n, requested by Beard.
* Make 'const decl must be short or long' warning into error for typelib mode. This mirrors an existing error in header mode.
* Fix up various aspects of xpidl, including:
- Move shared functions from xpidl_idl.c and xpidl.c 'main' module to new xpidl_util.c.
- Recast nodehandler-table-per-backend as 'backend' struct, including broken-out prolog and epilog functions. Replaces overloaded IDLN_NONE node handler that did prolog code on non-null tree, epilog on null. Move backends to new API.
- Rename a few structs more logically.
- Add a new list to track files included from the base .idl file, for generated #includes in output header file. This replaces using the 'already-included' hashtable for this purpose, and lets us generate just the minimal set of #includes, in the order they occured in the .h file.
- Various fixes to quiet xpidl warnings.
- Change main() to only accept one input file from the command line, because the basename code assumes this, and multiple files aren't needed by our make system.
r=jband
2000-01-12 04:46:21 +03:00
|
|
|
xpidl_sprint_iid(nsID *iid, char iidbuf[]);
|
1999-08-02 15:19:30 +04:00
|
|
|
|
1999-08-02 13:46:57 +04:00
|
|
|
/*
|
|
|
|
* Parse a uuid string into an nsID struct. We cannot link against libxpcom,
|
|
|
|
* so we re-implement nsID::Parse here.
|
|
|
|
*/
|
|
|
|
gboolean
|
1999-08-02 15:19:30 +04:00
|
|
|
xpidl_parse_iid(nsID *id, const char *str);
|
1999-08-02 13:46:57 +04:00
|
|
|
|
1999-08-10 16:18:01 +04:00
|
|
|
|
|
|
|
/* Try to common a little node-handling stuff. */
|
|
|
|
|
|
|
|
/* is this node from an aggregate type (interface)? */
|
|
|
|
#define UP_IS_AGGREGATE(node) \
|
|
|
|
(IDL_NODE_UP(node) && \
|
|
|
|
(IDL_NODE_TYPE(IDL_NODE_UP(node)) == IDLN_INTERFACE || \
|
|
|
|
IDL_NODE_TYPE(IDL_NODE_UP(node)) == IDLN_FORWARD_DCL))
|
|
|
|
|
|
|
|
#define UP_IS_NATIVE(node) \
|
|
|
|
(IDL_NODE_UP(node) && \
|
|
|
|
IDL_NODE_TYPE(IDL_NODE_UP(node)) == IDLN_NATIVE)
|
|
|
|
|
2001-01-26 05:32:18 +03:00
|
|
|
#define DIPPER_TYPE(node) \
|
2002-02-26 04:41:42 +03:00
|
|
|
(NULL != IDL_tree_property_get(node, "domstring") || \
|
|
|
|
NULL != IDL_tree_property_get(node, "utf8string") || \
|
|
|
|
NULL != IDL_tree_property_get(node, "cstring") || \
|
|
|
|
NULL != IDL_tree_property_get(node, "astring"))
|
2001-01-26 05:32:18 +03:00
|
|
|
|
2000-04-28 15:14:29 +04:00
|
|
|
/*
|
|
|
|
* Find the underlying type of an identifier typedef. Returns NULL
|
|
|
|
* (and doesn't complain) on failure.
|
|
|
|
*/
|
|
|
|
IDL_tree /* IDL_TYPE_DCL */
|
|
|
|
find_underlying_type(IDL_tree typedef_ident);
|
|
|
|
|
2000-12-07 07:17:33 +03:00
|
|
|
/*
|
|
|
|
* Check that const declarations match their stated sign and are of the
|
|
|
|
* appropriate types.
|
|
|
|
*/
|
|
|
|
gboolean
|
|
|
|
verify_const_declaration(IDL_tree const_tree);
|
|
|
|
|
2000-03-18 04:30:35 +03:00
|
|
|
/*
|
|
|
|
* Check that scriptable attributes in scriptable interfaces actually are.
|
|
|
|
*/
|
|
|
|
gboolean
|
|
|
|
verify_attribute_declaration(IDL_tree method_tree);
|
|
|
|
|
1999-08-10 16:18:01 +04:00
|
|
|
/*
|
|
|
|
* Perform various validation checks on methods.
|
|
|
|
*/
|
|
|
|
gboolean
|
1999-08-19 17:02:08 +04:00
|
|
|
verify_method_declaration(IDL_tree method_tree);
|
1999-08-10 16:18:01 +04:00
|
|
|
|
2001-11-03 03:05:57 +03:00
|
|
|
/*
|
|
|
|
* Verifies the interface declaration
|
|
|
|
*/
|
|
|
|
gboolean
|
|
|
|
verify_interface_declaration(IDL_tree method_tree);
|
|
|
|
|
1999-10-27 04:37:39 +04:00
|
|
|
/*
|
|
|
|
* Verify that a native declaration has an associated C++ expression, i.e. that
|
|
|
|
* it's of the form native <idl-name>(<c++-name>)
|
|
|
|
*/
|
|
|
|
gboolean
|
|
|
|
check_native(TreeState *state);
|
|
|
|
|
2000-01-28 11:28:48 +03:00
|
|
|
void
|
|
|
|
printlist(FILE *outfile, GSList *slist);
|
|
|
|
|
2008-03-12 14:00:24 +03:00
|
|
|
gboolean
|
|
|
|
is_method_scriptable(IDL_tree method_tree, IDL_tree ident);
|
|
|
|
|
1998-11-24 00:02:31 +03:00
|
|
|
#endif /* __xpidl_h */
|