read.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* read.h - of read.c
  2. Copyright (C) 1986 Free Software Foundation, Inc.
  3. This file is part of GAS, the GNU Assembler.
  4. GAS is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 1, or (at your option)
  7. any later version.
  8. GAS is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GAS; see the file COPYING. If not, write to
  14. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
  15. extern char * input_line_pointer; /* -> char we are parsing now. */
  16. #define PERMIT_WHITESPACE /* Define to make whitespace be allowed in */
  17. /* many syntactically unnecessary places. */
  18. /* Normally undefined. For compatibility */
  19. /* with ancient GNU cc. */
  20. #undef PERMIT_WHITESPACE
  21. #ifdef PERMIT_WHITESPACE
  22. #define SKIP_WHITESPACE() {if (* input_line_pointer == ' ') ++ input_line_pointer;}
  23. #else
  24. #define SKIP_WHITESPACE() ASSERT( * input_line_pointer != ' ' )
  25. #endif
  26. #define LEX_NAME (1) /* may continue a name */
  27. #define LEX_BEGIN_NAME (2) /* may begin a name */
  28. #define is_name_beginner(c) ( lex_type[c] & LEX_BEGIN_NAME )
  29. #define is_part_of_name(c) ( lex_type[c] & LEX_NAME )
  30. extern char lex_type[];
  31. void read_begin();
  32. void read_end();
  33. void read_a_source_file();
  34. /* end: read.h */