2 /* This file is listing.h
3 Copyright (C) 1987-1992 Free Software Foundation, Inc.
5 This file is part of GAS, the GNU Assembler.
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)
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.
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. */
25 #define LISTING_LISTING 1
26 #define LISTING_SYMBOLS 2
27 #define LISTING_NOFORM 4
29 #define LISTING_NODEBUG 16
31 #define LISTING_DEFAULT (LISTING_LISTING | LISTING_HLL | LISTING_SYMBOLS)
35 #define LISTING_NEWLINE() { if (listing) listing_newline(input_line_pointer); }
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
);
54 #else /* not __STDC__ */
56 void listing_eject ();
57 void listing_error ();
59 void listing_flags ();
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 ();
70 #endif /* not __STDC__ */
72 #else /* NO_LISTING */
74 #define LISTING_NEWLINE() {;}
76 /* Dummy functions for when compiled without listing enabled */
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) {;}
88 #endif /* NO_LISTING */
90 #endif /* __listing_h__ */
92 /* end of listing.h */
This page took 0.03017 seconds and 4 git commands to generate.