* Make-lang.in (JAVA_LEX_C): Added chartables.h.
[official-gcc.git] / libchill / rtltypes.h
blob7175785440c5ca3df9f2b3933b0898aa57d93fdf
1 /* Implement timing-related runtime actions for CHILL.
2 Copyright (C) 1992,1993 Free Software Foundation, Inc.
3 Author: Wilfried Moser
5 This file is part of GNU CC.
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
12 GNU CC 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
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 /* As a special exception, if you link this library with other files,
23 some of which are compiled with GCC, to produce an executable,
24 this library does not by itself cause the resulting executable
25 to be covered by the GNU General Public License.
26 This exception does not however invalidate any other reasons why
27 the executable file might be covered by the GNU General Public License. */
29 #ifndef __rtltypes_h__
30 #define __rtltypes_h__
32 #include <setjmp.h>
34 /* Add prototype support. */
35 #ifndef PROTO
36 #if defined (USE_PROTOTYPES) ? USE_PROTOTYPES : defined (__STDC__)
37 #define PROTO(ARGS) ARGS
38 #else
39 #define PROTO(ARGS) ()
40 #endif
41 #endif
43 /* argc, argv */
44 typedef struct
46 unsigned short len;
47 char body[0];
48 } TVaryingCharType;
50 #ifndef __CHILL_LIB__
51 extern TVaryingCharType **chill_argv;
52 extern int chill_argc;
53 #endif
55 /* definitions for exceptions */
56 typedef struct
58 char *exname;
59 short exnumber;
60 } TExceptionDefinition;
62 #if 1
63 typedef char *__ch_exception;
64 #define EX_EQ(e1, e2) (strcmp(e1, e2)==0)
65 #else
66 typedef void *__ch_exception;
67 #define EX_EQ(e1, e2) (e1 == e2)
68 #endif
69 #define __ch_else_except ((__ch_exception)0)
71 struct __ch_handled_excepts
73 /* List is ended by a code==0, or ex==__ch_else_except (ELSE handler). */
74 __ch_exception ex;
75 int code; /* Positive number indicating ordinal in handler list. */
78 /* definitions for exception handlers */
79 typedef struct __ch_handler
81 struct __ch_handler *prev;
82 struct __ch_handled_excepts *handlers;
83 jmp_buf jbuf;
84 } TExceptionHandlerStack;
86 /* exceptions */
87 #define EXCEPTION(x) /* nothing */
89 #endif /* __rtltypes_h__ */