home *** CD-ROM | disk | FTP | other *** search
/ James Briskly's Game Magazine 2 / JBGM002S.ZIP / SOURCE / GLOBAL.H < prev    next >
C/C++ Source or Header  |  1995-08-22  |  2KB  |  71 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.4 1995/01/19 00:01:25 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.  
  36. #include "types.h"
  37. #include "hdstruct.h"
  38. #include "primpart.h"
  39.  
  40. struct global_vars
  41. {
  42.     boolean test_mode;
  43.     boolean verbose_mode;
  44.     boolean debug_mode;
  45.  
  46.     int drive_number_cmdline;
  47.  
  48.     FILE *debugfile;
  49.     void open_debugfile (int argc,char *argv[]);
  50.  
  51.     global_vars (void);
  52.     ~global_vars (void);
  53. };
  54.  
  55. extern global_vars global;
  56.  
  57. void printx (char *fmt,...);
  58. int getx (void);
  59. void error (char *message,...);
  60. void warning (boolean wait_key, char *message,...);
  61. void infomsg (char *message,...);
  62.  
  63. void hexwrite (byte *buffer,int number,FILE *file);
  64.  
  65. void exit_function (void);
  66. void notice (void);
  67. void evaluate_argument_vector (int argc,char *argv[]);
  68. void save_root_and_boot (harddrive *drive,partition *partition);
  69.  
  70. #endif
  71.