1163533Simp/* This file is listing.h
2163533Simp   Copyright 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1995, 1997, 1998,
3163533Simp   2003 Free Software Foundation, Inc.
4163533Simp
5163533Simp   This file is part of GAS, the GNU Assembler.
6163533Simp
7163533Simp   GAS is free software; you can redistribute it and/or modify
8163533Simp   it under the terms of the GNU General Public License as published by
9163533Simp   the Free Software Foundation; either version 2, or (at your option)
10163533Simp   any later version.
11163533Simp
12163533Simp   GAS is distributed in the hope that it will be useful,
13163533Simp   but WITHOUT ANY WARRANTY; without even the implied warranty of
14163533Simp   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15163533Simp   GNU General Public License for more details.
16163533Simp
17163533Simp   You should have received a copy of the GNU General Public License
18163533Simp   along with GAS; see the file COPYING.  If not, write to the Free
19163533Simp   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
20163533Simp   02110-1301, USA.  */
21163533Simp
22163533Simp#ifndef __listing_h__
23163533Simp#define __listing_h__
24163533Simp
25164137Simp#define LISTING_LISTING    1
26164137Simp#define LISTING_SYMBOLS    2
27164137Simp#define LISTING_NOFORM     4
28164137Simp#define LISTING_HLL        8
29163533Simp#define LISTING_NODEBUG   16
30163533Simp#define LISTING_NOCOND	  32
31163533Simp#define LISTING_MACEXP	  64
32163533Simp
33163533Simp#define LISTING_DEFAULT    (LISTING_LISTING | LISTING_HLL | LISTING_SYMBOLS)
34163533Simp
35163533Simp#ifndef NO_LISTING
36163533Simp#define LISTING_NEWLINE() { if (listing) listing_newline(NULL); }
37163533Simp#else
38163533Simp#define LISTING_NEWLINE() {;}
39163533Simp#endif
40#define LISTING_EOF()     LISTING_NEWLINE()
41
42#define LISTING_SKIP_COND() ((listing & LISTING_NOCOND) != 0)
43
44void listing_eject (int);
45void listing_error (const char *message);
46void listing_file (const char *name);
47void listing_flags (int);
48void listing_list (int on);
49void listing_newline (char *ps);
50void listing_prev_line (void);
51void listing_print (char *name);
52void listing_psize (int);
53void listing_nopage (int);
54void listing_source_file (const char *);
55void listing_source_line (unsigned int);
56void listing_title (int depth);
57void listing_warning (const char *message);
58void listing_width (unsigned int x);
59
60extern int listing_lhs_width;
61extern int listing_lhs_width_second;
62extern int listing_lhs_cont_lines;
63extern int listing_rhs_width;
64
65#endif /* __listing_h__ */
66
67/* end of listing.h */
68