* language.h (PRINT_LITERAL_FORM): New macro that takes character
[deliverable/binutils-gdb.git] / gas / listing.h
CommitLineData
3340f7e5
RP
1/* This file is listing.h
2 Copyright (C) 1987-1992 Free Software Foundation, Inc.
3
4 This file is part of GAS, the GNU Assembler.
5
6 GAS 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 GAS 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 GAS; see the file COPYING. If not, write to
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
5d9f0ecf 19
3340f7e5
RP
20
21#ifndef __listing_h__
22#define __listing_h__
5d9f0ecf
SC
23
24#define LISTING_LISTING 1
25#define LISTING_SYMBOLS 2
26#define LISTING_NOFORM 4
8b228fe9
RP
27#define LISTING_HLL 8
28#define LISTING_NODEBUG 16
5d9f0ecf 29
8b228fe9 30#define LISTING_DEFAULT (LISTING_LISTING | LISTING_HLL | LISTING_SYMBOLS)
5d9f0ecf 31
3340f7e5
RP
32#ifndef NO_LISTING
33
34#define LISTING_NEWLINE() { if (listing) listing_newline(input_line_pointer); }
35
36
37#if __STDC__ == 1
38
39void listing_eject(void);
40void listing_error(char *message);
41void listing_file(char *name);
42void listing_flags(void);
43void listing_list(unsigned int on);
44void listing_newline(char *ps);
45void listing_print(char *name);
46void listing_psize(void);
47void listing_source_file(char *);
48void listing_source_line(unsigned int);
49void listing_title(unsigned int depth);
50void listing_warning(char *message);
51void listing_width(unsigned int x);
52
53#else /* not __STDC__ */
54
55void listing_eject();
56void listing_error();
57void listing_file();
58void listing_flags();
59void listing_list();
60void listing_newline();
61void listing_print();
62void listing_psize();
63void listing_source_file();
64void listing_source_line();
65void listing_title();
66void listing_warning();
67void listing_width();
68
69#endif /* not __STDC__ */
70
71#else /* not NO_LISTING */
72
73#define LISTING_NEWLINE() {;}
74
75/* Dummy functions for when compiled without listing enabled */
76
77#define listing_flags() {;]
78#define listing_list() {;]
79#define listing_eject() {;]
80#define listing_psize() {;]
81#define listing_title(depth) {;]
82#define listing_file(name) {;]
83#define listing_newline(name) {;]
84#define listing_source_line(n) {;]
85#define listing_source_file(n) [;]
86
87#endif /* not NO_LISTING */
88
89#endif /* __listing_h__ */
90
8b228fe9 91/* end of listing.h */
This page took 0.04425 seconds and 4 git commands to generate.