home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 8 / CDACTUAL8.iso / install / fips / source / global.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-11  |  2.0 KB  |  77 lines

  1. /* 
  2.     FIPS - the First nondestructive Interactive Partition Splitting program 
  3.  
  4.     Module disk_io.cpp 
  5.  
  6.     RCS - Header: 
  7.     $Header: c:/daten/fips/source/main/RCS/global.h 1.1 1994/05/25 22:20:23 schaefer Exp schaefer $ 
  8.  
  9.     Copyright (C) 1993 Arno Schaefer 
  10.  
  11.     This program is free software; you can redistribute it and/or modify 
  12.     it under the terms of the GNU General Public License as published by 
  13.     the Free Software Foundation; either version 2 of the License, or 
  14.     (at your option) any later version. 
  15.  
  16.     This program is distributed in the hope that it will be useful, 
  17.     but WITHOUT ANY WARRANTY; without even the implied warranty of 
  18.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
  19.     GNU General Public License for more details. 
  20.  
  21.     You should have received a copy of the GNU General Public License 
  22.     along with this program; if not, write to the Free Software 
  23.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
  24.  
  25.  
  26.     Report problems and direct all questions to: 
  27.  
  28.     schaefer@rbg.informatik.th-darmstadt.de 
  29. */ 
  30.  
  31. #ifndef GLOBAL_H 
  32. #define GLOBAL_H 
  33.  
  34. #include <stdio.h> 
  35. #include "types.h" 
  36. #include "hdstruct.h" 
  37.  
  38. struct global_vars 
  39.     boolean test_mode; 
  40.     boolean verbose_mode; 
  41.     boolean debug_mode; 
  42.  
  43.     boolean override_multiple_boot; 
  44.     boolean override_bootable_flag; 
  45.     boolean override_rootdir_entries; 
  46.     boolean override_large_fat; 
  47.     boolean override_small_fat; 
  48.     boolean override_media_descriptor; 
  49.  
  50.     int drive_number_cmdline; 
  51.     int partition_number_cmdline; 
  52.     dword new_start_cylinder_cmdline; 
  53.  
  54.     FILE *debugfile; 
  55.     void open_debugfile (int argc,char *argv[]); 
  56.  
  57.     global_vars (void); 
  58.     ~global_vars (void); 
  59. }; 
  60.  
  61. extern global_vars global; 
  62.  
  63. void printx (char *fmt,...); 
  64. int getx (void); 
  65. void error (char *message,...); 
  66. void warning (char *message,...); 
  67.  
  68. void hexwrite (byte *buffer,int number,FILE *file); 
  69.  
  70. void exit_function (void); 
  71. void notice (void); 
  72. void evaluate_argument_vector (int argc,char *argv[]); 
  73. void save_root_and_boot (harddrive *drive,partition *partition); 
  74.  
  75. #endif 
  76.