home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / eulisp / feel0_89.lha / Feel / AddOns / yydefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-13  |  2.9 KB  |  102 lines

  1. /* Common Definition for YY-server
  2.  * This file is part of YY-server of YYonX (1.3 Distribution)
  3.  * $Id: yydefs.h,v 1.1 1993/01/18 12:57:24 pab Exp $
  4.  */
  5.  
  6. /****************************************************************************
  7. ;;;
  8. ;;;  Copyright (C) 1989,1990,1991 Aoyama Gakuin University
  9. ;;;
  10. ;;;        All Rights Reserved
  11. ;;;
  12. ;;; This software is developed for the YY project of Aoyama Gakuin University.
  13. ;;; Permission to use, copy, modify, and distribute this software
  14. ;;; and its documentation for any purpose and without fee is hereby granted,
  15. ;;; provided that the above copyright notices appear in all copies and that
  16. ;;; both that copyright notice and this permission notice appear in 
  17. ;;; supporting documentation, and that the name of Aoyama Gakuin
  18. ;;; not be used in advertising or publicity pertaining to distribution of
  19. ;;; the software without specific, written prior permission.
  20. ;;;
  21. ;;; This software is made available AS IS, and Aoyama Gakuin makes no
  22. ;;; warranty about the software, its performance or its conformity to
  23. ;;; any specification. 
  24. ;;;
  25. ;;; To make a contact: Send E-mail to ida@csrl.aoyama.ac.jp for overall
  26. ;;; issues. To ask specific questions, send to the individual authors at
  27. ;;; csrl.aoyama.ac.jp. To request a mailing list, send E-mail to 
  28. ;;; yyonx-request@csrl.aoyama.ac.jp.
  29. ;;;
  30. ;;; Authors:
  31. ;;;   Version 1.0 90/02/26 by Keisuke 'Keiko' Tanaka
  32. ;;;                (keisuke@csrl.aoyama.ac.jp)
  33. ;;;   Version 2.0 90/08/27 by Keisuke 'Keiko' Tanaka
  34. ;;;            Page Mode Territory is supported
  35. ;;;   Version 2.1 90/11/05 by Keisuke 'Keiko' Tanaka
  36. ;;;            Copyright Notice is rewritten
  37. ;;;
  38. ****************************************************************************/
  39.  
  40. /****************************************************************************
  41.   $Revision: 1.1 $ Written by Keisuke 'Keiko' Tanaka
  42.   $Date: 1993/01/18 12:57:24 $
  43. ****************************************************************************/
  44.  
  45. typedef int    bool;
  46. typedef u_char    byte;
  47.  
  48. /* #define private        static */
  49.  
  50. #define TRUE        1
  51. #define FALSE        0
  52.  
  53. #define EOS        '\0'
  54. #define EOL        '\n'
  55. #define SINGLEQUOTE    '\''
  56. #define DOUBLEQUOTE    '\"'
  57. #define BACKSLASH    '\\'
  58. #define ERR        (-1)
  59.  
  60. extern int YyErrNo;
  61. extern int SysErrNo;
  62.  
  63. extern char *getenv();
  64. extern char *malloc();
  65. #ifndef EULISP
  66. #define xalloc  malloc
  67. #define xfree   free
  68. #endif
  69. #ifdef EULISP
  70. #define xalloc feel_malloc
  71. #define xfree feel_free
  72. #define free feel_free
  73. #define malloc feel_malloc
  74. #endif
  75.  
  76. #define strSAME(s1,s2)    (strcmp((s1),(s2))==0)
  77. #define MAX(a1,a2)    ((a1)>(a2)?(a1):(a2))
  78. #define MIN(a1,a2)    ((a1)<(a2)?(a1):(a2))
  79. #define XOR(a1,a2)    ((a1)^(a2))
  80.  
  81. #include <errno.h>
  82. #include <sys/time.h>
  83. #if 0
  84. #include <sysexits.h>
  85. #endif
  86. #include "yydefault.h"
  87. #include <ctype.h>
  88.  
  89. #define KEYINPUTBUFLEN    80
  90.  
  91. #define YYPI2        23040    /* 64*360 */
  92. #define YYPI3_2        17280    /* 64*270 */
  93. #define YYPI        11520    /* 64*180 */
  94. #define YYPI_2        5760    /* 64*90 */
  95.  
  96. extern char *Version;
  97.  
  98. extern void cleanup();
  99. extern void warning();
  100. extern char *mamALLOC();
  101. extern char *strDUP();
  102.