Debian Codegraph @

src/types.h

raw symbols SCIP
1 /*
2 Miscellaneous types
3 Copyright (c) 2005, 2008, 2011 Rocky Bernstein <[email protected]>
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
22 /** \file types.h
23 *
24 * \brief Miscellaneous types
25 */
26
27
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
54 /** Debugger breakpoint type */
55 typedef enum {
56 BRK_NONE = 0x00, /**< Mask when none of the below are set. */
57 BRK_BEFORE_PREREQ = 0x01, /**< Stop after prequisites checking done */
58 BRK_AFTER_PREREQ = 0x02, /**< Stop after prequisites checking done */
59 BRK_AFTER_CMD = 0x04, /**< Stop after running commands */
60 BRK_ALL = (BRK_BEFORE_PREREQ|BRK_AFTER_PREREQ|BRK_AFTER_CMD),
61 BRK_TEMP = 0x08, /**< Temporary or one-time breakpoint */
62 } breakpoint_mask_t;
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;
79 typedef enum variable_origin variable_origin_t;
80 typedef struct variable_set variable_set_t;
81 typedef struct variable_set_list variable_set_list_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 */