[BACK]Return to fep_hist.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / fep

Diff for /OpenXM_contrib2/fep/fep_hist.c between version 1.1 and 1.2

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)

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>