/[MITgcm]/mitgcm.org/devel/buildweb/pkg/swish-e/src/error.h
ViewVC logotype

Contents of /mitgcm.org/devel/buildweb/pkg/swish-e/src/error.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Fri Sep 20 19:47:29 2002 UTC (22 years, 10 months ago) by adcroft
Branch: Import, MAIN
CVS Tags: baseline, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
Importing web-site building process.

1 /*
2 ** Copyright (C) 1995, 1996, 1997, 1998 Hewlett-Packard Company
3 ** Originally by Kevin Hughes, kev@kevcom.com, 3/11/94
4 **
5 ** This program and library is free software; you can redistribute it and/or
6 ** modify it under the terms of the GNU (Library) General Public License
7 ** as published by the Free Software Foundation; either version 2
8 ** of the License, or any later version.
9 **
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ** GNU (Library) General Public License for more details.
14 **
15 ** You should have received a copy of the GNU (Library) General Public License
16 ** along with this program; if not, write to the Free Software
17 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 **
19 **
20 ** 2001-02-12 rasc some parts rewritten (progerr uses vargs, now)
21 */
22
23
24 #ifndef __HasSeenModule_Error
25 #define __HasSeenModule_Error 1
26
27
28 void set_error_handle( FILE *where );
29 void SwishErrorsToStderr( void );
30
31 void progerr (char *msgfmt, ...);
32 void progerrno (char *msgfmt, ...);
33
34 void set_progerr(int errornum, SWISH *sw, char *msgfmt,...);
35 void set_progerrno(int errornum, SWISH *sw, char *msgfmt,...);
36
37
38 void progwarn (char *msgfmt, ...);
39 void progwarnno (char *msgfmt, ...);
40
41
42 char *getErrorString(int);
43 int SwishError(SWISH * sw);
44 char *SwishErrorString(SWISH *sw);
45 char *SwishLastErrorMsg(SWISH *sw);
46 void SwishAbortLastError(SWISH *sw);
47 int SwishCriticalError(SWISH *sw);
48
49
50 char *fuzzy_mode_to_string( FuzzyIndexType mode );
51 FuzzyIndexType set_fuzzy_mode( char *param );
52
53
54 #define RC_OK 0
55
56 enum {
57 INDEX_FILE_NOT_FOUND = -255,
58 UNKNOWN_INDEX_FILE_FORMAT,
59 NO_WORDS_IN_SEARCH,
60 WORDS_TOO_COMMON,
61 INDEX_FILE_IS_EMPTY,
62 INDEX_FILE_ERROR,
63 UNKNOWN_PROPERTY_NAME_IN_SEARCH_DISPLAY,
64 UNKNOWN_PROPERTY_NAME_IN_SEARCH_SORT,
65 INVALID_PROPERTY_TYPE,
66 UNKNOWN_METANAME,
67 UNIQUE_WILDCARD_NOT_ALLOWED_IN_WORD,
68 WORD_NOT_FOUND,
69 SWISH_LISTRESULTS_EOF,
70 INVALID_SWISH_HANDLE,
71 SEARCH_WORD_TOO_BIG,
72 QUERY_SYNTAX_ERROR,
73 PROP_LIMIT_ERROR
74 };
75 #endif
76

  ViewVC Help
Powered by ViewVC 1.1.22