OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [libcpp/] [include/] [cpp-id-data.h] - Diff between revs 38 and 154

Only display areas with differences | Details | Blame | View Log

Rev 38 Rev 154
/* Structures that hang off cpp_identifier, for PCH.
/* Structures that hang off cpp_identifier, for PCH.
   Copyright (C) 1986, 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
   Copyright (C) 1986, 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
   1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
   1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 
 
This program is free software; you can redistribute it and/or modify it
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any
Free Software Foundation; either version 2, or (at your option) any
later version.
later version.
 
 
This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
GNU General Public License for more details.
 
 
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
 
#include "cpplib.h"
#include "cpplib.h"
 
 
#if !defined (HAVE_UCHAR) && !defined (IN_GCC)
#if !defined (HAVE_UCHAR) && !defined (IN_GCC)
typedef unsigned char uchar;
typedef unsigned char uchar;
#endif
#endif
 
 
#define U (const unsigned char *)  /* Intended use: U"string" */
#define U (const unsigned char *)  /* Intended use: U"string" */
 
 
/* Chained list of answers to an assertion.  */
/* Chained list of answers to an assertion.  */
struct answer GTY(())
struct answer GTY(())
{
{
  struct answer *next;
  struct answer *next;
  unsigned int count;
  unsigned int count;
  cpp_token GTY ((length ("%h.count"))) first[1];
  cpp_token GTY ((length ("%h.count"))) first[1];
};
};
 
 
/* Each macro definition is recorded in a cpp_macro structure.
/* Each macro definition is recorded in a cpp_macro structure.
   Variadic macros cannot occur with traditional cpp.  */
   Variadic macros cannot occur with traditional cpp.  */
struct cpp_macro GTY(())
struct cpp_macro GTY(())
{
{
  /* Parameters, if any.  */
  /* Parameters, if any.  */
  cpp_hashnode ** GTY ((nested_ptr (union tree_node,
  cpp_hashnode ** GTY ((nested_ptr (union tree_node,
                "%h ? CPP_HASHNODE (GCC_IDENT_TO_HT_IDENT (%h)) : NULL",
                "%h ? CPP_HASHNODE (GCC_IDENT_TO_HT_IDENT (%h)) : NULL",
                        "%h ? HT_IDENT_TO_GCC_IDENT (HT_NODE (%h)) : NULL"),
                        "%h ? HT_IDENT_TO_GCC_IDENT (HT_NODE (%h)) : NULL"),
                        length ("%h.paramc")))
                        length ("%h.paramc")))
    params;
    params;
 
 
  /* Replacement tokens (ISO) or replacement text (traditional).  See
  /* Replacement tokens (ISO) or replacement text (traditional).  See
     comment at top of cpptrad.c for how traditional function-like
     comment at top of cpptrad.c for how traditional function-like
     macros are encoded.  */
     macros are encoded.  */
  union cpp_macro_u
  union cpp_macro_u
  {
  {
    cpp_token * GTY ((tag ("0"), length ("%0.count"))) tokens;
    cpp_token * GTY ((tag ("0"), length ("%0.count"))) tokens;
    const unsigned char * GTY ((tag ("1"))) text;
    const unsigned char * GTY ((tag ("1"))) text;
  } GTY ((desc ("%1.traditional"))) exp;
  } GTY ((desc ("%1.traditional"))) exp;
 
 
  /* Definition line number.  */
  /* Definition line number.  */
  source_location line;
  source_location line;
 
 
  /* Number of tokens in expansion, or bytes for traditional macros.  */
  /* Number of tokens in expansion, or bytes for traditional macros.  */
  unsigned int count;
  unsigned int count;
 
 
  /* Number of parameters.  */
  /* Number of parameters.  */
  unsigned short paramc;
  unsigned short paramc;
 
 
  /* If a function-like macro.  */
  /* If a function-like macro.  */
  unsigned int fun_like : 1;
  unsigned int fun_like : 1;
 
 
  /* If a variadic macro.  */
  /* If a variadic macro.  */
  unsigned int variadic : 1;
  unsigned int variadic : 1;
 
 
  /* If macro defined in system header.  */
  /* If macro defined in system header.  */
  unsigned int syshdr   : 1;
  unsigned int syshdr   : 1;
 
 
  /* Nonzero if it has been expanded or had its existence tested.  */
  /* Nonzero if it has been expanded or had its existence tested.  */
  unsigned int used     : 1;
  unsigned int used     : 1;
 
 
  /* Indicate which field of 'exp' is in use.  */
  /* Indicate which field of 'exp' is in use.  */
  unsigned int traditional : 1;
  unsigned int traditional : 1;
};
};
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.