findlib.h revision 3e14f97f673e8a630f076077de35afdd43dc1587
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2010 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* David Korn <dgk@research.att.com> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* fast find private interface
*/
#ifndef _FINDLIB_H
#define _FINDLIB_H
#include <ast.h>
#include <cdt.h>
#include <ctype.h>
#include <error.h>
#include <ls.h>
#include <regex.h>
#include <vmalloc.h>
#define FF_gnu_magic "LOCATE02"
#define FF_dir_magic "FIND-DIR-02"
#define FF_typ_magic "FIND-DIR-TYPE-03"
#define FF_ESC 0036
#define FF_MAX 0200
#define FF_MIN 0040
#define FF_OFF 0016
#define FF_OK_TYPE(p,i) (!(p)->types||((p)->decode.bigram1[((i)>>3)&((1<<CHAR_BIT)-1)]&(1<<((i)&07))))
typedef struct
{
char* end;
char* type;
char* restore;
int count;
int found;
int ignorecase;
int match;
int peek;
int swap;
char pattern[1];
} Decode_t;
typedef struct
{
int prefix;
} Encode_t;
typedef union
{
} Code_t;
typedef struct
{
unsigned long index;
char name[1];
} Type_t;
#define _FIND_PRIVATE_ \
Finddisc_t* disc; \
char** dirs; \
int* lens; \
int generate; \
int method; \
int secure; \
int types; \
int verify; \
#include <find.h>
#endif