home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / tex / texsrc1 / Src / lib / h / c-std < prev    next >
Encoding:
Text File  |  1993-04-29  |  2.2 KB  |  75 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. #ifndef RISCOS /* but ANSI C v4 for RISC OS doesn't have it */
  30. #include <sys/types.h>
  31. #endif
  32.  
  33. /* This is the symbol that X uses to determine if <sys/types.h> has been
  34.    read, so we define it.  */
  35. #define __TYPES__
  36.  
  37. /* X uses this symbol to say whether we have <stddef.h> etc.  */
  38. #ifndef STDC_HEADERS
  39. #define X_NOT_STDC_ENV
  40. #endif
  41.  
  42. /* Be sure we have constants from <unistd.h>.  */
  43. #include "c-unistd.h"
  44.  
  45. /* Include <stdlib.h> first to help avoid NULL redefinitions.  */
  46. #if STDC_HEADERS
  47. #include <stdlib.h>
  48. #include <stddef.h>
  49. #else
  50. extern char *getenv ();
  51. #ifndef ALLOC_RETURN_TYPE
  52. #ifdef DOS
  53. #define ALLOC_RETURN_TYPE void
  54. #else
  55. #define ALLOC_RETURN_TYPE char
  56. #endif /* not DOS */
  57. #endif /* not ALLOC_RETURN_TYPE */
  58. extern ALLOC_RETURN_TYPE *calloc (), *malloc (), *realloc ();
  59. #endif /* not STDC_HEADERS */
  60.  
  61. /* strchr vs. index, memcpy vs. bcopy, etc.  */
  62. #include "c-memstr.h"
  63.  
  64. /* Error numbers and errno declaration.  */
  65. #include "c-errno.h"
  66.  
  67. /* Numeric minima and maxima.  */
  68. #include "c-minmax.h"
  69.  
  70. /* popen is part of POSIX.2, not POSIX.1.  So STDC_HEADERS isn't enough.  */
  71. extern FILE *popen ();
  72. extern double hypot ();
  73.  
  74. #endif /* not C_STD_H */
  75.