White space and comment changes. #ifdef __STDC__ becomes #if __STDC__
[deliverable/binutils-gdb.git] / gas / listing.h
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. */
19
20
21 #ifndef __listing_h__
22 #define __listing_h__
23
24 #define LISTING_LISTING 1
25 #define LISTING_SYMBOLS 2
26 #define LISTING_NOFORM 4
27 #define LISTING_HLL 8
28 #define LISTING_NODEBUG 16
29
30 #define LISTING_DEFAULT (LISTING_LISTING | LISTING_HLL | LISTING_SYMBOLS)
31
32 #ifndef NO_LISTING
33
34 #define LISTING_NEWLINE() { if (listing) listing_newline(input_line_pointer); }
35
36
37 #if __STDC__ == 1
38
39 void listing_eject(void);
40 void listing_error(char *message);
41 void listing_file(char *name);
42 void listing_flags(void);
43 void listing_list(unsigned int on);
44 void listing_newline(char *ps);
45 void listing_print(char *name);
46 void listing_psize(void);
47 void listing_source_file(char *);
48 void listing_source_line(unsigned int);
49 void listing_title(unsigned int depth);
50 void listing_warning(char *message);
51 void listing_width(unsigned int x);
52
53 #else /* not __STDC__ */
54
55 void listing_eject();
56 void listing_error();
57 void listing_file();
58 void listing_flags();
59 void listing_list();
60 void listing_newline();
61 void listing_print();
62 void listing_psize();
63 void listing_source_file();
64 void listing_source_line();
65 void listing_title();
66 void listing_warning();
67 void 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
91 /* end of listing.h */
This page took 0.032592 seconds and 5 git commands to generate.