* configure.in: Make sure that CC is undefined (as opposed to
[deliverable/binutils-gdb.git] / gas / listing.h
... / ...
CommitLineData
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
40void listing_eject (void);
41void listing_error (char *message);
42void listing_file (char *name);
43void listing_flags (void);
44void listing_list (unsigned int on);
45void listing_newline (char *ps);
46void listing_print (char *name);
47void listing_psize (void);
48void listing_source_file (char *);
49void listing_source_line (unsigned int);
50void listing_title (unsigned int depth);
51void listing_warning (char *message);
52void listing_width (unsigned int x);
53
54#else /* not __STDC__ */
55
56void listing_eject ();
57void listing_error ();
58void listing_file ();
59void listing_flags ();
60void listing_list ();
61void listing_newline ();
62void listing_print ();
63void listing_psize ();
64void listing_source_file ();
65void listing_source_line ();
66void listing_title ();
67void listing_warning ();
68void 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 */
This page took 0.024148 seconds and 4 git commands to generate.