SCCS-vsn: lib/libedit/el.h 5.3
SCCS-vsn: lib/libedit/search.c 5.3
SCCS-vsn: lib/libedit/sys.h 5.3
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)el.h 5.2 (Berkeley) %G%
+ * @(#)el.h 5.3 (Berkeley) %G%
#define ANCHOR
#include <stdio.h>
#define ANCHOR
#include <stdio.h>
-#ifdef sun
-#include <malloc.h>
-#endif
#include <sys/types.h>
#define EL_BUFSIZ 1024 /* Maximum line size */
#include <sys/types.h>
#define EL_BUFSIZ 1024 /* Maximum line size */
*/
#if !defined(lint) && !defined(SCCSID)
*/
#if !defined(lint) && !defined(SCCSID)
-static char sccsid[] = "@(#)search.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)search.c 5.3 (Berkeley) %G%";
#endif /* not lint && not SCCSID */
/*
#endif /* not lint && not SCCSID */
/*
*/
#include "sys.h"
#include <stdlib.h>
*/
#include "sys.h"
#include <stdlib.h>
#include <regexp.h>
#endif
#include "el.h"
#include <regexp.h>
#endif
#include "el.h"
el->el_search.patbuf = NULL;
}
el->el_search.patbuf = NULL;
}
/* regerror():
* Handle regular expression errors
*/
/* regerror():
* Handle regular expression errors
*/
const char *str;
const char *pat;
{
const char *str;
const char *pat;
{
extern char *re_comp __P((const char *));
extern int re_exec __P((const char *));
#else
extern char *re_comp __P((const char *));
extern int re_exec __P((const char *));
#else
if (strstr(str, pat) != NULL)
return 1;
if (strstr(str, pat) != NULL)
return 1;
if (re_comp(pat) != NULL)
return 0;
else
if (re_comp(pat) != NULL)
return 0;
else
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)sys.h 5.2 (Berkeley) %G%
+ * @(#)sys.h 5.3 (Berkeley) %G%
#endif
#include <stdio.h>
#endif
#include <stdio.h>
+#ifdef SUNOS
+# undef REGEXP
+# include <malloc.h>
typedef void (*sig_t)__P((int));
typedef void (*sig_t)__P((int));
extern char *sys_errlist[];
extern void perror __P((const char *));
extern int read __P((int, const char*, int));
extern char *sys_errlist[];
extern void perror __P((const char *));
extern int read __P((int, const char*, int));
-#include <string.h>
-#define strerror(e) sys_errlist[e]
-#endif
-#ifdef SABER
+# include <string.h>
+# define strerror(e) sys_errlist[e]
+# endif
+# ifdef SABER
extern ptr_t memcpy __P((ptr_t, const ptr_t, size_t));
extern ptr_t memset __P((ptr_t, int, size_t));
extern ptr_t memcpy __P((ptr_t, const ptr_t, size_t));
extern ptr_t memset __P((ptr_t, int, size_t));
extern char *fgetline __P((FILE *, int *));
#endif
extern char *fgetline __P((FILE *, int *));
#endif