home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / tcl / expecTerm / compat.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-17  |  2.7 KB  |  83 lines  |  [TEXT/MPS ]

  1. /* compat.c
  2. ***************************************************************************** 
  3. expecTerm version 1.0 beta
  4. Mark Weissman
  5. Christopher Matheus
  6. Copyright 1992 by GTE Laboratories Incorporated.
  7.  
  8. Portions of this work are in the public domain.  Permission to use,
  9. copy, modify, and distribute this software and its documentation for
  10. any purpose and without fee is hereby granted, provided that the above
  11. copyright notice appear in all copies and that both the copyright
  12. notice and warranty disclaimer appear in supporting documentation, and
  13. that the names of GTE Laboratories or any of their entities not be
  14. used in advertising or publicity pertaining to distribution of the
  15. software without specific, written prior permission.
  16.  
  17. GTE disclaims all warranties with regard to this software, including
  18. all implied warranties of merchantability and fitness for a particular
  19. purpose, even if GTE Laboratories Incorporated knows about the
  20. purpose.  In no event shall GTE be liable for any special, indirect or
  21. consequential damages or any damages whatsoever resulting from loss of
  22. use, data or profits, whether in an action of contract, negligence or
  23. other tortuous action, arising out of or in connection with the use or
  24. performance of this software.
  25.  
  26. This code is based on and may include parts of Don Libes' expect code:
  27.   expect written by: Don Libes, NIST, 2/6/90
  28.   Design and implementation of expect was paid for by U.S. tax
  29.   dollars.  Therefore it is public domain.  However, the author and NIST
  30.   would appreciate credit if this program or parts of it are used.
  31.  
  32. ******************************************************************************/
  33.  
  34. #ifndef COMPAT_INCLUDED
  35.  
  36. #ifdef _AIX
  37. #include <sys/limits.h>
  38. #include <sys/select.h>
  39. #include <sys/mode.h>
  40. #include <sys/ioctl.h>
  41. #include <curses.h>
  42. #include <termio.h>
  43. #define FALSE 0
  44. #define TRUE 1
  45. #define curs_set(X) NULL
  46. typedef struct term TERMINAL;
  47. #define set_curterm(NEW) (cur_term = NEW)
  48. #define keypad(WIN, FLAG) ((WIN)->_use_keypad=FLAG)
  49. #define meta(WIN, FLAG) ((WIN)->_use_meta=FLAG)
  50. #endif
  51.  
  52. #ifdef _DEC
  53. #include <termios.h>
  54. #include <sys/limits.h>
  55. #include <cursesX.h>
  56. #include <sys/ioctl.h>
  57. #define curs_set(X) NULL
  58. #define ualarm(X,Y) Ualarm(X,Y) /* for machines w/o ualarm() */
  59. #define TERMINAL struct term
  60. #define SV_RESETHAND     0x0004
  61. #define set_curterm(NEW) (cur_term = NEW)
  62. #endif
  63.  
  64. #ifdef _SUN
  65. #include <sys/limits.h>
  66. #include <curses.h>
  67. #include <termio.h>
  68. #define WORD_BIT 32
  69. #define OPEN_MAX 32
  70. #endif
  71.  
  72. #ifdef _HP
  73. #include <curses.h>
  74. #include <termio.h>
  75. #define ualarm(X,Y) Ualarm(X,Y) /* for machines w/o ualarm() */
  76. #define TERMINAL struct term
  77. #define curs_set(X) NULL
  78. #endif
  79.  
  80. #define COMPAT_INCLUDED 1
  81. #endif /* COMPAT_INCLUDED */
  82.  
  83.