1 /* This file is listing.h
2 Copyright (C) 1987, 1988, 1989, 1990, 1991, 1992 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 2, 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
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
27 #define LISTING_LISTING 1
28 #define LISTING_SYMBOLS 2
29 #define LISTING_NOFORM 4
31 #define LISTING_NODEBUG 16
33 #define LISTING_DEFAULT (LISTING_LISTING | LISTING_HLL | LISTING_SYMBOLS)
36 #define LISTING_NEWLINE() { if (listing) listing_newline(input_line_pointer); }
38 #define LISTING_NEWLINE() {;}
42 /* This structure remembers which .s were used */
43 typedef struct file_info_struct
48 struct file_info_struct *next;
56 /* this structure rememebrs which line from which file goes into which
58 typedef struct list_info_struct
60 /* Frag which this line of source is nearest to */
62 /* The actual line in the source file */
64 /* Pointer to the file info struct for the file which this line
69 struct list_info_struct *next;
72 /* Pointer to the file info struct for the high level language
73 source line that belongs here */
74 file_info_type *hll_file;
76 /* High level language source line */
80 /* Pointer to any error message associated with this line */
98 void listing_eject PARAMS ((int));
99 void listing_error PARAMS ((const char *message));
100 void listing_file PARAMS ((const char *name));
101 void listing_flags PARAMS ((int));
102 void listing_list PARAMS ((int on));
103 void listing_newline PARAMS ((char *ps));
104 void listing_prev_line PARAMS ((void));
105 void listing_print PARAMS ((char *name));
106 void listing_psize PARAMS ((int));
107 void listing_source_file PARAMS ((const char *));
108 void listing_source_line PARAMS ((unsigned int));
109 void listing_title PARAMS ((int depth));
110 void listing_warning PARAMS ((const char *message));
111 void listing_width PARAMS ((unsigned int x));
113 #endif /* __listing_h__ */
115 /* end of listing.h */