Main Page | Data Structures | Directories | File List | Data Fields | Globals

fileutil.h

Go to the documentation of this file.
00001 /* ---------------------------------------------------------------------- *
00002  * fileutil.h
00003  * This file is part of lincity.
00004  * Lincity is copyright (c) I J Peters 1995-1997, (c) Greg Sharp 1997-2001.
00005  * ---------------------------------------------------------------------- */
00006 #ifndef __fileutil_h__
00007 #define __fileutil_h__
00008 
00009 extern char *lc_save_dir;
00010 extern char *lc_temp_file;
00011 extern int lc_save_dir_len;
00012 //extern int make_dir_ok_flag;
00013 
00014 /* Try to find the maximum file name from OS */
00015 #if defined (_POSIX_PATH_MAX)          /* Posix */
00016 #define LC_PATH_MAX _POSIX_PATH_MAX
00017 #elif defined (_MAX_PATH)              /* Win32 */
00018 #define LC_PATH_MAX _MAX_PATH
00019 #elif defined (PATH_MAX)               /* X Windows */
00020 #define LC_PATH_MAX PATH_MAX
00021 #else
00022 #define LC_PATH_MAX 4096
00023 #endif
00024 
00025 extern char colour_pal_file[LC_PATH_MAX];
00026 extern char opening_pic[LC_PATH_MAX];
00027 extern char graphic_path[LC_PATH_MAX];
00028 extern char fontfile[LC_PATH_MAX];
00029 extern char opening_path[LC_PATH_MAX];
00030 extern char help_path[LC_PATH_MAX];
00031 extern char message_path[LC_PATH_MAX];
00032 extern char lc_textdomain_directory[LC_PATH_MAX];
00033 extern char lincityrc_file[LC_PATH_MAX];
00034 extern char given_scene[LC_PATH_MAX];
00035 
00036 void gunzip_file (char *f1, char *f2);
00037 int file_exists (char *filename);
00038 int directory_exists (char *dir);
00039 char* load_graphic(char *s);
00040 void undosify_string(char *s);
00041 void load_lincityrc (void);
00042 void save_lincityrc (void);
00043 
00044 void debug_printf (char* fmt, ...);
00045 
00046 #endif  /* __fileutil_h__ */

Generated on Sun Dec 26 11:23:23 2004 for lincity by  doxygen 1.3.9.1