source: trunk/third/ORBit/libIDL/util.h @ 15271

Revision 15271, 4.0 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15270, which included commits to RCS files with non-trunk default branches.
Line 
1/**************************************************************************
2
3    util.h
4
5    Copyright (C) 1998, 1999 Andrew T. Veliath
6
7    This library is free software; you can redistribute it and/or
8    modify it under the terms of the GNU Library General Public
9    License as published by the Free Software Foundation; either
10    version 2 of the License, or (at your option) any later version.
11
12    This library is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15    Library General Public License for more details.
16
17    You should have received a copy of the GNU Library General Public
18    License along with this library; if not, write to the Free
19    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
21    $Id: util.h,v 1.1.1.1 2000-11-10 00:47:53 ghudson Exp $
22
23***************************************************************************/
24#ifndef __UTIL_H
25#define __UTIL_H
26
27#if defined(HAVE_STDDEF_H)
28#  include <stddef.h>
29#endif
30#if defined(HAVE_WCHAR_H)
31#  include <wchar.h>
32#elif defined(HAVE_WCSTR_H)
33#  include <wcstr.h>
34#endif
35#include <glib.h>
36#include "IDL.h"
37
38#ifdef _WIN32
39#  define alloca
40#  define NO_ACCESS
41#endif
42
43#ifdef XP_MAC
44#  include <alloca.h>
45#  define alloca
46#  define NO_ACCESS
47#  define NO_SYMLINK
48#  define NO_POPEN
49#endif
50
51/* Internal parse flags */
52#define IDLFP_PROPERTIES        (1UL << 0)
53#define IDLFP_NATIVE            (1UL << 1)
54#define IDLFP_IN_INCLUDES       (1UL << 2)
55
56typedef struct {
57        unsigned long flags;
58} IDL_fileinfo;
59
60extern void             yyerror                         (const char *s);
61extern void             yyerrorl                        (const char *s, int ofs);
62extern void             yywarning                       (int level, const char *s);
63extern void             yywarningl                      (int level, const char *s, int ofs);
64extern void             yyerrorv                        (const char *fmt, ...)
65                                                        G_GNUC_PRINTF (1, 2);
66extern void             yyerrorlv                       (const char *fmt, int ofs, ...)
67                                                        G_GNUC_PRINTF (1, 3);
68extern void             yywarningv                      (int level, const char *fmt, ...)
69                                                        G_GNUC_PRINTF (2, 3);
70extern void             yywarninglv                     (int level, const char *fmt, int ofs, ...)
71                                                        G_GNUC_PRINTF (2, 4);
72extern void             yyerrornv                       (IDL_tree p, const char *fmt, ...)
73                                                        G_GNUC_PRINTF (2, 3);
74extern void             yywarningnv                     (IDL_tree p, int level, const char *fmt, ...)
75                                                        G_GNUC_PRINTF (3, 4);
76
77extern guint            IDL_strcase_hash                (gconstpointer v);
78extern gint             IDL_strcase_equal               (gconstpointer a, gconstpointer b);
79extern gint             IDL_strcase_cmp                 (gconstpointer a, gconstpointer b);
80extern guint            IDL_ident_hash                  (gconstpointer v);
81extern gint             IDL_ident_equal                 (gconstpointer a, gconstpointer b);
82extern gint             IDL_ident_cmp                   (gconstpointer a, gconstpointer b);
83extern int              IDL_ns_check_for_ambiguous_inheritance
84                                                        (IDL_tree interface_ident,
85                                                         IDL_tree p);
86extern void             IDL_tree_process_forward_dcls   (IDL_tree *p, IDL_ns ns);
87extern void             IDL_tree_remove_empty_modules   (IDL_tree *p, IDL_ns ns);
88
89extern void             __IDL_free_properties           (GHashTable *table);
90extern void             __IDL_assign_up_node            (IDL_tree up, IDL_tree node);
91extern void             __IDL_assign_location           (IDL_tree node, IDL_tree from_node);
92extern void             __IDL_assign_this_location      (IDL_tree node, char *filename, int line);
93extern void             __IDL_parser_reset              (void);
94
95#ifndef HAVE_CPP_PIPE_STDIN
96extern char *                           __IDL_tmp_filename;
97#endif
98extern const char *                     __IDL_real_filename;
99extern char *                           __IDL_cur_filename;
100extern int                              __IDL_cur_line;
101extern GHashTable *                     __IDL_filename_hash;
102extern IDL_fileinfo *                   __IDL_cur_fileinfo;
103extern int                              __IDL_prev_token_line;
104extern int                              __IDL_cur_token_line;
105extern GHashTable *                     __IDL_structunion_ht;
106extern int                              __IDL_inhibits;
107extern IDL_tree                         __IDL_root;
108extern IDL_ns                           __IDL_root_ns;
109extern int                              __IDL_is_okay;
110extern int                              __IDL_is_parsing;
111extern unsigned long                    __IDL_flags;
112extern unsigned long                    __IDL_flagsi;
113extern gpointer                         __IDL_inputcb_user_data;
114extern IDL_input_callback               __IDL_inputcb;
115extern GSList *                         __IDL_new_ident_comments;
116
117#endif /* __UTIL_H */
Note: See TracBrowser for help on using the repository browser.