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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
/*
Miscellaneous types
Copyright (c) 2005, 2008, 2011 Rocky Bernstein <rocky@gnu.org>
This file is part of GNU Make (remake variant).
GNU Make is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Make is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Make; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/** \file types.h
*
* \brief Miscellaneous types
*/
#ifndef REMAKE_TYPES_H
#define REMAKE_TYPES_H
#include "config.h"
#include "make.h"
#define UNUSED_ARGUMENT(x) (void)x
#if defined(HAVE_STDINT_H)
# include <stdint.h>
#elif defined(HAVE_INTTYPES_H)
# include <inttypes.h>
#endif /* HAVE_STDINT_H */
#if defined(HAVE_STDBOOL_H)
# include <stdbool.h>
#else
/* ISO/IEC 9899:1999 <stdbool.h> missing -- enabling workaround */
# define false 0
# define true 1
# define bool uint8_t
#endif /*HAVE_STDBOOL_H*/
/** Debugger breakpoint type */
typedef enum {
BRK_NONE = 0x00, /**< Mask when none of the below are set. */
BRK_BEFORE_PREREQ = 0x01, /**< Stop after prequisites checking done */
BRK_AFTER_PREREQ = 0x02, /**< Stop after prequisites checking done */
BRK_AFTER_CMD = 0x04, /**< Stop after running commands */
BRK_ALL = (BRK_BEFORE_PREREQ|BRK_AFTER_PREREQ|BRK_AFTER_CMD),
BRK_TEMP = 0x08, /**< Temporary or one-time breakpoint */
} breakpoint_mask_t;
typedef unsigned int brkpt_mask_t;
typedef unsigned long int lineno_t;
#define NILF ((struct floc *)0)
typedef struct child child_t;
typedef struct commands commands_t;
typedef struct dep dep_t;
typedef struct file file_t;
typedef struct floc floc_t;
typedef struct nameseq nameseq_t;
typedef struct pattern_var pattern_var_t;
typedef struct pspec pspec_t;
typedef struct rule rule_t;
typedef struct stringlist stringlist_t;
typedef struct variable variable_t;
typedef enum variable_origin variable_origin_t;
typedef struct variable_set variable_set_t;
typedef struct variable_set_list variable_set_list_t;
#define CALLOC(t, n) ((t *) calloc (sizeof (t), (n)))
#endif /*REMAKE_TYPES_H*/
/*
* Local variables:
* eval: (c-set-style "gnu")
* indent-tabs-mode: nil
* End:
*/
|