listing.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* This file is listing.h
  2. Copyright (C) 1987-2022 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 3, 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 the Free
  14. Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
  15. 02110-1301, USA. */
  16. #ifndef __listing_h__
  17. #define __listing_h__
  18. #define LISTING_LISTING 1
  19. #define LISTING_SYMBOLS 2
  20. #define LISTING_NOFORM 4
  21. #define LISTING_HLL 8
  22. #define LISTING_NODEBUG 16
  23. #define LISTING_NOCOND 32
  24. #define LISTING_MACEXP 64
  25. #define LISTING_GENERAL 128
  26. #define LISTING_DEFAULT (LISTING_LISTING | LISTING_HLL | LISTING_SYMBOLS)
  27. #ifndef NO_LISTING
  28. #define LISTING_NEWLINE() { if (listing) listing_newline (NULL); }
  29. #else
  30. #define LISTING_NEWLINE() {;}
  31. #endif
  32. #define LISTING_EOF() LISTING_NEWLINE()
  33. #define LISTING_SKIP_COND() ((listing & LISTING_NOCOND) != 0)
  34. void listing_eject (int);
  35. void listing_error (const char *message);
  36. void listing_file (const char *name);
  37. void listing_list (int on);
  38. void listing_newline (char *ps);
  39. void listing_prev_line (void);
  40. void listing_print (char *, char **);
  41. void listing_psize (int);
  42. void listing_nopage (int);
  43. void listing_source_file (const char *);
  44. void listing_source_line (unsigned int);
  45. void listing_title (int depth);
  46. void listing_warning (const char *message);
  47. void listing_width (unsigned int x);
  48. extern int listing_lhs_width;
  49. extern int listing_lhs_width_second;
  50. extern int listing_lhs_cont_lines;
  51. extern int listing_rhs_width;
  52. #endif /* __listing_h__ */
  53. /* end of listing.h */