home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / may94 / util / edit / jade.lha / Jade / src / jade.h < prev    next >
C/C++ Source or Header  |  1994-04-19  |  2KB  |  79 lines

  1. /* jade.h -- Main include file, brings in all the rest
  2.    Copyright (C) 1993, 1994 John Harper <jsh@ukc.ac.uk>
  3.  
  4. This file is part of Jade.
  5.  
  6. Jade is free software; you can redistribute it and/or modify it
  7. under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. Jade is distributed in the hope that it will be useful, but
  12. WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with Jade; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. #ifndef _JADE_H
  21. #define _JADE_H
  22.  
  23. #include <sys/types.h>
  24. #include <stdio.h>
  25.  
  26. typedef char bool;
  27.  
  28. #include "value.h"
  29.  
  30. /* This should be either a link to the target systems config.h.X file
  31.    in configs/ or a file containing whatever your system needs.  */
  32. #include "config.h"
  33.  
  34. #ifndef HAVE_X11
  35. # ifndef HAVE_AMIGA
  36.    you lose!
  37. # endif
  38. #endif
  39.  
  40. #include "edit.h"
  41. #include "lisp.h"
  42. #include "doc-strings.h"
  43. #include "keys.h"
  44. #include "stringmem.h"
  45.  
  46. /* Some macros for using MinLists  */
  47. #define AddMTail(l,n)    AddTail((struct List *)l, (struct Node *)n)
  48. #define InsertM(l,n,ln) Insert((struct List *)l, (struct Node *)n, (struct Node *)ln)
  49. #define RemoveM(n)    Remove((struct Node *)n)
  50. #define NewMList(l)    NewList((struct List *)l)
  51. #define IsMListEmpty(l) IsListEmpty((struct List *)l)
  52. #define IsLastMNode(n)    (!((n)->mln_Succ))
  53.  
  54. #ifndef _PR
  55. # define _PR extern
  56. #endif
  57.  
  58. #ifndef INLINE
  59. # ifdef __GNUC__
  60. #  define INLINE __inline__
  61. # else
  62. #  define INLINE
  63. # endif
  64. #endif
  65.  
  66. #ifndef NULL
  67. # define NULL ((void *)0)
  68. #endif
  69.  
  70. #ifndef TRUE
  71. # define TRUE (1)
  72. #endif
  73.  
  74. #ifndef FALSE
  75. # define FALSE (0)
  76. #endif
  77.  
  78. #endif /* _JADE_H */
  79.