home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / new / util / edit / jade / src / jade.h < prev    next >
C/C++ Source or Header  |  1994-05-30  |  2KB  |  88 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. #define C_CONFIG
  33. #include "config.h"
  34.  
  35. #ifndef HAVE_X11
  36. # ifndef HAVE_AMIGA
  37.    you lose!
  38. # endif
  39. #endif
  40.  
  41. #include "edit.h"
  42. #include "lisp.h"
  43. #include "doc-strings.h"
  44. #include "keys.h"
  45. #include "stringmem.h"
  46.  
  47. /* Some macros for using MinLists  */
  48. #define AddMTail(l,n)    AddTail((struct List *)l, (struct Node *)n)
  49. #define InsertM(l,n,ln) Insert((struct List *)l, (struct Node *)n, (struct Node *)ln)
  50. #define RemoveM(n)    Remove((struct Node *)n)
  51. #define NewMList(l)    NewList((struct List *)l)
  52. #define IsMListEmpty(l) IsListEmpty((struct List *)l)
  53. #define IsLastMNode(n)    (!((n)->mln_Succ))
  54.  
  55. #ifndef HAVE_STPCPY
  56. extern char *stpcpy(char *, const char *);
  57. #endif
  58.  
  59. #ifndef HAVE_MEMCHR
  60. extern void *memchr(const void *, int, size_t);
  61. #endif
  62.  
  63. #ifndef _PR
  64. # define _PR extern
  65. #endif
  66.  
  67. #ifndef INLINE
  68. # ifdef __GNUC__
  69. #  define INLINE __inline__
  70. # else
  71. #  define INLINE
  72. # endif
  73. #endif
  74.  
  75. #ifndef NULL
  76. # define NULL ((void *)0)
  77. #endif
  78.  
  79. #ifndef TRUE
  80. # define TRUE (1)
  81. #endif
  82.  
  83. #ifndef FALSE
  84. # define FALSE (0)
  85. #endif
  86.  
  87. #endif /* _JADE_H */
  88.