home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Source / GNU / gcc / c-lex.h < prev    next >
C/C++ Source or Header  |  1996-04-09  |  2KB  |  100 lines

  1. /* Define constants for communication with c-parse.y.
  2.    Copyright (C) 1987, 1992 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU CC.
  5.  
  6. GNU CC is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU CC is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU CC; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 59 Temple Place - Suite 330,
  19. Boston, MA 02111-1307, USA.  */
  20.  
  21.  
  22.  
  23. enum rid
  24. {
  25.   RID_UNUSED,
  26.   RID_INT,
  27.   RID_CHAR,
  28.   RID_FLOAT,
  29.   RID_DOUBLE,
  30.   RID_VOID,
  31. #if !defined (_WIN32) || !defined (NEXT_PDO) /* avoid having too many enums  */
  32.   RID_UNUSED1,
  33. #endif
  34.  
  35.   RID_UNSIGNED,
  36.   RID_SHORT,
  37.   RID_LONG,
  38.   RID_AUTO,
  39.   RID_STATIC,
  40.   RID_EXTERN,
  41.   RID_REGISTER,
  42.   RID_TYPEDEF,
  43.   RID_SIGNED,
  44.   RID_CONST,
  45.   RID_VOLATILE,
  46.   RID_INLINE,
  47.   RID_NOALIAS,
  48.   RID_ITERATOR,
  49.   RID_COMPLEX,
  50.  
  51.   RID_IN,
  52.   RID_OUT,
  53.   RID_INOUT,
  54.   RID_BYCOPY,
  55. #if defined (NEXT_SEMANTICS) || defined (NEXT_PDO)
  56.   RID_BYREF,
  57. #endif
  58.   RID_ONEWAY,
  59.   RID_ID,
  60. #ifdef NEXT_SEMANTICS
  61.   RID_RELATIVE,
  62.   RID_PRIVATE_EXTERN,
  63.   RID_DIRECT,
  64. #endif
  65. #if defined (_WIN32) && defined (NEXT_PDO)
  66.   RID_STDCALL,
  67.   RID_DECLSPEC,
  68.   RID_DLLIMPORT,
  69.   RID_DLLEXPORT,
  70. #if 0 /* These are not actually needed.  */
  71.   RID_THREAD,
  72.   RID_NAKED,
  73. #endif
  74. #endif
  75.   RID_MAX
  76. };
  77.  
  78. #define NORID RID_UNUSED
  79.  
  80. #define RID_FIRST_MODIFIER RID_UNSIGNED
  81.  
  82. /* The elements of `ridpointers' are identifier nodes
  83.    for the reserved type names and storage classes.
  84.    It is indexed by a RID_... value.  */
  85. extern tree ridpointers[(int) RID_MAX];
  86.  
  87. /* the declaration found for the last IDENTIFIER token read in.
  88.    yylex must look this up to detect typedefs, which get token type TYPENAME,
  89.    so it is left around in case the identifier is not a typedef but is
  90.    used in a context which makes it a reference to a variable.  */
  91. extern tree lastiddecl;
  92.  
  93. extern char *token_buffer;    /* Pointer to token buffer.  */
  94.  
  95. extern tree make_pointer_declarator ();
  96. extern void reinit_parse_for_function ();
  97. extern int yylex ();
  98.  
  99. extern char *get_directive_line ();
  100.