1*a9fa9459Szrj /* This file is listing.h
2*a9fa9459Szrj    Copyright (C) 1987-2016 Free Software Foundation, Inc.
3*a9fa9459Szrj 
4*a9fa9459Szrj    This file is part of GAS, the GNU Assembler.
5*a9fa9459Szrj 
6*a9fa9459Szrj    GAS is free software; you can redistribute it and/or modify
7*a9fa9459Szrj    it under the terms of the GNU General Public License as published by
8*a9fa9459Szrj    the Free Software Foundation; either version 3, or (at your option)
9*a9fa9459Szrj    any later version.
10*a9fa9459Szrj 
11*a9fa9459Szrj    GAS is distributed in the hope that it will be useful,
12*a9fa9459Szrj    but WITHOUT ANY WARRANTY; without even the implied warranty of
13*a9fa9459Szrj    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*a9fa9459Szrj    GNU General Public License for more details.
15*a9fa9459Szrj 
16*a9fa9459Szrj    You should have received a copy of the GNU General Public License
17*a9fa9459Szrj    along with GAS; see the file COPYING.  If not, write to the Free
18*a9fa9459Szrj    Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
19*a9fa9459Szrj    02110-1301, USA.  */
20*a9fa9459Szrj 
21*a9fa9459Szrj #ifndef __listing_h__
22*a9fa9459Szrj #define __listing_h__
23*a9fa9459Szrj 
24*a9fa9459Szrj #define LISTING_LISTING    1
25*a9fa9459Szrj #define LISTING_SYMBOLS    2
26*a9fa9459Szrj #define LISTING_NOFORM     4
27*a9fa9459Szrj #define LISTING_HLL        8
28*a9fa9459Szrj #define LISTING_NODEBUG   16
29*a9fa9459Szrj #define LISTING_NOCOND    32
30*a9fa9459Szrj #define LISTING_MACEXP    64
31*a9fa9459Szrj #define LISTING_GENERAL  128
32*a9fa9459Szrj 
33*a9fa9459Szrj #define LISTING_DEFAULT    (LISTING_LISTING | LISTING_HLL | LISTING_SYMBOLS)
34*a9fa9459Szrj 
35*a9fa9459Szrj #ifndef NO_LISTING
36*a9fa9459Szrj #define LISTING_NEWLINE() { if (listing) listing_newline (NULL); }
37*a9fa9459Szrj #else
38*a9fa9459Szrj #define LISTING_NEWLINE() {;}
39*a9fa9459Szrj #endif
40*a9fa9459Szrj #define LISTING_EOF()     LISTING_NEWLINE()
41*a9fa9459Szrj 
42*a9fa9459Szrj #define LISTING_SKIP_COND() ((listing & LISTING_NOCOND) != 0)
43*a9fa9459Szrj 
44*a9fa9459Szrj void listing_eject (int);
45*a9fa9459Szrj void listing_error (const char *message);
46*a9fa9459Szrj void listing_file (const char *name);
47*a9fa9459Szrj void listing_list (int on);
48*a9fa9459Szrj void listing_newline (char *ps);
49*a9fa9459Szrj void listing_prev_line (void);
50*a9fa9459Szrj void listing_print (char *, char **);
51*a9fa9459Szrj void listing_psize (int);
52*a9fa9459Szrj void listing_nopage (int);
53*a9fa9459Szrj void listing_source_file (const char *);
54*a9fa9459Szrj void listing_source_line (unsigned int);
55*a9fa9459Szrj void listing_title (int depth);
56*a9fa9459Szrj void listing_warning (const char *message);
57*a9fa9459Szrj void listing_width (unsigned int x);
58*a9fa9459Szrj 
59*a9fa9459Szrj extern int listing_lhs_width;
60*a9fa9459Szrj extern int listing_lhs_width_second;
61*a9fa9459Szrj extern int listing_lhs_cont_lines;
62*a9fa9459Szrj extern int listing_rhs_width;
63*a9fa9459Szrj 
64*a9fa9459Szrj #endif /* __listing_h__ */
65*a9fa9459Szrj 
66*a9fa9459Szrj /* end of listing.h */
67