| 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 |
#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 |
| 41 |
|
| 42 |
#if defined(HAVE_STDBOOL_H) |
| 43 |
# include <stdbool.h> |
| 44 |
#else |
| 45 |
|
| 46 |
|
| 47 |
# define false 0 |
| 48 |
# define true 1 |
| 49 |
# ifndef bool |
| 50 |
# define bool uint8_t |
| 51 |
# endif |
| 52 |
#endif |
| 53 |
|
| 54 |
|
| 55 |
typedef enum { |
| 56 |
BRK_NONE = 0x00, |
| 57 |
BRK_BEFORE_PREREQ = 0x01, |
| 58 |
BRK_AFTER_PREREQ = 0x02, |
| 59 |
BRK_AFTER_CMD = 0x04, |
| 60 |
BRK_ALL = (BRK_BEFORE_PREREQ|BRK_AFTER_PREREQ|BRK_AFTER_CMD), |
| 61 |
BRK_TEMP = 0x08, |
| 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 |
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|