source: trunk/minix/lib/editline/editline.h@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 1.6 KB
Line 
1/* $Revision: 1.1.1.1 $
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
17#if !defined(SIZE_T)
18#define SIZE_T unsigned int
19#endif /* !defined(SIZE_T) */
20
21typedef unsigned char CHAR;
22
23#if defined(HIDE)
24#define STATIC static
25#else
26#define STATIC /* NULL */
27#endif /* !defined(HIDE) */
28
29#if !defined(CONST)
30#if defined(__STDC__)
31#define CONST const
32#else
33#define CONST
34#endif /* defined(__STDC__) */
35#endif /* !defined(CONST) */
36
37
38#define MEM_INC 64
39#define SCREEN_INC 256
40
41#define DISPOSE(p) free((char *)(p))
42#define NEW(T, c) \
43 ((T *)malloc((unsigned int)(sizeof (T) * (c))))
44#define RENEW(p, T, c) \
45 (p = (T *)realloc((char *)(p), (unsigned int)(sizeof (T) * (c))))
46#define COPYFROMTO(new, p, len) \
47 (void)memcpy((char *)(new), (char *)(p), (int)(len))
48
49
50/*
51** Variables and routines internal to this package.
52*/
53extern int rl_eof;
54extern int rl_erase;
55extern int rl_intr;
56extern int rl_kill;
57extern int rl_quit;
58extern char *rl_complete();
59extern int rl_list_possib();
60extern void rl_ttyset();
61extern void rl_add_slash();
62
63#if !defined(HAVE_STDLIB)
64extern char *getenv();
65extern char *malloc();
66extern char *realloc();
67extern char *memcpy();
68extern char *strcat();
69extern char *strchr();
70extern char *strrchr();
71extern char *strcpy();
72extern int strcmp();
73extern int strlen();
74extern int strncmp();
75#endif /* !defined(HAVE_STDLIB) */
76
77#if defined(NEED_STRDUP)
78extern char *strdup();
79#endif
Note: See TracBrowser for help on using the repository browser.