/* This file is part of the program psim.
- Copyright (C) 1994-1995, Andrew Cagney <cagney@highland.com.au>
+ Copyright (C) 1994-1997, Andrew Cagney <cagney@highland.com.au>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
} lf_file_references;
-/* Open the file NAME for writing. REAL_NAME is to be included in any
- line number outputs. The output of line number information can be
- suppressed with LINE_NUMBERS */
+/* Open the file NAME for writing ("-" for stdout). Use REAL_NAME
+ when refering to the opened file. Line number information (in the
+ output) can be suppressed with FILE_REFERENCES ==
+ LF_OMIT_REFERENCES. TYPE is to determine the formatting of some of
+ the print messages below. */
extern lf *lf_open
(char *name,
/* Basic output functions */
+extern int lf_write
+(lf *file,
+ const char *string,
+ int len);
+
extern int lf_putchr
(lf *file,
const char ch);
(lf *file);
extern int lf_print__this_file_is_empty
-(lf *file);
+(lf *file,
+ const char *reason);
extern int lf_print__file_finish
(lf *file);
-extern int lf_print__internal_reference
+extern int lf_print__internal_ref
(lf *file);
-extern int lf_print__external_reference
+extern int lf_print__external_ref
(lf *file,
int line_nr,
const char *file_name);
+extern int lf_print__line_ref
+(lf *file,
+ line_ref *line);
+
extern int lf_print__ucase_filename
(lf *file);
-/* Tab prefix is suppressed */
-
-extern int lf_print__c_code
-(lf *file,
- const char *code);
-
-extern int lf_print_function_type
+extern int lf_print__function_type
(lf *file,
const char *type,
const char *prefix,
typedef int print_function(lf *file);
-extern int lf_print_function_type_function
+extern int lf_print__function_type_function
(lf *file,
print_function *print_type,
const char *prefix,