File: util.h

package info (click to toggle)
orbit 0.3.0-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 5,628 kB
  • ctags: 7,089
  • sloc: ansic: 89,906; sh: 5,226; yacc: 1,292; makefile: 381; lex: 223
file content (83 lines) | stat: -rw-r--r-- 3,203 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/**************************************************************************

    util.h

    Copyright (C) 1998 Andrew Veliath

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program 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 General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

    $Id: util.h,v 1.22 1998/08/25 15:23:11 andrewtv Exp $

***************************************************************************/
#ifndef __UTIL_H
#define __UTIL_H

#if defined(HAVE_STDDEF_H)
#  include <stddef.h>
#endif
#if defined(HAVE_WCHAR_H)
#  include <wchar.h>
#elif defined(HAVE_WCSTR_H)
#  include <wcstr.h>
#endif

#include <glib.h>

struct _IDL_tree_node;
struct _IDL_ns;

extern void			yyerror(const char *s);
extern void			yyerrorl(const char *s, int ofs);
extern void			yywarning(int level, const char *s);
extern void			yywarningl(int level, const char *s, int ofs);
extern void			yyerrorv(const char *fmt, ...);
extern void			yyerrorlv(const char *fmt, int ofs, ...);
extern void			yywarningv(int level, const char *fmt, ...);
extern void			yywarninglv(int level, const char *fmt, int ofs, ...);
extern void			yyerrornv(struct _IDL_tree_node *p, const char *fmt, ...);
extern void			yywarningnv(struct _IDL_tree_node *p, int level, const char *fmt, ...);


/* Functions not yet deemed public */
extern guint			IDL_strcase_hash(gconstpointer v);
extern gint			IDL_strcase_equal(gconstpointer a, gconstpointer b);
extern gint			IDL_strcase_cmp(gconstpointer a, gconstpointer b);
extern guint			IDL_ident_hash(gconstpointer v);
extern gint			IDL_ident_equal(gconstpointer a, gconstpointer b);
extern gint			IDL_ident_cmp(gconstpointer a, gconstpointer b);
extern int			IDL_tree_get_node_info(struct _IDL_tree_node *tree,
						       char **who, char **what);
extern int			IDL_ns_check_for_ambiguous_inheritance(struct _IDL_tree_node *interface_ident,
								       struct _IDL_tree_node *p);
extern void			IDL_tree_process_forward_dcls(struct _IDL_tree_node **p, struct _IDL_ns *);
extern void			IDL_tree_remove_inhibits(struct _IDL_tree_node **p, struct _IDL_ns *);
extern void			IDL_tree_remove_empty_modules(struct _IDL_tree_node **p, struct _IDL_ns *);

#ifndef HAVE_CPP_PIPE_STDIN
extern char *			__IDL_tmp_filename;
#endif
extern const char *		__IDL_real_filename;
extern char *			__IDL_cur_filename;
extern int			__IDL_cur_line;
extern GHashTable *		__IDL_filename_hash;
extern int			__IDL_prev_token_line;
extern int			__IDL_cur_token_line;
extern struct _IDL_tree_node *	__IDL_root;
extern struct _IDL_ns *		__IDL_root_ns;
extern int			__IDL_is_okay;
extern int			__IDL_is_parsing;
extern unsigned long		__IDL_flags;

#endif /* __UTIL_H */