home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / tex / texsrc1 / Src / lib / old-h / c-std < prev    next >
Encoding:
Text File  |  1993-01-03  |  2.1 KB  |  73 lines

  1. /* c-std.h: the first header files.
  2.  
  3. Copyright (C) 1992 Free Software Foundation, Inc.
  4.  
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18.  
  19. #ifndef C_STD_H
  20. #define C_STD_H
  21.  
  22. /* Header files that essentially all of our sources need, and
  23.    that all implementations have.  We include these first, to help with
  24.    NULL being defined multiple times.  */
  25. #include <math.h>
  26. #include <stdio.h>
  27.  
  28. /* POSIX.1 says that <unistd.h> may require <sys/types.h>.  */
  29. #include <sys/types.h>
  30.  
  31. /* This is the symbol that X uses to determine if <sys/types.h> has been
  32.    read, so we define it.  */
  33. #define __TYPES__
  34.  
  35. /* X uses this symbol to say whether we have <stddef.h> etc.  */
  36. #ifndef STDC_HEADERS
  37. #define X_NOT_STDC_ENV
  38. #endif
  39.  
  40. /* Be sure we have constants from <unistd.h>.  */
  41. #include "c-unistd.h"
  42.  
  43. /* Include <stdlib.h> first to help avoid NULL redefinitions.  */
  44. #if STDC_HEADERS
  45. #include <stdlib.h>
  46. #include <stddef.h>
  47. #else
  48. extern char *getenv ();
  49. #ifndef ALLOC_RETURN_TYPE
  50. #ifdef DOS
  51. #define ALLOC_RETURN_TYPE void
  52. #else
  53. #define ALLOC_RETURN_TYPE char
  54. #endif /* not DOS */
  55. #endif /* not ALLOC_RETURN_TYPE */
  56. extern ALLOC_RETURN_TYPE *calloc (), *malloc (), *realloc ();
  57. #endif /* not STDC_HEADERS */
  58.  
  59. /* strchr vs. index, memcpy vs. bcopy, etc.  */
  60. #include "c-memstr.h"
  61.  
  62. /* Error numbers and errno declaration.  */
  63. #include "c-errno.h"
  64.  
  65. /* Numeric minima and maxima.  */
  66. #include "c-minmax.h"
  67.  
  68. /* popen is part of POSIX.2, not POSIX.1.  So STDC_HEADERS isn't enough.  */
  69. extern FILE *popen ();
  70. extern double hypot ();
  71.  
  72. #endif /* not C_STD_H */
  73.