Adding windows binaries for the glib and libIDL libraries, and pointers to the appropriate sources.
git-svn-id: svn://10.0.0.236/trunk@26817 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
49fc082db3
commit
fd1ad2ae4c
BIN
buildtools/windows/bin/x86/glib-1.2.dll
Normal file
BIN
buildtools/windows/bin/x86/glib-1.2.dll
Normal file
Binary file not shown.
BIN
buildtools/windows/bin/x86/gmodule-1.2.dll
Normal file
BIN
buildtools/windows/bin/x86/gmodule-1.2.dll
Normal file
Binary file not shown.
BIN
buildtools/windows/bin/x86/gthread-1.2.dll
Normal file
BIN
buildtools/windows/bin/x86/gthread-1.2.dll
Normal file
Binary file not shown.
BIN
buildtools/windows/bin/x86/libIDL-0.6.dll
Normal file
BIN
buildtools/windows/bin/x86/libIDL-0.6.dll
Normal file
Binary file not shown.
107
buildtools/windows/include/acconfig.h
Normal file
107
buildtools/windows/include/acconfig.h
Normal file
@ -0,0 +1,107 @@
|
||||
/* GLIB - Library of useful routines for C programming
|
||||
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
/* acconfig.h
|
||||
This file is in the public domain.
|
||||
|
||||
Descriptive text for the C preprocessor macros that
|
||||
the distributed Autoconf macros can define.
|
||||
No software package will use all of them; autoheader copies the ones
|
||||
your configure.in uses into your configuration header file templates.
|
||||
|
||||
The entries are in sort -df order: alphabetical, case insensitive,
|
||||
ignoring punctuation (such as underscores). Although this order
|
||||
can split up related entries, it makes it easier to check whether
|
||||
a given entry is in the file.
|
||||
|
||||
Leave the following blank line there!! Autoheader needs it. */
|
||||
|
||||
|
||||
/* Other stuff */
|
||||
|
||||
#undef ENABLE_MEM_CHECK
|
||||
#undef ENABLE_MEM_PROFILE
|
||||
|
||||
#undef G_COMPILED_WITH_DEBUGGING
|
||||
#undef G_THREADS_ENABLED
|
||||
|
||||
#undef GLIB_SIZEOF_GMUTEX
|
||||
#undef GLIB_BYTE_CONTENTS_GMUTEX
|
||||
|
||||
#undef HAVE_BROKEN_WCTYPE
|
||||
#undef HAVE_DOPRNT
|
||||
#undef HAVE_FLOAT_H
|
||||
#undef HAVE_GETPWUID_R
|
||||
#undef HAVE_GETPWUID_R_POSIX
|
||||
#undef HAVE_LIMITS_H
|
||||
#undef HAVE_LONG_DOUBLE
|
||||
#undef HAVE_POLL
|
||||
#undef HAVE_PTHREAD_GETSPECIFIC_POSIX
|
||||
#undef HAVE_PWD_H
|
||||
#undef HAVE_SYS_PARAM_H
|
||||
#undef HAVE_SYS_POLL_H
|
||||
#undef HAVE_SYS_SELECT_H
|
||||
#undef HAVE_SYS_TIME_H
|
||||
#undef HAVE_SYS_TIMES_H
|
||||
#undef HAVE_STRERROR
|
||||
#undef HAVE_STRSIGNAL
|
||||
#undef HAVE_UNISTD_H
|
||||
#undef HAVE_VALUES_H
|
||||
#undef HAVE_WCHAR_H
|
||||
#undef HAVE_WCTYPE_H
|
||||
|
||||
#undef NO_FD_SET
|
||||
#undef NO_SYS_ERRLIST
|
||||
#undef NO_SYS_SIGLIST
|
||||
#undef NO_SYS_SIGLIST_DECL
|
||||
|
||||
#undef WITH_SYMBOL_UNDERSCORE
|
||||
|
||||
#undef SIZEOF_CHAR
|
||||
#undef SIZEOF_SHORT
|
||||
#undef SIZEOF_LONG
|
||||
#undef SIZEOF_INT
|
||||
#undef SIZEOF_VOID_P
|
||||
|
||||
#undef G_VA_COPY
|
||||
#undef G_VA_COPY_AS_ARRAY
|
||||
#undef G_HAVE___INLINE
|
||||
#undef G_HAVE___INLINE__
|
||||
#undef G_HAVE_INLINE
|
||||
|
||||
#undef GLIB_MAJOR_VERSION
|
||||
#undef GLIB_MINOR_VERSION
|
||||
#undef GLIB_MICRO_VERSION
|
||||
#undef GLIB_INTERFACE_AGE
|
||||
#undef GLIB_BINARY_AGE
|
||||
|
||||
#undef WIN32
|
||||
#undef NATIVE_WIN32
|
||||
|
||||
#undef G_THREAD_SOURCE
|
||||
|
||||
/* #undef PACKAGE */
|
||||
/* #undef VERSION */
|
||||
|
||||
|
||||
|
||||
|
||||
/* Leave that blank line there!! Autoheader needs it.
|
||||
If you're adding to this file, keep in mind:
|
||||
The entries are in sort -df order: alphabetical, case insensitive,
|
||||
ignoring punctuation (such as underscores). */
|
||||
138
buildtools/windows/include/config.h
Normal file
138
buildtools/windows/include/config.h
Normal file
@ -0,0 +1,138 @@
|
||||
/* config.h.win32. Handcrafted for Microsoft C */
|
||||
|
||||
/* Define to empty if the keyword does not work. */
|
||||
/* #undef const */
|
||||
|
||||
/* Define if you don't have vprintf but do have _doprnt. */
|
||||
/* #undef HAVE_DOPRNT */
|
||||
|
||||
/* Define if you have <unistd.h>. */
|
||||
/* #undef HAVE_UNISTD_H */
|
||||
|
||||
/* Define if you have the vprintf function. */
|
||||
#define HAVE_VPRINTF 1
|
||||
|
||||
/* Define if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* Define if your processor stores words with the most significant
|
||||
byte first (like Motorola and SPARC, unlike Intel and VAX). */
|
||||
/* #undef WORDS_BIGENDIAN */
|
||||
|
||||
/* #undef ENABLE_MEM_CHECK */
|
||||
/* #undef ENABLE_MEM_PROFILE */
|
||||
|
||||
#define G_COMPILED_WITH_DEBUGGING "minimum"
|
||||
|
||||
/* #undef HAVE_BROKEN_WCTYPE */
|
||||
/* #undef HAVE_DOPRNT */
|
||||
#define HAVE_FLOAT_H 1
|
||||
#define HAVE_LIMITS_H 1
|
||||
/* #undef HAVE_LOCALTIME_R */
|
||||
/* #undef HAVE_LONG_DOUBLE */
|
||||
/* #undef HAVE_POLL */
|
||||
/* #undef HAVE_PWD_H */
|
||||
/* #undef HAVE_SYS_PARAM_H */
|
||||
/* #undef HAVE_SYS_POLL_H */
|
||||
/* #undef HAVE_SYS_SELECT_H */
|
||||
/* #undef HAVE_SYS_TIME_H */
|
||||
/* #undef HAVE_SYS_TIMES_H */
|
||||
#define HAVE_STRERROR 1
|
||||
/* #undef HAVE_STRSIGNAL */
|
||||
/* #undef HAVE_UNISTD_H */
|
||||
/* #undef HAVE_VSNPRINTF */
|
||||
/* #undef HAVE_VALUES_H */
|
||||
#define HAVE_VPRINTF 1
|
||||
#define HAVE_WCHAR_H 1
|
||||
#define HAVE_WCTYPE_H 1
|
||||
|
||||
/* #undef NO_FD_SET */
|
||||
/* #undef NO_SYS_ERRLIST */
|
||||
#define NO_SYS_SIGLIST 1
|
||||
|
||||
/* #undef G_VA_COPY */
|
||||
/* #undef G_VA_COPY_AS_ARRAY */
|
||||
#define G_HAVE___INLINE 1
|
||||
|
||||
#define GLIB_MAJOR_VERSION 1
|
||||
#define GLIB_MINOR_VERSION 2
|
||||
#define GLIB_MICRO_VERSION 0
|
||||
#define GLIB_INTERFACE_AGE 0
|
||||
#define GLIB_BINARY_AGE 0
|
||||
|
||||
#define G_THREAD_SOURCE "gthread-posix.c"
|
||||
#define G_THREADS_IMPL_POSIX
|
||||
#define HAVE_PTHREAD_GETSPECIFIC_POSIX 1
|
||||
|
||||
/* The number of bytes in a char. */
|
||||
#define SIZEOF_CHAR 1
|
||||
|
||||
/* The number of bytes in a int. */
|
||||
#define SIZEOF_INT 4
|
||||
|
||||
/* The number of bytes in a long. */
|
||||
#define SIZEOF_LONG 4
|
||||
|
||||
/* The number of bytes in a long long. */
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
|
||||
/* The number of bytes in a short. */
|
||||
#define SIZEOF_SHORT 2
|
||||
|
||||
/* The number of bytes in a void *. */
|
||||
#define SIZEOF_VOID_P 4
|
||||
|
||||
/* Define if you have the atexit function. */
|
||||
#define HAVE_ATEXIT 1
|
||||
|
||||
/* Define if you have the lstat function. */
|
||||
/* #undef HAVE_LSTAT */
|
||||
|
||||
/* Define if you have the memmove function. */
|
||||
#define HAVE_MEMMOVE 1
|
||||
|
||||
/* Define if you have the on_exit function. */
|
||||
/* #undef HAVE_ON_EXIT */
|
||||
|
||||
/* Define if you have the strcasecmp function. */
|
||||
/* #undef HAVE_STRCASECMP ^*/
|
||||
|
||||
/* Define if you have the strerror function. */
|
||||
#define HAVE_STRERROR 1
|
||||
|
||||
/* Define if you have the strsignal function. */
|
||||
/* #undef HAVE_STRSIGNAL */
|
||||
|
||||
/* Define if you have the vsnprintf function. */
|
||||
/* #undef HAVE_VSNPRINTF */
|
||||
|
||||
/* Define if you have the <float.h> header file. */
|
||||
#define HAVE_FLOAT_H 1
|
||||
|
||||
/* Define if you have the <limits.h> header file. */
|
||||
#define HAVE_LIMITS_H 1
|
||||
|
||||
/* Define if you have the <pwd.h> header file. */
|
||||
/* #undef HAVE_PWD_H */
|
||||
|
||||
/* Define if you have the <sys/param.h> header file. */
|
||||
/* #undef HAVE_SYS_PARAM_H */
|
||||
|
||||
/* Define if you have the <sys/select.h> header file. */
|
||||
/* #undef HAVE_SYS_SELECT_H */
|
||||
|
||||
/* Define if you have the <sys/time.h> header file. */
|
||||
/* #undef HAVE_SYS_TIME_H */
|
||||
|
||||
/* Define if you have the <sys/times.h> header file. */
|
||||
/* #undef HAVE_SYS_TIMES_H */
|
||||
|
||||
/* Define if you have the <unistd.h> header file. */
|
||||
/* #undef HAVE_UNISTD_H */
|
||||
|
||||
/* Define if you have the <values.h> header file. */
|
||||
/* #undef HAVE_VALUES_H */
|
||||
|
||||
/* Define if you have the w library (-lw). */
|
||||
/* #undef HAVE_LIBW */
|
||||
|
||||
2786
buildtools/windows/include/glib.h
Normal file
2786
buildtools/windows/include/glib.h
Normal file
File diff suppressed because it is too large
Load Diff
173
buildtools/windows/include/glibconfig.h
Normal file
173
buildtools/windows/include/glibconfig.h
Normal file
@ -0,0 +1,173 @@
|
||||
/* glibconfig.h.win32 */
|
||||
/* Handcrafted for Microsoft C. */
|
||||
|
||||
#ifndef GLIBCONFIG_H
|
||||
#define GLIBCONFIG_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#ifdef _MSC_VER
|
||||
/* Make MSVC more pedantic, this is a recommended pragma list
|
||||
* from _Win32_Programming_ by Rector and Newcomer.
|
||||
*/
|
||||
#pragma warning(error:4002)
|
||||
#pragma warning(error:4003)
|
||||
#pragma warning(1:4010)
|
||||
#pragma warning(error:4013)
|
||||
#pragma warning(1:4016)
|
||||
#pragma warning(error:4020)
|
||||
#pragma warning(error:4021)
|
||||
#pragma warning(error:4027)
|
||||
#pragma warning(error:4029)
|
||||
#pragma warning(error:4033)
|
||||
#pragma warning(error:4035)
|
||||
#pragma warning(error:4045)
|
||||
#pragma warning(error:4047)
|
||||
#pragma warning(error:4049)
|
||||
#pragma warning(error:4053)
|
||||
#pragma warning(error:4071)
|
||||
#pragma warning(disable:4101)
|
||||
#pragma warning(error:4150)
|
||||
|
||||
#pragma warning(disable:4244) /* No possible loss of data warnings */
|
||||
#pragma warning(disable:4305) /* No truncation from int to char warnings */
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
#include <limits.h>
|
||||
#include <float.h>
|
||||
|
||||
#define G_MINFLOAT FLT_MIN
|
||||
#define G_MAXFLOAT FLT_MAX
|
||||
#define G_MINDOUBLE DBL_MIN
|
||||
#define G_MAXDOUBLE DBL_MAX
|
||||
#define G_MINSHORT SHRT_MIN
|
||||
#define G_MAXSHORT SHRT_MAX
|
||||
#define G_MININT INT_MIN
|
||||
#define G_MAXINT INT_MAX
|
||||
#define G_MINLONG LONG_MIN
|
||||
#define G_MAXLONG LONG_MAX
|
||||
|
||||
typedef signed char gint8;
|
||||
typedef unsigned char guint8;
|
||||
typedef signed short gint16;
|
||||
typedef unsigned short guint16;
|
||||
typedef signed int gint32;
|
||||
typedef unsigned int guint32;
|
||||
|
||||
#define G_HAVE_GINT64 1
|
||||
|
||||
typedef __int64 gint64;
|
||||
typedef unsigned __int64 guint64;
|
||||
|
||||
#define G_GINT64_CONSTANT(val) (val##i64)
|
||||
|
||||
#define GPOINTER_TO_INT(p) ((gint)(p))
|
||||
#define GPOINTER_TO_UINT(p) ((guint)(p))
|
||||
|
||||
#define GINT_TO_POINTER(i) ((gpointer)(i))
|
||||
#define GUINT_TO_POINTER(u) ((gpointer)(u))
|
||||
|
||||
#define g_ATEXIT(proc) (atexit (proc))
|
||||
|
||||
#define g_memmove(d,s,n) G_STMT_START { memmove ((d), (s), (n)); } G_STMT_END
|
||||
|
||||
#define G_HAVE_ALLOCA 1
|
||||
#define alloca _alloca
|
||||
|
||||
#define GLIB_MAJOR_VERSION 1
|
||||
#define GLIB_MINOR_VERSION 2
|
||||
#define GLIB_MICRO_VERSION 0
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define G_HAVE_INLINE 1
|
||||
#else /* !__cplusplus */
|
||||
#define G_HAVE___INLINE 1
|
||||
#endif
|
||||
|
||||
#define G_THREADS_ENABLED
|
||||
/*
|
||||
* The following program can be used to determine the magic values below:
|
||||
* #include <stdio.h>
|
||||
* #include <pthread.h>
|
||||
* main(int argc, char **argv)
|
||||
* {
|
||||
* int i;
|
||||
* pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
|
||||
* printf ("sizeof (pthread_mutex_t) = %d\n", sizeof (pthread_mutex_t));
|
||||
* printf ("PTHREAD_MUTEX_INITIALIZER = ");
|
||||
* for (i = 0; i < sizeof (pthread_mutex_t); i++)
|
||||
* printf ("%u, ", (unsigned) ((char *) &m)[i]);
|
||||
* printf ("\n");
|
||||
* exit(0);
|
||||
* }
|
||||
*/
|
||||
|
||||
typedef struct _GStaticMutex GStaticMutex;
|
||||
struct _GStaticMutex
|
||||
{
|
||||
struct _GMutex *runtime_mutex;
|
||||
union {
|
||||
/* The size of the pad array should be sizeof (pthread_mutext_t) */
|
||||
/* This value corresponds to the 1999-01-24 version of pthreads-win32 */
|
||||
char pad[36];
|
||||
double dummy_double;
|
||||
void *dummy_pointer;
|
||||
long dummy_long;
|
||||
} aligned_pad_u;
|
||||
};
|
||||
/* This should be NULL followed by the bytes in PTHREAD_MUTEX_INITIALIZER */
|
||||
#define G_STATIC_MUTEX_INIT { NULL, { { 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } } }
|
||||
#define g_static_mutex_get_mutex(mutex) \
|
||||
(g_thread_use_default_impl ? ((GMutex*) &((mutex)->aligned_pad_u)) : \
|
||||
g_static_mutex_get_mutex_impl (&((mutex)->runtime_mutex)))
|
||||
|
||||
#define G_BYTE_ORDER G_LITTLE_ENDIAN
|
||||
|
||||
#define GINT16_TO_LE(val) ((gint16) (val))
|
||||
#define GUINT16_TO_LE(val) ((guint16) (val))
|
||||
#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
|
||||
#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
|
||||
|
||||
#define GINT32_TO_LE(val) ((gint32) (val))
|
||||
#define GUINT32_TO_LE(val) ((guint32) (val))
|
||||
#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
|
||||
#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
|
||||
|
||||
#define GINT64_TO_LE(val) ((gint64) (val))
|
||||
#define GUINT64_TO_LE(val) ((guint64) (val))
|
||||
#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
|
||||
#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
|
||||
|
||||
#define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val))
|
||||
#define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val))
|
||||
#define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val))
|
||||
#define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val))
|
||||
|
||||
#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
|
||||
#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
|
||||
#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
|
||||
#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
|
||||
|
||||
#define GLIB_SYSDEF_POLLIN = 1
|
||||
#define GLIB_SYSDEF_POLLOUT = 4
|
||||
#define GLIB_SYSDEF_POLLPRI = 2
|
||||
#define GLIB_SYSDEF_POLLERR = 8
|
||||
#define GLIB_SYSDEF_POLLHUP = 16
|
||||
#define GLIB_SYSDEF_POLLNVAL = 32
|
||||
|
||||
#define G_HAVE_WCHAR_H 1
|
||||
#define G_HAVE_WCTYPE_H 1
|
||||
|
||||
/* Define if this is Win32, possibly using the Cygwin emulation layer. */
|
||||
#define WIN32 1
|
||||
|
||||
/* Define if this is Win32 without Cygwin. */
|
||||
#define NATIVE_WIN32 1
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* GLIBCONFIG_H */
|
||||
827
buildtools/windows/include/libIDL/IDL.h
Normal file
827
buildtools/windows/include/libIDL/IDL.h
Normal file
@ -0,0 +1,827 @@
|
||||
/**************************************************************************
|
||||
|
||||
IDL.h (IDL parse tree and namespace components)
|
||||
|
||||
Include wide character support before this, if necessary.
|
||||
|
||||
Copyright (C) 1998, 1999 Andrew T. Veliath
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
$Id: IDL.h,v 1.1 1999-04-08 20:04:26 mccabe%netscape.com Exp $
|
||||
|
||||
***************************************************************************/
|
||||
#ifndef __IDL_H
|
||||
#define __IDL_H
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* version */
|
||||
#define LIBIDL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
|
||||
#define LIBIDL_MAJOR_VERSION 0
|
||||
#define LIBIDL_MINOR_VERSION 6
|
||||
#define LIBIDL_MICRO_VERSION 3
|
||||
#define LIBIDL_VERSION_CODE LIBIDL_VERSION(0,6,3)
|
||||
|
||||
/* miscellaneous constants */
|
||||
#define IDL_SUCCESS 0
|
||||
#define IDL_ERROR 1
|
||||
#define IDL_WARNING1 2
|
||||
#define IDL_WARNING2 3
|
||||
#define IDL_WARNING3 4
|
||||
#define IDL_WARNINGMAX IDL_WARNING3
|
||||
|
||||
/* general parse flags */
|
||||
#define IDLF_VERBOSE (1UL << 0)
|
||||
#define IDLF_NO_EVAL_CONST (1UL << 1)
|
||||
#define IDLF_COMBINE_REOPENED_MODULES (1UL << 2)
|
||||
#define IDLF_PREFIX_FILENAME (1UL << 3)
|
||||
#define IDLF_IGNORE_FORWARDS (1UL << 4)
|
||||
#define IDLF_PEDANTIC (1UL << 5)
|
||||
|
||||
/* syntax extension parse flags */
|
||||
#define IDLF_TYPECODES (1UL << 16)
|
||||
#define IDLF_XPIDL (1UL << 17)
|
||||
|
||||
/* declaration specification flags */
|
||||
#define IDLF_DECLSPEC_EXIST (1UL << 0)
|
||||
#define IDLF_DECLSPEC_INHIBIT (1UL << 1)
|
||||
|
||||
/* output flags */
|
||||
#define IDLF_OUTPUT_NO_NEWLINES (1UL << 0)
|
||||
#define IDLF_OUTPUT_NO_QUALIFY_IDENTS (1UL << 1)
|
||||
#define IDLF_OUTPUT_PROPERTIES (1UL << 2)
|
||||
#define IDLF_OUTPUT_CODEFRAGS (1UL << 3)
|
||||
|
||||
#ifdef _WIN32
|
||||
# define IDL_EXPORT __declspec (dllexport)
|
||||
# define IDL_IMPORT __declspec (dllimport)
|
||||
#else
|
||||
# define IDL_EXPORT /* empty */
|
||||
# define IDL_IMPORT extern
|
||||
#endif
|
||||
|
||||
/* type casting checks */
|
||||
#define IDL_check_cast_enable(boolean) do { \
|
||||
IDL_IMPORT int __IDL_check_type_casts; \
|
||||
__IDL_check_type_casts = (boolean); \
|
||||
} while (0)
|
||||
#define IDL_CHECK_CAST(tree, thetype, name) \
|
||||
(IDL_check_type_cast(tree, thetype, \
|
||||
__FILE__, __LINE__, \
|
||||
G_GNUC_PRETTY_FUNCTION)->u.name)
|
||||
|
||||
#ifdef G_HAVE_GINT64
|
||||
# if G_MAXLONG > 0xffffffffUL
|
||||
# define IDL_LL "l"
|
||||
# else
|
||||
# define IDL_LL "ll"
|
||||
# endif
|
||||
typedef gint64 IDL_longlong_t;
|
||||
typedef guint64 IDL_ulonglong_t;
|
||||
#else
|
||||
# define IDL_LL "l"
|
||||
typedef long IDL_longlong_t;
|
||||
typedef unsigned long IDL_ulonglong_t;
|
||||
# warning 64-bit integer type not available, using 32-bit instead
|
||||
#endif /* G_HAVE_GINT64 */
|
||||
|
||||
typedef unsigned int IDL_declspec_t;
|
||||
typedef struct _IDL_tree_node IDL_tree_node;
|
||||
typedef struct _IDL_tree_node * IDL_tree;
|
||||
|
||||
struct _IDL_LIST {
|
||||
IDL_tree data;
|
||||
IDL_tree prev;
|
||||
IDL_tree next;
|
||||
IDL_tree _tail; /* Internal use, may not be valid */
|
||||
};
|
||||
|
||||
#define IDL_LIST(a) IDL_CHECK_CAST(a, IDLN_LIST, idl_list)
|
||||
extern IDL_tree IDL_list_new (IDL_tree data);
|
||||
extern IDL_tree IDL_list_concat (IDL_tree orig,
|
||||
IDL_tree append);
|
||||
extern IDL_tree IDL_list_remove (IDL_tree list,
|
||||
IDL_tree p);
|
||||
extern int IDL_list_length (IDL_tree list);
|
||||
extern IDL_tree IDL_list_nth (IDL_tree list,
|
||||
int n);
|
||||
|
||||
struct _IDL_GENTREE {
|
||||
IDL_tree data;
|
||||
GHashTable *siblings;
|
||||
GHashTable *children;
|
||||
GHashFunc hash_func;
|
||||
GCompareFunc key_compare_func;
|
||||
IDL_tree _import; /* Internal use, do not recurse */
|
||||
char *_cur_prefix; /* Internal use */
|
||||
};
|
||||
#define IDL_GENTREE(a) IDL_CHECK_CAST(a, IDLN_GENTREE, idl_gentree)
|
||||
extern IDL_tree IDL_gentree_new (GHashFunc hash_func,
|
||||
GCompareFunc key_compare_func,
|
||||
IDL_tree data);
|
||||
extern IDL_tree IDL_gentree_new_sibling (IDL_tree from,
|
||||
IDL_tree data);
|
||||
extern IDL_tree IDL_gentree_chain_sibling (IDL_tree from,
|
||||
IDL_tree data);
|
||||
extern IDL_tree IDL_gentree_chain_child (IDL_tree from,
|
||||
IDL_tree data);
|
||||
|
||||
struct _IDL_INTEGER {
|
||||
IDL_longlong_t value;
|
||||
};
|
||||
#define IDL_INTEGER(a) IDL_CHECK_CAST(a, IDLN_INTEGER, idl_integer)
|
||||
extern IDL_tree IDL_integer_new (IDL_longlong_t value);
|
||||
|
||||
struct _IDL_STRING {
|
||||
char *value;
|
||||
};
|
||||
#define IDL_STRING(a) IDL_CHECK_CAST(a, IDLN_STRING, idl_string)
|
||||
extern IDL_tree IDL_string_new (char *value);
|
||||
|
||||
struct _IDL_WIDE_STRING {
|
||||
wchar_t *value;
|
||||
};
|
||||
#define IDL_WIDE_STRING(a) IDL_CHECK_CAST(a, IDLN_WIDE_STRING, idl_wide_string)
|
||||
extern IDL_tree IDL_wide_string_new (wchar_t *value);
|
||||
|
||||
struct _IDL_CHAR {
|
||||
char *value;
|
||||
};
|
||||
#define IDL_CHAR(a) IDL_CHECK_CAST(a, IDLN_CHAR, idl_char)
|
||||
extern IDL_tree IDL_char_new (char *value);
|
||||
|
||||
struct _IDL_WIDE_CHAR {
|
||||
wchar_t *value;
|
||||
};
|
||||
#define IDL_WIDE_CHAR(a) IDL_CHECK_CAST(a, IDLN_WIDE_CHAR, idl_wide_char)
|
||||
extern IDL_tree IDL_wide_char_new (wchar_t *value);
|
||||
|
||||
struct _IDL_FIXED {
|
||||
char *value;
|
||||
};
|
||||
#define IDL_FIXED(a) IDL_CHECK_CAST(a, IDLN_FIXED, idl_fixed)
|
||||
extern IDL_tree IDL_fixed_new (char *value);
|
||||
|
||||
struct _IDL_FLOAT {
|
||||
double value;
|
||||
};
|
||||
#define IDL_FLOAT(a) IDL_CHECK_CAST(a, IDLN_FLOAT, idl_float)
|
||||
extern IDL_tree IDL_float_new (double value);
|
||||
|
||||
struct _IDL_BOOLEAN {
|
||||
unsigned value;
|
||||
};
|
||||
#define IDL_BOOLEAN(a) IDL_CHECK_CAST(a, IDLN_BOOLEAN, idl_boolean)
|
||||
extern IDL_tree IDL_boolean_new (unsigned value);
|
||||
|
||||
struct _IDL_IDENT {
|
||||
char *str;
|
||||
char *repo_id;
|
||||
GSList *comments;
|
||||
IDL_tree _ns_ref; /* Internal use, do not recurse */
|
||||
unsigned _flags; /* Internal use */
|
||||
#define IDLF_IDENT_CASE_MISMATCH_HIT (1UL << 0)
|
||||
};
|
||||
#define IDL_IDENT(a) IDL_CHECK_CAST(a, IDLN_IDENT, idl_ident)
|
||||
#define IDL_IDENT_TO_NS(a) IDL_CHECK_CAST(a, IDLN_IDENT, idl_ident._ns_ref)
|
||||
#define IDL_IDENT_REPO_ID(a) IDL_CHECK_CAST(a, IDLN_IDENT, idl_ident.repo_id)
|
||||
extern IDL_tree IDL_ident_new (char *str);
|
||||
extern void IDL_queue_new_ident_comment (const char *str);
|
||||
|
||||
enum IDL_float_type {
|
||||
IDL_FLOAT_TYPE_FLOAT,
|
||||
IDL_FLOAT_TYPE_DOUBLE,
|
||||
IDL_FLOAT_TYPE_LONGDOUBLE
|
||||
};
|
||||
|
||||
struct _IDL_TYPE_FLOAT {
|
||||
enum IDL_float_type f_type;
|
||||
};
|
||||
#define IDL_TYPE_FLOAT(a) IDL_CHECK_CAST(a, IDLN_TYPE_FLOAT, idl_type_float)
|
||||
extern IDL_tree IDL_type_float_new (enum IDL_float_type f_type);
|
||||
|
||||
struct _IDL_TYPE_FIXED {
|
||||
IDL_tree positive_int_const;
|
||||
IDL_tree integer_lit;
|
||||
};
|
||||
#define IDL_TYPE_FIXED(a) IDL_CHECK_CAST(a, IDLN_TYPE_FIXED, idl_type_fixed)
|
||||
extern IDL_tree IDL_type_fixed_new (IDL_tree positive_int_const,
|
||||
IDL_tree integer_lit);
|
||||
|
||||
enum IDL_integer_type {
|
||||
IDL_INTEGER_TYPE_SHORT,
|
||||
IDL_INTEGER_TYPE_LONG,
|
||||
IDL_INTEGER_TYPE_LONGLONG
|
||||
};
|
||||
|
||||
struct _IDL_TYPE_INTEGER {
|
||||
unsigned f_signed : 1;
|
||||
enum IDL_integer_type f_type;
|
||||
};
|
||||
#define IDL_TYPE_INTEGER(a) IDL_CHECK_CAST(a, IDLN_TYPE_INTEGER, idl_type_integer)
|
||||
extern IDL_tree IDL_type_integer_new (unsigned f_signed,
|
||||
enum IDL_integer_type f_type);
|
||||
|
||||
extern IDL_tree IDL_type_char_new (void);
|
||||
extern IDL_tree IDL_type_wide_char_new (void);
|
||||
extern IDL_tree IDL_type_boolean_new (void);
|
||||
extern IDL_tree IDL_type_octet_new (void);
|
||||
extern IDL_tree IDL_type_any_new (void);
|
||||
extern IDL_tree IDL_type_object_new (void);
|
||||
extern IDL_tree IDL_type_typecode_new (void);
|
||||
|
||||
struct _IDL_TYPE_STRING {
|
||||
IDL_tree positive_int_const;
|
||||
};
|
||||
#define IDL_TYPE_STRING(a) IDL_CHECK_CAST(a, IDLN_TYPE_STRING, idl_type_string)
|
||||
extern IDL_tree IDL_type_string_new (IDL_tree positive_int_const);
|
||||
|
||||
struct _IDL_TYPE_WIDE_STRING {
|
||||
IDL_tree positive_int_const;
|
||||
};
|
||||
#define IDL_TYPE_WIDE_STRING(a) IDL_CHECK_CAST(a, IDLN_TYPE_WIDE_STRING, idl_type_wide_string)
|
||||
extern IDL_tree IDL_type_wide_string_new (IDL_tree positive_int_const);
|
||||
|
||||
struct _IDL_TYPE_ENUM {
|
||||
IDL_tree ident;
|
||||
IDL_tree enumerator_list;
|
||||
};
|
||||
#define IDL_TYPE_ENUM(a) IDL_CHECK_CAST(a, IDLN_TYPE_ENUM, idl_type_enum)
|
||||
extern IDL_tree IDL_type_enum_new (IDL_tree ident,
|
||||
IDL_tree enumerator_list);
|
||||
|
||||
struct _IDL_TYPE_ARRAY {
|
||||
IDL_tree ident;
|
||||
IDL_tree size_list;
|
||||
};
|
||||
#define IDL_TYPE_ARRAY(a) IDL_CHECK_CAST(a, IDLN_TYPE_ARRAY, idl_type_array)
|
||||
extern IDL_tree IDL_type_array_new (IDL_tree ident,
|
||||
IDL_tree size_list);
|
||||
|
||||
struct _IDL_TYPE_SEQUENCE {
|
||||
IDL_tree simple_type_spec;
|
||||
IDL_tree positive_int_const;
|
||||
};
|
||||
#define IDL_TYPE_SEQUENCE(a) IDL_CHECK_CAST(a, IDLN_TYPE_SEQUENCE, idl_type_sequence)
|
||||
extern IDL_tree IDL_type_sequence_new (IDL_tree simple_type_spec,
|
||||
IDL_tree positive_int_const);
|
||||
|
||||
struct _IDL_TYPE_STRUCT {
|
||||
IDL_tree ident;
|
||||
IDL_tree member_list;
|
||||
};
|
||||
#define IDL_TYPE_STRUCT(a) IDL_CHECK_CAST(a, IDLN_TYPE_STRUCT, idl_type_struct)
|
||||
extern IDL_tree IDL_type_struct_new (IDL_tree ident,
|
||||
IDL_tree member_list);
|
||||
|
||||
struct _IDL_TYPE_UNION {
|
||||
IDL_tree ident;
|
||||
IDL_tree switch_type_spec;
|
||||
IDL_tree switch_body;
|
||||
};
|
||||
#define IDL_TYPE_UNION(a) IDL_CHECK_CAST(a, IDLN_TYPE_UNION, idl_type_union)
|
||||
extern IDL_tree IDL_type_union_new (IDL_tree ident,
|
||||
IDL_tree switch_type_spec,
|
||||
IDL_tree switch_body);
|
||||
struct _IDL_MEMBER {
|
||||
IDL_tree type_spec;
|
||||
IDL_tree dcls;
|
||||
};
|
||||
#define IDL_MEMBER(a) IDL_CHECK_CAST(a, IDLN_MEMBER, idl_member)
|
||||
extern IDL_tree IDL_member_new (IDL_tree type_spec,
|
||||
IDL_tree dcls);
|
||||
|
||||
struct _IDL_NATIVE {
|
||||
IDL_tree ident;
|
||||
char *user_type; /* XPIDL extension */
|
||||
};
|
||||
#define IDL_NATIVE(a) IDL_CHECK_CAST(a, IDLN_NATIVE, idl_native)
|
||||
extern IDL_tree IDL_native_new (IDL_tree ident);
|
||||
|
||||
|
||||
struct _IDL_TYPE_DCL {
|
||||
IDL_tree type_spec;
|
||||
IDL_tree dcls;
|
||||
};
|
||||
#define IDL_TYPE_DCL(a) IDL_CHECK_CAST(a, IDLN_TYPE_DCL, idl_type_dcl)
|
||||
extern IDL_tree IDL_type_dcl_new (IDL_tree type_spec,
|
||||
IDL_tree dcls);
|
||||
|
||||
struct _IDL_CONST_DCL {
|
||||
IDL_tree const_type;
|
||||
IDL_tree ident;
|
||||
IDL_tree const_exp;
|
||||
};
|
||||
#define IDL_CONST_DCL(a) IDL_CHECK_CAST(a, IDLN_CONST_DCL, idl_const_dcl)
|
||||
extern IDL_tree IDL_const_dcl_new (IDL_tree const_type,
|
||||
IDL_tree ident,
|
||||
IDL_tree const_exp);
|
||||
|
||||
struct _IDL_EXCEPT_DCL {
|
||||
IDL_tree ident;
|
||||
IDL_tree members;
|
||||
};
|
||||
#define IDL_EXCEPT_DCL(a) IDL_CHECK_CAST(a, IDLN_EXCEPT_DCL, idl_except_dcl)
|
||||
extern IDL_tree IDL_except_dcl_new (IDL_tree ident,
|
||||
IDL_tree members);
|
||||
|
||||
struct _IDL_ATTR_DCL {
|
||||
unsigned f_readonly : 1;
|
||||
IDL_tree param_type_spec;
|
||||
IDL_tree simple_declarations;
|
||||
};
|
||||
#define IDL_ATTR_DCL(a) IDL_CHECK_CAST(a, IDLN_ATTR_DCL, idl_attr_dcl)
|
||||
extern IDL_tree IDL_attr_dcl_new (unsigned f_readonly,
|
||||
IDL_tree param_type_spec,
|
||||
IDL_tree simple_declarations);
|
||||
|
||||
struct _IDL_OP_DCL {
|
||||
unsigned f_noscript : 1;
|
||||
unsigned f_oneway : 1;
|
||||
/* XPIDL extension (varags) */
|
||||
unsigned f_varargs : 1;
|
||||
IDL_tree op_type_spec;
|
||||
IDL_tree ident;
|
||||
IDL_tree parameter_dcls;
|
||||
IDL_tree raises_expr;
|
||||
IDL_tree context_expr;
|
||||
};
|
||||
#define IDL_OP_DCL(a) IDL_CHECK_CAST(a, IDLN_OP_DCL, idl_op_dcl)
|
||||
extern IDL_tree IDL_op_dcl_new (unsigned f_oneway,
|
||||
IDL_tree op_type_spec,
|
||||
IDL_tree ident,
|
||||
IDL_tree parameter_dcls,
|
||||
IDL_tree raises_expr,
|
||||
IDL_tree context_expr);
|
||||
|
||||
enum IDL_param_attr {
|
||||
IDL_PARAM_IN,
|
||||
IDL_PARAM_OUT,
|
||||
IDL_PARAM_INOUT
|
||||
};
|
||||
|
||||
struct _IDL_PARAM_DCL {
|
||||
enum IDL_param_attr attr;
|
||||
IDL_tree param_type_spec;
|
||||
IDL_tree simple_declarator;
|
||||
};
|
||||
#define IDL_PARAM_DCL(a) IDL_CHECK_CAST(a, IDLN_PARAM_DCL, idl_param_dcl)
|
||||
extern IDL_tree IDL_param_dcl_new (enum IDL_param_attr attr,
|
||||
IDL_tree param_type_spec,
|
||||
IDL_tree simple_declarator);
|
||||
|
||||
struct _IDL_CASE_STMT {
|
||||
IDL_tree labels;
|
||||
IDL_tree element_spec;
|
||||
};
|
||||
#define IDL_CASE_STMT(a) IDL_CHECK_CAST(a, IDLN_CASE_STMT, idl_case_stmt)
|
||||
extern IDL_tree IDL_case_stmt_new (IDL_tree labels,
|
||||
IDL_tree element_spec);
|
||||
|
||||
struct _IDL_INTERFACE {
|
||||
IDL_tree ident;
|
||||
IDL_tree inheritance_spec;
|
||||
IDL_tree body;
|
||||
};
|
||||
#define IDL_INTERFACE(a) IDL_CHECK_CAST(a, IDLN_INTERFACE, idl_interface)
|
||||
extern IDL_tree IDL_interface_new (IDL_tree ident,
|
||||
IDL_tree inheritance_spec,
|
||||
IDL_tree body);
|
||||
|
||||
struct _IDL_FORWARD_DCL {
|
||||
IDL_tree ident;
|
||||
};
|
||||
#define IDL_FORWARD_DCL(a) IDL_CHECK_CAST(a, IDLN_FORWARD_DCL, idl_forward_dcl)
|
||||
extern IDL_tree IDL_forward_dcl_new (IDL_tree ident);
|
||||
|
||||
struct _IDL_MODULE {
|
||||
IDL_tree ident;
|
||||
IDL_tree definition_list;
|
||||
};
|
||||
#define IDL_MODULE(a) IDL_CHECK_CAST(a, IDLN_MODULE, idl_module)
|
||||
extern IDL_tree IDL_module_new (IDL_tree ident,
|
||||
IDL_tree definition_list);
|
||||
|
||||
enum IDL_binop {
|
||||
IDL_BINOP_OR,
|
||||
IDL_BINOP_XOR,
|
||||
IDL_BINOP_AND,
|
||||
IDL_BINOP_SHR,
|
||||
IDL_BINOP_SHL,
|
||||
IDL_BINOP_ADD,
|
||||
IDL_BINOP_SUB,
|
||||
IDL_BINOP_MULT,
|
||||
IDL_BINOP_DIV,
|
||||
IDL_BINOP_MOD
|
||||
};
|
||||
|
||||
struct _IDL_BINOP {
|
||||
enum IDL_binop op;
|
||||
IDL_tree left, right;
|
||||
};
|
||||
#define IDL_BINOP(a) IDL_CHECK_CAST(a, IDLN_BINOP, idl_binop)
|
||||
extern IDL_tree IDL_binop_new (enum IDL_binop op,
|
||||
IDL_tree left,
|
||||
IDL_tree right);
|
||||
|
||||
enum IDL_unaryop {
|
||||
IDL_UNARYOP_PLUS,
|
||||
IDL_UNARYOP_MINUS,
|
||||
IDL_UNARYOP_COMPLEMENT
|
||||
};
|
||||
|
||||
struct _IDL_UNARYOP {
|
||||
enum IDL_unaryop op;
|
||||
IDL_tree operand;
|
||||
};
|
||||
#define IDL_UNARYOP(a) IDL_CHECK_CAST(a, IDLN_UNARYOP, idl_unaryop)
|
||||
extern IDL_tree IDL_unaryop_new (enum IDL_unaryop op,
|
||||
IDL_tree operand);
|
||||
|
||||
/* XPIDL code fragments extension. */
|
||||
struct _IDL_CODEFRAG {
|
||||
char *desc;
|
||||
GSList *lines;
|
||||
};
|
||||
#define IDL_CODEFRAG(a) IDL_CHECK_CAST(a, IDLN_CODEFRAG, idl_codefrag)
|
||||
extern IDL_tree IDL_codefrag_new (char *desc,
|
||||
GSList *lines);
|
||||
|
||||
/*
|
||||
* IDL_tree_type - Enumerations of node types
|
||||
*
|
||||
* Note this enumerator list is subject to change in the future. A program should not need
|
||||
* more than a recompilation to adjust for a change in this list, so instead of using a
|
||||
* statically initialized jumptable, allocate an array of size IDLN_LAST and assign the
|
||||
* elements manually.
|
||||
*/
|
||||
typedef enum {
|
||||
IDLN_NONE,
|
||||
IDLN_ANY,
|
||||
|
||||
IDLN_LIST,
|
||||
IDLN_GENTREE,
|
||||
IDLN_INTEGER,
|
||||
IDLN_STRING,
|
||||
IDLN_WIDE_STRING,
|
||||
IDLN_CHAR,
|
||||
IDLN_WIDE_CHAR,
|
||||
IDLN_FIXED,
|
||||
IDLN_FLOAT,
|
||||
IDLN_BOOLEAN,
|
||||
IDLN_IDENT,
|
||||
IDLN_TYPE_DCL,
|
||||
IDLN_CONST_DCL,
|
||||
IDLN_EXCEPT_DCL,
|
||||
IDLN_ATTR_DCL,
|
||||
IDLN_OP_DCL,
|
||||
IDLN_PARAM_DCL,
|
||||
IDLN_FORWARD_DCL,
|
||||
IDLN_TYPE_INTEGER,
|
||||
IDLN_TYPE_FLOAT,
|
||||
IDLN_TYPE_FIXED,
|
||||
IDLN_TYPE_CHAR,
|
||||
IDLN_TYPE_WIDE_CHAR,
|
||||
IDLN_TYPE_STRING,
|
||||
IDLN_TYPE_WIDE_STRING,
|
||||
IDLN_TYPE_BOOLEAN,
|
||||
IDLN_TYPE_OCTET,
|
||||
IDLN_TYPE_ANY,
|
||||
IDLN_TYPE_OBJECT,
|
||||
IDLN_TYPE_TYPECODE,
|
||||
IDLN_TYPE_ENUM,
|
||||
IDLN_TYPE_SEQUENCE,
|
||||
IDLN_TYPE_ARRAY,
|
||||
IDLN_TYPE_STRUCT,
|
||||
IDLN_TYPE_UNION,
|
||||
IDLN_MEMBER,
|
||||
IDLN_NATIVE,
|
||||
IDLN_CASE_STMT,
|
||||
IDLN_INTERFACE,
|
||||
IDLN_MODULE,
|
||||
IDLN_BINOP,
|
||||
IDLN_UNARYOP,
|
||||
IDLN_CODEFRAG,
|
||||
|
||||
IDLN_LAST
|
||||
} IDL_tree_type;
|
||||
IDL_IMPORT const char * IDL_tree_type_names[];
|
||||
|
||||
struct _IDL_tree_node {
|
||||
IDL_tree_type _type;
|
||||
IDL_tree up; /* Do not recurse */
|
||||
IDL_declspec_t declspec;
|
||||
/* properties is an XPIDL extension. It is a hash table of
|
||||
* case-insensitive string keys to string values. */
|
||||
GHashTable *properties;
|
||||
int refs;
|
||||
char *_file; /* Internal use */
|
||||
int _line; /* Internal use */
|
||||
union {
|
||||
struct _IDL_LIST idl_list;
|
||||
struct _IDL_GENTREE idl_gentree;
|
||||
struct _IDL_INTEGER idl_integer;
|
||||
struct _IDL_STRING idl_string;
|
||||
struct _IDL_WIDE_STRING idl_wide_string;
|
||||
struct _IDL_CHAR idl_char;
|
||||
struct _IDL_WIDE_CHAR idl_wide_char;
|
||||
struct _IDL_FIXED idl_fixed;
|
||||
struct _IDL_FLOAT idl_float;
|
||||
struct _IDL_BOOLEAN idl_boolean;
|
||||
struct _IDL_IDENT idl_ident;
|
||||
struct _IDL_TYPE_DCL idl_type_dcl;
|
||||
struct _IDL_CONST_DCL idl_const_dcl;
|
||||
struct _IDL_EXCEPT_DCL idl_except_dcl;
|
||||
struct _IDL_ATTR_DCL idl_attr_dcl;
|
||||
struct _IDL_OP_DCL idl_op_dcl;
|
||||
struct _IDL_PARAM_DCL idl_param_dcl;
|
||||
struct _IDL_FORWARD_DCL idl_forward_dcl;
|
||||
struct _IDL_TYPE_FLOAT idl_type_float;
|
||||
struct _IDL_TYPE_FIXED idl_type_fixed;
|
||||
struct _IDL_TYPE_INTEGER idl_type_integer;
|
||||
struct _IDL_TYPE_ENUM idl_type_enum;
|
||||
struct _IDL_TYPE_STRING idl_type_string;
|
||||
struct _IDL_TYPE_WIDE_STRING idl_type_wide_string;
|
||||
struct _IDL_TYPE_SEQUENCE idl_type_sequence;
|
||||
struct _IDL_TYPE_ARRAY idl_type_array;
|
||||
struct _IDL_TYPE_STRUCT idl_type_struct;
|
||||
struct _IDL_TYPE_UNION idl_type_union;
|
||||
struct _IDL_MEMBER idl_member;
|
||||
struct _IDL_NATIVE idl_native;
|
||||
struct _IDL_CASE_STMT idl_case_stmt;
|
||||
struct _IDL_INTERFACE idl_interface;
|
||||
struct _IDL_MODULE idl_module;
|
||||
struct _IDL_BINOP idl_binop;
|
||||
struct _IDL_UNARYOP idl_unaryop;
|
||||
struct _IDL_CODEFRAG idl_codefrag;
|
||||
} u;
|
||||
};
|
||||
#define IDL_NODE_TYPE(a) ((a)->_type)
|
||||
#define IDL_NODE_TYPE_NAME(a) ((a)?IDL_tree_type_names[IDL_NODE_TYPE(a)]:"NULL")
|
||||
#define IDL_NODE_UP(a) ((a)->up)
|
||||
#define IDL_NODE_PROPERTIES(a) ((a)->properties)
|
||||
#define IDL_NODE_DECLSPEC(a) ((a)->declspec)
|
||||
#define IDL_NODE_REFS(a) ((a)->refs)
|
||||
#define IDL_NODE_IS_LITERAL(a) \
|
||||
(IDL_NODE_TYPE(a) == IDLN_INTEGER || \
|
||||
IDL_NODE_TYPE(a) == IDLN_STRING || \
|
||||
IDL_NODE_TYPE(a) == IDLN_WIDE_STRING || \
|
||||
IDL_NODE_TYPE(a) == IDLN_CHAR || \
|
||||
IDL_NODE_TYPE(a) == IDLN_WIDE_CHAR || \
|
||||
IDL_NODE_TYPE(a) == IDLN_FIXED || \
|
||||
IDL_NODE_TYPE(a) == IDLN_FLOAT || \
|
||||
IDL_NODE_TYPE(a) == IDLN_BOOLEAN)
|
||||
#define IDL_NODE_IS_TYPE(a) \
|
||||
(IDL_NODE_TYPE(a) == IDLN_TYPE_INTEGER || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_STRING || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_WIDE_STRING || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_CHAR || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_WIDE_CHAR || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_FIXED || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_FLOAT || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_BOOLEAN || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_OCTET || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_ANY || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_OBJECT || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_TYPECODE || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_ENUM || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_ARRAY || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_SEQUENCE || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_STRUCT || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_UNION)
|
||||
#define IDL_NODE_IS_SCOPED(a) \
|
||||
(IDL_NODE_TYPE(a) == IDLN_IDENT || \
|
||||
IDL_NODE_TYPE(a) == IDLN_INTERFACE || \
|
||||
IDL_NODE_TYPE(a) == IDLN_MODULE || \
|
||||
IDL_NODE_TYPE(a) == IDLN_EXCEPT_DCL || \
|
||||
IDL_NODE_TYPE(a) == IDLN_OP_DCL || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_ENUM || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_STRUCT || \
|
||||
IDL_NODE_TYPE(a) == IDLN_TYPE_UNION)
|
||||
|
||||
typedef struct _IDL_ns * IDL_ns;
|
||||
|
||||
struct _IDL_ns {
|
||||
IDL_tree global;
|
||||
IDL_tree file;
|
||||
IDL_tree current;
|
||||
GHashTable *inhibits;
|
||||
GHashTable *filename_hash;
|
||||
};
|
||||
#define IDL_NS(a) (*(a))
|
||||
|
||||
typedef enum {
|
||||
IDL_INPUT_REASON_INIT,
|
||||
IDL_INPUT_REASON_FILL,
|
||||
IDL_INPUT_REASON_ABORT,
|
||||
IDL_INPUT_REASON_FINISH
|
||||
} IDL_input_reason;
|
||||
|
||||
union IDL_input_data {
|
||||
struct {
|
||||
const char *filename;
|
||||
} init;
|
||||
struct {
|
||||
char *buffer;
|
||||
size_t max_size;
|
||||
} fill;
|
||||
};
|
||||
|
||||
typedef int (*IDL_input_callback) (IDL_input_reason reason,
|
||||
union IDL_input_data *data,
|
||||
gpointer user_data);
|
||||
|
||||
typedef int (*IDL_msg_callback) (int level,
|
||||
int num,
|
||||
int line,
|
||||
const char *filename,
|
||||
const char *message);
|
||||
|
||||
typedef struct _IDL_tree_func_state IDL_tree_func_state;
|
||||
typedef struct _IDL_tree_func_data IDL_tree_func_data;
|
||||
|
||||
/* Traversal state data. Recursive walks chain states. */
|
||||
struct _IDL_tree_func_state {
|
||||
IDL_tree_func_state *up;
|
||||
IDL_tree start;
|
||||
IDL_tree_func_data *bottom;
|
||||
};
|
||||
|
||||
/* This holds a list of the up hierarchy traversed, beginning from traversal. This is
|
||||
* useful since nodes referenced after initial definition will have a different traversal
|
||||
* path than the actual up path. */
|
||||
struct _IDL_tree_func_data {
|
||||
IDL_tree_func_state *state;
|
||||
IDL_tree_func_data *up;
|
||||
IDL_tree tree;
|
||||
};
|
||||
|
||||
typedef gboolean (*IDL_tree_func) (IDL_tree_func_data *tnfd,
|
||||
gpointer user_data);
|
||||
|
||||
extern IDL_tree IDL_check_type_cast (const IDL_tree var,
|
||||
IDL_tree_type type,
|
||||
const char *file,
|
||||
int line,
|
||||
const char *function);
|
||||
|
||||
extern const char * IDL_get_libver_string (void);
|
||||
|
||||
extern const char * IDL_get_IDLver_string (void);
|
||||
|
||||
extern int IDL_parse_filename (const char *filename,
|
||||
const char *cpp_args,
|
||||
IDL_msg_callback msg_cb,
|
||||
IDL_tree *tree, IDL_ns *ns,
|
||||
unsigned long parse_flags,
|
||||
int max_msg_level);
|
||||
|
||||
extern int IDL_parse_filename_with_input (const char *filename,
|
||||
IDL_input_callback input_cb,
|
||||
gpointer input_cb_user_data,
|
||||
IDL_msg_callback msg_cb,
|
||||
IDL_tree *tree, IDL_ns *ns,
|
||||
unsigned long parse_flags,
|
||||
int max_msg_level);
|
||||
|
||||
extern int IDL_ns_prefix (IDL_ns ns,
|
||||
const char *s);
|
||||
|
||||
extern void IDL_ns_ID (IDL_ns ns,
|
||||
const char *s);
|
||||
|
||||
extern void IDL_ns_version (IDL_ns ns,
|
||||
const char *s);
|
||||
|
||||
extern int IDL_inhibit_get (void);
|
||||
|
||||
extern void IDL_inhibit_push (void);
|
||||
|
||||
extern void IDL_inhibit_pop (void);
|
||||
|
||||
extern void IDL_file_set (const char *filename,
|
||||
int line);
|
||||
|
||||
extern void IDL_file_get (const char **filename,
|
||||
int *line);
|
||||
|
||||
extern IDL_tree IDL_get_parent_node (IDL_tree p,
|
||||
IDL_tree_type type,
|
||||
int *scope_levels);
|
||||
|
||||
extern IDL_tree IDL_tree_get_scope (IDL_tree p);
|
||||
|
||||
extern int IDL_tree_get_node_info (IDL_tree tree,
|
||||
char **who,
|
||||
char **what);
|
||||
|
||||
extern void IDL_tree_error (IDL_tree p,
|
||||
const char *fmt,
|
||||
...);
|
||||
|
||||
extern void IDL_tree_warning (IDL_tree p,
|
||||
int level,
|
||||
const char *fmt,
|
||||
...);
|
||||
|
||||
extern const char * IDL_tree_property_get (IDL_tree tree,
|
||||
const char *key);
|
||||
|
||||
extern void IDL_tree_property_set (IDL_tree tree,
|
||||
const char *key,
|
||||
const char *value);
|
||||
|
||||
extern gboolean IDL_tree_property_remove (IDL_tree tree,
|
||||
const char *key);
|
||||
|
||||
extern void IDL_tree_properties_copy (IDL_tree from_tree,
|
||||
IDL_tree to_tree);
|
||||
|
||||
extern void IDL_tree_walk (IDL_tree p,
|
||||
IDL_tree_func_data *current,
|
||||
IDL_tree_func pre_tree_func,
|
||||
IDL_tree_func post_tree_func,
|
||||
gpointer user_data);
|
||||
|
||||
extern void IDL_tree_walk_in_order (IDL_tree p,
|
||||
IDL_tree_func tree_func,
|
||||
gpointer user_data);
|
||||
|
||||
extern void IDL_tree_free (IDL_tree root);
|
||||
|
||||
extern void IDL_tree_to_IDL (IDL_tree p,
|
||||
IDL_ns ns,
|
||||
FILE *output,
|
||||
unsigned long output_flags);
|
||||
|
||||
extern char * IDL_do_escapes (const char *s);
|
||||
|
||||
extern IDL_tree IDL_resolve_const_exp (IDL_tree p,
|
||||
IDL_tree_type type);
|
||||
|
||||
extern IDL_ns IDL_ns_new (void);
|
||||
|
||||
extern void IDL_ns_free (IDL_ns ns);
|
||||
|
||||
extern IDL_tree IDL_ns_resolve_this_scope_ident (IDL_ns ns,
|
||||
IDL_tree scope,
|
||||
IDL_tree ident);
|
||||
|
||||
extern IDL_tree IDL_ns_resolve_ident (IDL_ns ns,
|
||||
IDL_tree ident);
|
||||
|
||||
extern IDL_tree IDL_ns_lookup_this_scope (IDL_ns ns,
|
||||
IDL_tree scope,
|
||||
IDL_tree ident,
|
||||
gboolean *conflict);
|
||||
|
||||
extern IDL_tree IDL_ns_lookup_cur_scope (IDL_ns ns,
|
||||
IDL_tree ident,
|
||||
gboolean *conflict);
|
||||
|
||||
extern IDL_tree IDL_ns_place_new (IDL_ns ns,
|
||||
IDL_tree ident);
|
||||
|
||||
extern void IDL_ns_push_scope (IDL_ns ns,
|
||||
IDL_tree ident);
|
||||
|
||||
extern void IDL_ns_pop_scope (IDL_ns ns);
|
||||
|
||||
extern IDL_tree IDL_ns_qualified_ident_new (IDL_tree nsid);
|
||||
|
||||
extern char * IDL_ns_ident_to_qstring (IDL_tree ns_ident,
|
||||
const char *join,
|
||||
int scope_levels);
|
||||
|
||||
extern int IDL_ns_scope_levels_from_here (IDL_ns ns,
|
||||
IDL_tree ident,
|
||||
IDL_tree parent);
|
||||
|
||||
extern char * IDL_ns_ident_make_repo_id (IDL_ns ns,
|
||||
IDL_tree p,
|
||||
const char *p_prefix,
|
||||
int *major,
|
||||
int *minor);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __IDL_H */
|
||||
BIN
buildtools/windows/lib/glib-1.2.lib
Normal file
BIN
buildtools/windows/lib/glib-1.2.lib
Normal file
Binary file not shown.
BIN
buildtools/windows/lib/gmodule-1.2.lib
Normal file
BIN
buildtools/windows/lib/gmodule-1.2.lib
Normal file
Binary file not shown.
BIN
buildtools/windows/lib/gthread-1.2.lib
Normal file
BIN
buildtools/windows/lib/gthread-1.2.lib
Normal file
Binary file not shown.
BIN
buildtools/windows/lib/libIDL-0.6.lib
Normal file
BIN
buildtools/windows/lib/libIDL-0.6.lib
Normal file
Binary file not shown.
12
buildtools/windows/source/glib/README
Normal file
12
buildtools/windows/source/glib/README
Normal file
@ -0,0 +1,12 @@
|
||||
Sources for glib are available from gnome.org via cvs. See cvs
|
||||
checkout instructions at http://www.gnome.org - or use
|
||||
|
||||
export CVSROOT=:pserver:anonymous@anoncvs.gnome.org:/cvs/gnome
|
||||
cvs login (no password)
|
||||
cvs -z3 checkout glib
|
||||
|
||||
or grap a package of the sources we're currently using from
|
||||
ftp://ftp.mozilla.org/pub/mozilla/libraries/source/
|
||||
|
||||
These sources correspond to the GLIB_1_2_0 tag on the gnome cvs
|
||||
server.
|
||||
14
buildtools/windows/source/libIDL/README
Normal file
14
buildtools/windows/source/libIDL/README
Normal file
@ -0,0 +1,14 @@
|
||||
Sources for libIDL are available from gnome.org via cvs. See cvs
|
||||
checkout instructions at http://www.gnome.org - or use
|
||||
|
||||
export CVSROOT=:pserver:anonymous@anoncvs.gnome.org:/cvs/gnome
|
||||
cvs login (no password)
|
||||
cvs -z3 checkout ORBit
|
||||
|
||||
(libIDL files are in ORBit/libIDL)
|
||||
|
||||
or grap a package of the sources we're currently using from
|
||||
ftp://ftp.mozilla.org/pub/mozilla/libraries/source/
|
||||
|
||||
These sources correspond to the LIBIDL_V0_6_3 tag on the gnome cvs
|
||||
server.
|
||||
Loading…
x
Reference in New Issue
Block a user