home *** CD-ROM | disk | FTP | other *** search
/ Computer Club Elmshorn Atari PD / CCE_PD.iso / pc / 0600 / CCE_0638.ZIP / CCE_0638 / UPDATE / UPDATE29.ZOO / editline / editline.h < prev    next >
C/C++ Source or Header  |  1993-03-28  |  2KB  |  80 lines

  1. /*  $Revision: 1.2 $
  2. **
  3. **  Internal header file for editline library.
  4. */
  5. #include <stdio.h>
  6. #if    defined(HAVE_STDLIB)
  7. #include <stdlib.h>
  8. #include <string.h>
  9. #endif    /* defined(HAVE_STDLIB) */
  10. #if    defined(SYS_UNIX)
  11. #include "unix.h"
  12. #endif    /* defined(SYS_UNIX) */
  13. #if    defined(SYS_OS9)
  14. #include "os9.h"
  15. #endif    /* defined(SYS_OS9) */
  16. #if    defined(atarist)
  17. #include "atarist.h"
  18. #endif
  19.  
  20. #if    !defined(SIZE_T)
  21. #define SIZE_T    unsigned int
  22. #endif    /* !defined(SIZE_T) */
  23.  
  24. typedef unsigned char    CHAR;
  25.  
  26. #if    defined(HIDE)
  27. #define STATIC    static
  28. #else
  29. #define STATIC    /* NULL */
  30. #endif    /* !defined(HIDE) */
  31.  
  32. #if    !defined(CONST)
  33. #if    defined(__STDC__)
  34. #define CONST    const
  35. #else
  36. #define CONST
  37. #endif    /* defined(__STDC__) */
  38. #endif    /* !defined(CONST) */
  39.  
  40.  
  41. #define MEM_INC        64
  42. #define SCREEN_INC    256
  43.  
  44. #define DISPOSE(p)    free((char *)(p))
  45. #define NEW(T, c)    \
  46.     ((T *)malloc((SIZE_T)(sizeof (T) * (c))))
  47. #define RENEW(p, T, c)    \
  48.     (p = (T *)realloc((char *)(p), (SIZE_T)(sizeof (T) * (c))))
  49. #define COPYFROMTO(new, p, len)    \
  50.     (void)memcpy((char *)(new), (char *)(p), (SIZE_T)(len))
  51.  
  52.  
  53. /*
  54. **  Variables and routines internal to this package.
  55. */
  56. extern int    rl_eof;
  57. extern int    rl_erase;
  58. extern int    rl_intr;
  59. extern int    rl_kill;
  60. extern int    rl_quit;
  61. extern char    *rl_complete();
  62. extern int    rl_list_possib();
  63. extern void    rl_ttyset();
  64. extern void    rl_add_slash();
  65.  
  66. #if    !defined(HAVE_STDLIB)
  67. extern char    *getenv();
  68. extern char    *malloc();
  69. extern char    *realloc();
  70. extern char    *memcpy();
  71. extern char    *strcat();
  72. extern char    *strchr();
  73. extern char    *strrchr();
  74. extern char    *strcpy();
  75. extern char    *strdup();
  76. extern int    strcmp();
  77. extern int    strlen();
  78. extern int    strncmp();
  79. #endif    /* !defined(HAVE_STDLIB) */
  80.