#define RETURN(c) return(c)
#define ERROR(c) {rexp_errno = c; return((char *)0);}
static int rexp_errno = 0;
-#if defined(CSRG_BASED)
+#if defined(CSRG_BASED) || defined(linux)
#include <regex.h>
#else
#include <regexp.h>
DtDtsMMField *fld_ptr;
DtDtsMMField *fld_ptr_list;
-#if defined(CSRG_BASED)
+#if defined(CSRG_BASED) || defined(linux)
regex_t regex_rn;
regex_t regex_fn;
regex_t regex_fv;
memset(expbuf_df, '\0', sizeof(expbuf_df));
#endif
-#if defined(CSRG_BASED)
+#if defined(CSRG_BASED) || defined(linux)
if(regcomp(®ex_rn, l->rec_name?l->rec_name:"^.*", 0) != 0)
#else
if((compile(l->rec_name?l->rec_name:"^.*",
exit(1);
}
-#if defined(CSRG_BASED)
+#if defined(CSRG_BASED) || defined(linux)
if(regcomp(®ex_fn, l->fld_name?l->fld_name:"^.*", 0) != 0)
#else
if((compile(l->fld_name?l->fld_name:"^.*",
exit(1);
}
-#if defined(CSRG_BASED)
+#if defined(CSRG_BASED) || defined(linux)
if(regcomp(®ex_fv, l->fld_value?l->fld_value:"^.*", 0) != 0)
#else
if((compile(l->fld_value?l->fld_value:"^.*",
exit(1);
}
-#if defined(CSRG_BASED)
+#if defined(CSRG_BASED) || defined(linux)
if(regcomp(®ex_df, l->display_fld?l->display_fld:"^.*", 0) != 0)
#else
if((compile(l->display_fld?l->display_fld:"^.*",
{
rec_ptr = &rec_ptr_list[rec];
fld_ptr_list = _DtDtsMMGetPtr(rec_ptr->fieldList);
-#if defined(CSRG_BASED)
+#if defined(CSRG_BASED) || defined(linux)
if(regexec(®ex_rn,
(char *)_DtDtsMMBosonToString(rec_ptr->recordName),
0, NULL, 0) == 0)
fn = _DtDtsMMExpandValue(_DtDtsMMBosonToString(fld_ptr->fieldName));
fv = _DtDtsMMExpandValue(_DtDtsMMBosonToString(fld_ptr->fieldValue));
-#if defined(CSRG_BASED)
+#if defined(CSRG_BASED) || defined(linux)
if((regexec(®ex_fn, fn, 0, NULL, 0) == 0) &&
((fld_ptr->fieldValue==0?
regexec(®ex_fv,
if(l->display_fld)
{
-#if defined(CSRG_BASED)
+#if defined(CSRG_BASED) || defined(linux)
if(regexec(®ex_df, fn, 0, NULL, 0) == 0)
#else
if(advance(fn, expbuf_df) !=0)