133965Sjdp/* This file is listing.h
2218822Sdim   Copyright 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1995, 1997, 1998,
3218822Sdim   2003 Free Software Foundation, Inc.
433965Sjdp
533965Sjdp   This file is part of GAS, the GNU Assembler.
633965Sjdp
733965Sjdp   GAS is free software; you can redistribute it and/or modify
833965Sjdp   it under the terms of the GNU General Public License as published by
933965Sjdp   the Free Software Foundation; either version 2, or (at your option)
1033965Sjdp   any later version.
1133965Sjdp
1233965Sjdp   GAS is distributed in the hope that it will be useful,
1333965Sjdp   but WITHOUT ANY WARRANTY; without even the implied warranty of
1433965Sjdp   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1533965Sjdp   GNU General Public License for more details.
1633965Sjdp
1733965Sjdp   You should have received a copy of the GNU General Public License
1833965Sjdp   along with GAS; see the file COPYING.  If not, write to the Free
19218822Sdim   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
20218822Sdim   02110-1301, USA.  */
2133965Sjdp
2233965Sjdp#ifndef __listing_h__
2333965Sjdp#define __listing_h__
2433965Sjdp
2533965Sjdp#define LISTING_LISTING    1
2633965Sjdp#define LISTING_SYMBOLS    2
2733965Sjdp#define LISTING_NOFORM     4
2833965Sjdp#define LISTING_HLL        8
2933965Sjdp#define LISTING_NODEBUG   16
3033965Sjdp#define LISTING_NOCOND	  32
3138889Sjdp#define LISTING_MACEXP	  64
3233965Sjdp
3338889Sjdp#define LISTING_DEFAULT    (LISTING_LISTING | LISTING_HLL | LISTING_SYMBOLS)
3433965Sjdp
3533965Sjdp#ifndef NO_LISTING
3638889Sjdp#define LISTING_NEWLINE() { if (listing) listing_newline(NULL); }
3733965Sjdp#else
3833965Sjdp#define LISTING_NEWLINE() {;}
3933965Sjdp#endif
4060484Sobrien#define LISTING_EOF()     LISTING_NEWLINE()
4133965Sjdp
4233965Sjdp#define LISTING_SKIP_COND() ((listing & LISTING_NOCOND) != 0)
4333965Sjdp
44130561Sobrienvoid listing_eject (int);
45130561Sobrienvoid listing_error (const char *message);
46130561Sobrienvoid listing_file (const char *name);
47130561Sobrienvoid listing_flags (int);
48130561Sobrienvoid listing_list (int on);
49130561Sobrienvoid listing_newline (char *ps);
50130561Sobrienvoid listing_prev_line (void);
51130561Sobrienvoid listing_print (char *name);
52130561Sobrienvoid listing_psize (int);
53130561Sobrienvoid listing_nopage (int);
54130561Sobrienvoid listing_source_file (const char *);
55130561Sobrienvoid listing_source_line (unsigned int);
56130561Sobrienvoid listing_title (int depth);
57130561Sobrienvoid listing_warning (const char *message);
58130561Sobrienvoid listing_width (unsigned int x);
5933965Sjdp
6038889Sjdpextern int listing_lhs_width;
6138889Sjdpextern int listing_lhs_width_second;
6238889Sjdpextern int listing_lhs_cont_lines;
6338889Sjdpextern int listing_rhs_width;
6438889Sjdp
6533965Sjdp#endif /* __listing_h__ */
6633965Sjdp
6733965Sjdp/* end of listing.h */
68