| version 1.1, 2002/09/03 00:41:44 |
version 1.2, 2002/09/19 08:10:16 |
| Line 14 static char rcsid[]= |
|
| Line 14 static char rcsid[]= |
|
| #include "fep_funcs.h" |
#include "fep_funcs.h" |
| |
|
| #if defined(__FreeBSD__) || defined(__CYGWIN__) |
#if defined(__FreeBSD__) || defined(__CYGWIN__) |
| #define re_comp regcomp |
#include <regex.h> |
| #define re_exec regexec |
regex_t Re_pat; |
| |
#define re_comp(p) (regcomp(&Re_pat,(p), REG_EXTENDED|REG_NOSUB)) |
| |
#define re_exec(p) (!regexec(&Re_pat, (p), 0 , NULL, 0)) |
| |
#else |
| |
char *re_comp(); |
| #endif |
#endif |
| |
|
| char **HistoryTable; |
char **HistoryTable; |
| Line 277 search_reverse_history (string) |
|
| Line 281 search_reverse_history (string) |
|
| char *string; |
char *string; |
| { |
{ |
| register int i; |
register int i; |
| char *re_comp(); |
|
| |
|
| if (string != NULL) { |
if (string != NULL) { |
| set_var ("search-string", string); |
set_var ("search-string", string); |
| Line 302 search_forward_history (string) |
|
| Line 305 search_forward_history (string) |
|
| char *string; |
char *string; |
| { |
{ |
| register int i; |
register int i; |
| char *re_comp(); |
|
| |
|
| if (string != NULL) { |
if (string != NULL) { |
| if (re_comp(string) != (char *)0) |
if (re_comp(string) != (char *)0) |