remake  4.3+dbg-1.5
types.h
Go to the documentation of this file.
1 /*
2 Miscellaneous types
3 Copyright (c) 2005, 2008, 2011 Rocky Bernstein <rocky@gnu.org>
4 
5 This file is part of GNU Make (remake variant).
6 
7 GNU Make 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 Make 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 Make; see the file COPYING. If not, write to
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
21 
28 #ifndef REMAKE_TYPES_H
29 #define REMAKE_TYPES_H
30 
31 #include "config.h"
32 #include "make.h"
33 
34 #define UNUSED_ARGUMENT(x) (void)x
35 
36 #if defined(HAVE_STDINT_H)
37 # include <stdint.h>
38 #elif defined(HAVE_INTTYPES_H)
39 # include <inttypes.h>
40 #endif /* HAVE_STDINT_H */
41 
42 #if defined(HAVE_STDBOOL_H)
43 # include <stdbool.h>
44 #else
45  /* ISO/IEC 9899:1999 <stdbool.h> missing -- enabling workaround */
46 
47 # define false 0
48 # define true 1
49 # ifndef bool
50 # define bool uint8_t
51 # endif
52 #endif /*HAVE_STDBOOL_H*/
53 
55 typedef enum {
56  BRK_NONE = 0x00,
59  BRK_AFTER_CMD = 0x04,
61  BRK_TEMP = 0x08,
63 
64 typedef unsigned int brkpt_mask_t;
65 
66 typedef unsigned long int lineno_t;
67 
68 typedef struct child child_t;
69 typedef struct commands commands_t;
70 typedef struct dep dep_t;
71 typedef struct file file_t;
72 typedef struct goaldep goaldep_t;
73 typedef struct nameseq nameseq_t;
74 typedef struct pattern_var pattern_var_t;
75 typedef struct pspec pspec_t;
76 typedef struct rule rule_t;
77 typedef struct stringlist stringlist_t;
78 typedef struct variable variable_t;
82 
83 #define CALLOC(t, n) ((t *) calloc (sizeof (t), (n)))
84 
85 #endif /*REMAKE_TYPES_H*/
86 /*
87  * Local variables:
88  * eval: (c-set-style "gnu")
89  * indent-tabs-mode: nil
90  * End:
91  */
variable_origin
Definition: variable.h:25
Definition: variable.h:91
Definition: types.h:57
Definition: commands.h:27
Definition: types.h:58
Definition: types.h:59
Definition: variable.h:98
Definition: types.h:60
Definition: variable.h:107
unsigned int brkpt_mask_t
Definition: types.h:64
Definition: rule.h:25
enum variable_origin variable_origin_t
Definition: types.h:79
breakpoint_mask_t
Definition: types.h:55
unsigned long int lineno_t
Definition: types.h:66
Definition: rule.h:41
Definition: dep.h:69
Definition: types.h:61
Definition: job.h:47
The structure used to hold the list of strings given.
Definition: debug.h:84
Definition: types.h:56
Definition: variable.h:56
Definition: dep.h:27
Definition: dep.h:60
Definition: filedef.h:34