OSDN Git Service

Remove floatformat_arm_ext.
[pf3gnuchains/gcc-fork.git] / libchill / auxtypes.h
1 /* Implement Input/Output runtime actions for CHILL.
2    Copyright (C) 1992,1993 Free Software Foundation, Inc.
3    Author: Wilfried Moser, et al
4
5 This file is part of GNU CC.
6
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.
11
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.
16
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.  */
21
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.  */
28
29 #ifndef _auxtypes_h_
30 #define _auxtypes_h_
31
32
33 typedef enum { False, True } Boolean;
34
35 #define VARYING_STRING(strlen) \
36   struct { unsigned short len; char body[strlen]; }
37
38 typedef struct {
39   unsigned short len;
40   char           body[1];
41 } VarString; 
42
43 /* Macros for moving an (U)INT and (U)LONG without alignment worries */
44 #define MOV2(tgt,src) \
45   *((char*)(tgt)  ) = *((char*)(src)  ), \
46   *((char*)(tgt)+1) = *((char*)(src)+1)
47 #define MOV4(tgt,src) \
48   *((char*)(tgt)  ) = *((char*)(src)  ), \
49   *((char*)(tgt)+1) = *((char*)(src)+1), \
50   *((char*)(tgt)+2) = *((char*)(src)+2), \
51   *((char*)(tgt)+3) = *((char*)(src)+3)
52
53 #endif