Back to index

tetex-bin  3.0
files.h
Go to the documentation of this file.
00001 /* files.h -- declarations for files.c.
00002    $Id: files.h,v 1.4 2004/07/27 00:06:31 karl Exp $
00003 
00004    Copyright (C) 1998, 2002, 2004 Free Software Foundation, Inc.
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2, or (at your option)
00009    any later version.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with this program; if not, write to the Free Software
00018    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00019    */
00020 
00021 #ifndef FILES_H
00022 #define FILES_H
00023 
00024 /* A stack of file information records.  If a new file is read in with
00025    "@input", we remember the old input file state on this stack. */
00026 typedef struct fstack
00027 {
00028   struct fstack *next;
00029   char *filename;
00030   char *text;
00031   int size;
00032   int offset;
00033   int line_number;
00034 } FSTACK;
00035 extern FSTACK *filestack;
00036 
00037 extern void pushfile (void);
00038 extern void popfile (void);
00039 extern void flush_file_stack (void);
00040 extern char *get_file_info_in_path (char *filename, char *path,
00041     struct stat *finfo);
00042 extern char *find_and_load (char *filename, int use_path);
00043 extern char *output_name_from_input_name (char *name);
00044 extern char *expand_filename (char *filename, char *input_name);
00045 extern char *filename_part (char *filename);
00046 extern char *pathname_part (char *filename);
00047 extern char *normalize_filename (char *fname);
00048 extern void append_to_include_path (char *path);
00049 extern void prepend_to_include_path (char *path);
00050 extern void pop_path_from_include_path (void);
00051 extern void register_delayed_write (char *delayed_command);
00052 extern void handle_delayed_writes (void);
00053 
00054 typedef struct delayed_write
00055 {
00056   struct delayed_write *next;
00057   char *command;
00058   char *filename;
00059   char *input_filename;
00060   char *node;
00061   int position;
00062   int calling_line;
00063 
00064   int node_order;
00065   int index_order;
00066 } DELAYED_WRITE;
00067 
00068 extern int handling_delayed_writes;
00069 
00070 #endif /* !FILES_H */