/* Miscellaneous types Copyright (c) 2005, 2008, 2011 Rocky Bernstein 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 #elif defined(HAVE_INTTYPES_H) # include #endif /* HAVE_STDINT_H */ #if defined(HAVE_STDBOOL_H) # include #else /* ISO/IEC 9899:1999 missing -- enabling workaround */ # define false 0 # define true 1 # ifndef bool # define bool uint8_t # endif #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; typedef struct child child_t; typedef struct commands commands_t; typedef struct dep dep_t; typedef struct file file_t; typedef struct goaldep goaldep_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: */