Remove texinfo from base
[dragonfly.git] / contrib / texinfo / makeinfo / files.h
1 /* files.h -- declarations for files.c.
2    $Id: files.h,v 1.7 2007/07/01 21:20:32 karl Exp $
3
4    Copyright (C) 1998, 2002, 2004, 2007 Free Software Foundation, Inc.
5
6    This program 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 3 of the License, or
9    (at your option) any later version.
10
11    This program 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.
15
16    You should have received a copy of the GNU General Public License
17    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
18
19 #ifndef FILES_H
20 #define FILES_H
21
22 /* A stack of file information records.  If a new file is read in with
23    "@input", we remember the old input file state on this stack. */
24 typedef struct fstack
25 {
26   struct fstack *next;
27   char *filename;
28   char *text;
29   int size;
30   int offset;
31   int line_number;
32 } FSTACK;
33 extern FSTACK *filestack;
34
35 extern void pushfile (void);
36 extern void popfile (void);
37 extern void flush_file_stack (void);
38 extern char *get_file_info_in_path (char *filename, char *path,
39     struct stat *finfo);
40 extern char *find_and_load (char *filename, int use_path);
41 extern char *output_name_from_input_name (char *name);
42 extern char *expand_filename (char *filename, char *input_name);
43 extern char *filename_part (char *filename);
44 extern char *pathname_part (char *filename);
45 extern char *normalize_filename (char *fname);
46 extern void append_to_include_path (char *path);
47 extern void prepend_to_include_path (char *path);
48 extern void pop_path_from_include_path (void);
49 extern void register_delayed_write (char *delayed_command);
50 extern void handle_delayed_writes (void);
51
52 typedef struct delayed_write
53 {
54   struct delayed_write *next;
55   char *command;
56   char *filename;
57   char *input_filename;
58   char *node;
59   int position;
60   int calling_line;
61
62   int node_order;
63   int index_order;
64 } DELAYED_WRITE;
65
66 extern int handling_delayed_writes;
67
68 #endif /* !FILES_H */