This commit was generated by cvs2svn to track changes on a CVS vendor
[external/binutils.git] / gas / listing.h
1
2 /* This file is listing.h
3    Copyright (C) 1987-1992 Free Software Foundation, Inc.
4
5    This file is part of GAS, the GNU Assembler.
6
7    GAS is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 2, or (at your option)
10    any later version.
11
12    GAS is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with GAS; see the file COPYING.  If not, write to
19    the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
20
21
22 #ifndef __listing_h__
23 #define __listing_h__
24
25 #define LISTING_LISTING    1
26 #define LISTING_SYMBOLS    2
27 #define LISTING_NOFORM     4
28 #define LISTING_HLL        8
29 #define LISTING_NODEBUG   16
30
31 #define LISTING_DEFAULT    (LISTING_LISTING | LISTING_HLL |  LISTING_SYMBOLS)
32
33 #ifndef NO_LISTING
34
35 #define LISTING_NEWLINE() { if (listing) listing_newline(input_line_pointer); }
36
37
38 #if __STDC__ == 1
39
40 void listing_eject (void);
41 void listing_error (char *message);
42 void listing_file (char *name);
43 void listing_flags (void);
44 void listing_list (unsigned int on);
45 void listing_newline (char *ps);
46 void listing_print (char *name);
47 void listing_psize (void);
48 void listing_source_file (char *);
49 void listing_source_line (unsigned int);
50 void listing_title (unsigned int depth);
51 void listing_warning (char *message);
52 void listing_width (unsigned int x);
53
54 #else /* not __STDC__ */
55
56 void listing_eject ();
57 void listing_error ();
58 void listing_file ();
59 void listing_flags ();
60 void listing_list ();
61 void listing_newline ();
62 void listing_print ();
63 void listing_psize ();
64 void listing_source_file ();
65 void listing_source_line ();
66 void listing_title ();
67 void listing_warning ();
68 void listing_width ();
69
70 #endif /* not __STDC__ */
71
72 #else /* NO_LISTING */
73
74 #define LISTING_NEWLINE() {;}
75
76 /* Dummy functions for when compiled without listing enabled */
77
78 #define listing_flags() {;}
79 #define listing_list() {;}
80 #define listing_eject() {;}
81 #define listing_psize() {;}
82 #define listing_title(depth) {;}
83 #define listing_file(name) {;}
84 #define listing_newline(name) {;}
85 #define listing_source_line(n) {;}
86 #define listing_source_file(n) {;}
87
88 #endif /* NO_LISTING */
89
90 #endif /* __listing_h__ */
91
92 /* end of listing.h */