search.h
上传用户:qin5330
上传日期:2007-01-05
资源大小:114k
文件大小:3k
- /*
- ** Copyright (C) 1995, 1996, 1997, 1998 Hewlett-Packard Company
- ** Originally by Kevin Hughes, kev@kevcom.com, 3/11/94
- **
- ** This program and library is free software; you can redistribute it and/or
- ** modify it under the terms of the GNU (Library) General Public License
- ** as published by the Free Software Foundation; either version 2
- ** of the License, or any later version.
- **
- ** This program is distributed in the hope that it will be useful,
- ** but WITHOUT ANY WARRANTY; without even the implied warranty of
- ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ** GNU (Library) General Public License for more details.
- **
- ** You should have received a copy of the GNU (Library) General Public License
- ** along with this program; if not, write to the Free Software
- ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- **-------------------------------------------------------
- ** Added getMetaName & isMetaName
- ** to support METADATA
- ** G. Hill 3/18/97 ghill@library.berkeley.edu
- */
- /*
- ** use _AP() for easier cross-compiler (non-ANSI) porting
- ** <return value> <functionname> _AP( (<arg prototypes>) );
- */
- void search _AP ((char *, struct swline *, int));
- struct swline *fixnot _AP ((struct swline *));
- struct swline *expandstar _AP ((struct swline *, FILE *));
- char *getmatchword _AP ((char *, FILE *, int));
- void getheader _AP ((FILE *));
- void readoffsets _AP ((FILE *));
- void readstopwords _AP ((FILE *));
- void readfileoffsets _AP ((FILE *));
- void readMetaNames _AP ((FILE *));
- int getMetaName _AP ((char *));
- int countResults _AP ((struct sortresult *));
- struct result *parseterm _AP ((FILE *, int, int));
- struct result *operate _AP ((struct result *, int, char *, FILE *, int, int));
- char *lookupfile _AP ((int, FILE *, long *));
- struct result *getfileinfo _AP ((char *, FILE *, int));
- int isrule _AP ((char *));
- int isbooleanrule _AP ((char *));
- int isunaryrule _AP ((char *));
- int isMetaName _AP ((struct swline *));
- int getrulenum _AP ((char *));
- struct result *andresultlists _AP ((struct result *, struct result *, int));
- struct result *orresultlists _AP ((struct result *, struct result *));
- struct result *notresultlist _AP ((struct result *, FILE *));
- struct result *addtoresultlist _AP ((struct result *, int, int, int));
- struct sortresult *addsortresult _AP ((struct sortresult *sp, int rank,
- char *fileinfo, long propPos, int filenum));
- void printsortedresults _AP ((struct sortresult *sp, double num, FILE*));
- void getrawindexline _AP ((FILE *));
- int isokindexheader _AP ((FILE *));
- int wasStemmingAppliedToIndex _AP ((FILE *));