home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / f2csrc.zip / f2csrc / src / sysdep.h < prev    next >
C/C++ Source or Header  |  1994-07-01  |  3KB  |  99 lines

  1. /****************************************************************
  2. Copyright 1990, 1991, 1994 by AT&T Bell Laboratories, Bellcore.
  3.  
  4. Permission to use, copy, modify, and distribute this software
  5. and its documentation for any purpose and without fee is hereby
  6. granted, provided that the above copyright notice appear in all
  7. copies and that both that the copyright notice and this
  8. permission notice and warranty disclaimer appear in supporting
  9. documentation, and that the names of AT&T Bell Laboratories or
  10. Bellcore or any of their entities not be used in advertising or
  11. publicity pertaining to distribution of the software without
  12. specific, written prior permission.
  13.  
  14. AT&T and Bellcore disclaim all warranties with regard to this
  15. software, including all implied warranties of merchantability
  16. and fitness.  In no event shall AT&T or Bellcore be liable for
  17. any special, indirect or consequential damages or any damages
  18. whatsoever resulting from loss of use, data or profits, whether
  19. in an action of contract, negligence or other tortious action,
  20. arising out of or in connection with the use or performance of
  21. this software.
  22. ****************************************************************/
  23.  
  24. /* This file is included at the start of defs.h; this file
  25.  * is an initial attempt to gather in one place some declarations
  26.  * that may need to be tweaked on some systems.
  27.  */
  28.  
  29. #ifdef __STDC__
  30. #undef KR_headers
  31. #endif
  32.  
  33. #ifndef KR_headers
  34. #ifndef ANSI_Libraries
  35. #define ANSI_Libraries
  36. #endif
  37. #ifndef ANSI_Prototypes
  38. #define ANSI_Prototypes
  39. #endif
  40. #endif
  41.  
  42. #ifdef __BORLANDC__
  43. #define MSDOS
  44. #endif
  45.  
  46. #ifdef __ZTC__    /* Zortech */
  47. #define MSDOS
  48. #endif
  49.  
  50. #ifdef MSDOS
  51. #define ANSI_Libraries
  52. #define ANSI_Prototypes
  53. #define LONG_CAST (long)
  54. #else
  55. #define LONG_CAST
  56. #endif
  57.  
  58. #include <stdio.h>
  59.  
  60. #ifdef ANSI_Libraries
  61. #include <stddef.h>
  62. #include <stdlib.h>
  63. #else
  64. char *calloc(), *malloc(), *memcpy(), *memset(), *realloc();
  65. typedef int size_t;
  66. #ifndef atol
  67.     long atol();
  68. #endif
  69.  
  70. #ifdef ANSI_Prototypes
  71. extern double atof(const char *);
  72. extern double strtod(const char*, char**);
  73. #else
  74. extern double atof(), strtod();
  75. #endif
  76. #endif
  77.  
  78. /* On systems like VMS where fopen might otherwise create
  79.  * multiple versions of intermediate files, you may wish to
  80.  * #define scrub(x) unlink(x)
  81.  */
  82. #ifndef scrub
  83. #define scrub(x) /* do nothing */
  84. #endif
  85.  
  86. /* On systems that severely limit the total size of statically
  87.  * allocated arrays, you may need to change the following to
  88.  *    extern char **chr_fmt, *escapes, **str_fmt;
  89.  * and to modify sysdep.c appropriately
  90.  */
  91. extern char *chr_fmt[], escapes[], *str_fmt[];
  92.  
  93. #include <string.h>
  94.  
  95. #include "ctype.h"
  96.  
  97. #define Table_size 256
  98. /* Table_size should be 1 << (bits/byte) */
  99.