1 /* This file is listing.h
2 Copyright (C) 1987-2024 Free Software Foundation, Inc.
4 This file is part of GAS, the GNU Assembler.
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 3, or (at your option)
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.
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 the Free
18 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
24 #define LISTING_LISTING 1
25 #define LISTING_SYMBOLS 2
26 #define LISTING_NOFORM 4
28 #define LISTING_NODEBUG 16
29 #define LISTING_NOCOND 32
30 #define LISTING_MACEXP 64
31 #define LISTING_GENERAL 128
32 #define LISTING_GINSN_SCFI 256
34 #define LISTING_DEFAULT (LISTING_LISTING | LISTING_HLL | LISTING_SYMBOLS)
37 #define LISTING_NEWLINE() { if (listing) listing_newline (NULL); }
39 #define LISTING_NEWLINE() {;}
41 #define LISTING_EOF() LISTING_NEWLINE()
43 #define LISTING_SKIP_COND() ((listing & LISTING_NOCOND) != 0)
45 void listing_eject (int);
46 void listing_error (const char *message
);
47 void listing_file (const char *name
);
48 void listing_list (int on
);
49 void listing_newline (char *ps
);
50 void listing_prev_line (void);
51 void listing_print (char *, char **);
52 void listing_psize (int);
53 void listing_nopage (int);
54 void listing_source_file (const char *);
55 void listing_source_line (unsigned int);
56 void listing_title (int depth
);
57 void listing_warning (const char *message
);
58 void listing_width (unsigned int x
);
60 extern int listing_lhs_width
;
61 extern int listing_lhs_width_second
;
62 extern int listing_lhs_cont_lines
;
63 extern int listing_rhs_width
;
65 #endif /* __listing_h__ */
67 /* end of listing.h */