home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2398 / usual.h < prev   
C/C++ Source or Header  |  1990-12-28  |  4KB  |  122 lines

  1. #ifndef __FILE_USUAL_H_SEEN__
  2. #pragma once
  3. #define __FILE_USUAL_H_SEEN__ 1
  4.  
  5.  
  6. #undef    TURBO_CPP_COMPILER
  7. #define   GNU_GPP_COMPILER    1
  8.  
  9. #define   USE_ATT_STYLE_IO_WITH_GNU  1 
  10. #undef    USE_GNU_STYLE_IO_WITH_GNU   
  11.  
  12.  
  13. /* -------------------------  References  ---------------------------------
  14.  
  15. Bjarne Stroustrup (1986), The C++ Programming Language. Reading Massachusetts: 
  16. Addison-Wesley Publishing Company.
  17.  
  18.     Header files:
  19.  
  20.     <complex.h>     p. 123, 173
  21.     <ctype.h>       p.  77, 237
  22.     <math.h>        p.  22, 115
  23.     <signal.h>      p. 126 
  24.     <stdargs.h>     p. 124
  25.     <stream.h>      p.  12, 226
  26.     <string.h>      p. 111
  27.     <vector.h>      p.  35
  28.  
  29.  
  30.  
  31. Kernigham, Brian W., and Dennis M. Ritchie (1988).  The C Programming Language, 
  32. Second Edition.  Englewood Cliffs, New Jersey: Prentice Hall.
  33.  
  34.  
  35.     Appendix B. Standard Library
  36.  
  37.     B1  Input and Output:                <stdio.h>                  p. 241
  38.     B2  Character Class Tests:           <ctype.h>                  p. 248
  39.     B3  String Functions:                <string.h>                 p. 249
  40.     B4  Mathematical Functions:          <math.h>                   p. 250
  41.     B5  Utility Functions:               <stdlib.h>                 p. 251
  42.     B6  Diagnostics                      <assert.h>                 p. 253
  43.     B7  Variable Argument Lists:         <stdarg.h>                 p. 254
  44.     B8  Non-Local Jumps                  <setjump.h>                p. 254
  45.     B9  Signals:                         <signal.h>                 p. 255
  46.     B10 Date and Time Functions          <time.h>                   p. 255
  47.     B11 Implementation-defined Limits:   <limits.h> and <float.h>   p. 257
  48.  
  49. ---------------------------------------------------------------------------*/
  50.  
  51. /*--------------------------- g++ -------------------------------------------
  52.  
  53. GNU's g++ follows Stroustrup.  These are the g++ equivalents together with 
  54. their dependencies.
  55.  
  56. <Complex.h>
  57.   <File.h> <builtin.h> <errno.h> <istream.h> <math.h> <math-68881.h>
  58.   <ostream.h> <std.h> <stddef.h> <stdio.h> <stream.h> <streambuf.h> 
  59.   <values.h>
  60.  
  61. <ctype.h>
  62.   <stdio.h>
  63.  
  64. <math.h>
  65.   <errno.h> <math-68881.h> <std.h> <stddef.h> <stdio.h> 
  66.  
  67. <signal.h>
  68.   <sys/signal.h>
  69.  
  70. <std.h>
  71.   <stdio.h> <stddef.h>
  72.  
  73. <stream.h>
  74.   <File.h> <builtin.h> <errno.h> <istream.h> <math.h> <math-68881.h>  
  75.   <ostream.h> <std.h> <stddef.h> <stdio.h> <streambuf.h> <values.h>
  76.  
  77. <string.h>
  78.   <std.h> <stddef.h> <stdio.h>
  79.  
  80. <Vec.hP> & <Vec.ccP>
  81.   <stream.h>
  82.  
  83. The USE_ATT_STYLE_IO_WITH_GNU option uses the streambuf class which conforms 
  84. to Chapter 8 of Stroustrup.  
  85.  
  86. The USE_GNU_STYLE_IO_WITH_GNU option uses the File class.  This is unreliable,
  87. piping sometimes corrupts I/O for example, but this is all there is on older
  88. releases of g++.
  89.  
  90. ----------------------------------------------------------------------------*/
  91.  
  92. #ifdef GNU_GPP_COMPILER
  93. #include <stream.h>
  94. #endif 
  95.  
  96.  
  97. /*---------------------------- Turbo C++ ------------------------------------
  98.  
  99. Turbo C++ uses a tiresome mixture of ANSI C headers and Stroustrup headers.  
  100. See page 155 of the Turbo C++ Programmers Guide for a description.
  101.  
  102. ----------------------------------------------------------------------------*/ 
  103.  
  104. #ifdef TURBO_CPP_COMPILER
  105. #include <iostreams.h>
  106. #include <fstream.h>
  107. #include <stdio.h>
  108. #include <string.h>
  109. #include <math.h>
  110. #include <stdlib.h>
  111. #endif  
  112.  
  113. #define LINESIZE  80         // define linesize for output routines
  114.  
  115. typedef long int  INTEGER;   // define precision of integer arithmetic
  116. typedef double    REAL;      // define precision of floating point arithmetic
  117.  
  118. typedef void (*ONE_ARG_ERROR_HANDLER_T)(const char*);              
  119. typedef void (*TWO_ARG_ERROR_HANDLER_T)(const char*, const char*);
  120.  
  121. #endif /*__FILE_USUAL_H_SEEN__*/
  122.