1 /* This file is part of the program psim.
3 Copyright (C) 1994-1995, Andrew Cagney <cagney@highland.com.au>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 /* LF: Line Numbered Output Stream */
24 typedef struct _lf lf
;
27 #if !defined (__attribute__) && (!defined(__GNUC__) || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7))
28 #define __attribute__(arg)
31 /* Open the file NAME for writing. REAL_NAME is to be included in any
32 line number outputs. The output of line number information can be
33 suppressed with LINE_NUMBERS */
43 /* Suppress indentation for the next new line (current if not yet
45 extern void lf_indent_suppress
63 ...) __attribute__((format(printf
, 2, 3)));
65 extern void lf_print_lf_c_line_nr
72 extern void lf_print_copyleft
75 extern void lf_print_binary
80 /* it is assumed that each line of code is prefixed by a tab character
81 that should be suppressed */
82 extern void lf_print_c_code
87 extern void lf_print_c_line_nr