home *** CD-ROM | disk | FTP | other *** search
/ ftp.uv.es / 2014.11.ftp.uv.es.tar / ftp.uv.es / pub / unix / pine4.10.tar.gz / pine4.10.tar / pine4.10 / pico / headers.h < prev    next >
C/C++ Source or Header  |  1999-01-27  |  2KB  |  81 lines

  1. /*======================================================================
  2.   $Id: headers.h,v 1.5 1999/01/27 22:14:21 hubert Exp $
  3.  
  4.        headers.h
  5.  
  6.    The include file to always include that includes a few other things
  7.      -  includes the most general system files and other pine include files
  8.      -  declares the global variables
  9.        
  10.  ====*/
  11.          
  12.  
  13. #ifndef _PICO_HEADERS_INCLUDED
  14. #define _PICO_HEADERS_INCLUDED
  15.  
  16. /*----------------------------------------------------------------------
  17.            Include files
  18.  
  19.  System specific includes and defines are in os.h, the source for which
  20. is os-xxx.h. (Don't edit os.h; edit os-xxx.h instead.)
  21.  ----*/
  22.  
  23. #ifdef    TERMCAP_WINS
  24.    Do not use TERMCAP WINS anymore. This is now set at runtime with
  25.    pico -q, pilot -q, or the pine feature called termdef-takes-precedence.
  26.    You do not need to do anything special while compiling.
  27. #endif    /* TERMCAP_WINS */
  28.  
  29. #include <stdio.h>
  30.  
  31. #include "os.h"
  32.  
  33. /*
  34.  * [Re]Define signal functions as needed...
  35.  */
  36. #ifdef    POSIX_SIGNALS
  37. /*
  38.  * Redefine signal call to our wrapper of POSIX sigaction
  39.  */
  40. #define    signal(SIG,ACT)        posix_signal(SIG,ACT)
  41. #define    our_sigunblock(SIG)    posix_sigunblock(SIG)
  42. #else    /* !POSIX_SIGNALS */
  43. #ifdef    SYSV_SIGNALS
  44. /*
  45.  * Redefine signal calls to SYSV style call.
  46.  */
  47. #define    signal(SIG,ACT)        sigset(SIG,ACT)
  48. #define    our_sigunblock(SIG)    sigrelse(SIG)
  49. #else    /* !SYSV_SIGNALS */
  50. #ifdef    WIN32
  51. #define    signal(SIG,ACT)        mswin_signal(SIG,ACT)
  52. #define    our_sigunblock(SIG)
  53. #else    /* !WIN32 */
  54. /*
  55.  * Good ol' BSD signals.
  56.  */
  57. #define    our_sigunblock(SIG)
  58. #endif /* !WIN32 */
  59. #endif /* !SYSV_SIGNALS */
  60. #endif /* !POSIX_SIGNALS */
  61.  
  62.  
  63. /* These includes are all ANSI, and OK with all other compilers (so far) */
  64. #include <ctype.h>
  65. #include <errno.h>
  66. #include <setjmp.h>
  67.  
  68.  
  69. #ifdef    ANSI
  70. #define    PROTO(args)    args
  71. #else
  72. #define    PROTO(args)    ()
  73. #endif
  74.  
  75. #include "estruct.h"
  76. #include "pico.h"
  77. #include "edef.h"
  78. #include "efunc.h"
  79.  
  80. #endif /* _PICO_HEADERS_INCLUDED */
  81.