head 1.14; access; symbols; locks; strict; comment @ * @; 1.14 date 94.03.11.23.29.48; author paul; state Exp; branches; next 1.13; 1.13 date 92.12.12.19.13.47; author paul; state Exp; branches; next 1.12; 1.12 date 92.07.29.04.27.47; author paul; state Exp; branches; next 1.11; 1.11 date 92.07.28.16.21.40; author paul; state Exp; branches; next 1.10; 1.10 date 92.07.26.19.04.52; author paul; state Exp; branches; next 1.9; 1.9 date 92.07.22.21.53.13; author paul; state Exp; branches; next 1.8; 1.8 date 92.07.22.21.42.48; author paul; state Exp; branches; next 1.7; 1.7 date 90.12.18.08.40.57; author dorner; state Exp; branches; next 1.6; 1.6 date 89.03.20.15.14.17; author dorner; state Exp; branches; next 1.5; 1.5 date 88.12.02.14.41.12; author dorner; state Exp; branches; next 1.4; 1.4 date 88.11.15.13.30.50; author dorner; state Exp; branches; next 1.3; 1.3 date 88.04.19.08.12.23; author dorner; state Exp; branches; next 1.2; 1.2 date 88.02.15.15.59.42; author dorner; state Exp; branches; next 1.1; 1.1 date 87.12.09.13.36.53; author dorner; state Exp; branches; next ; desc @@ 1.14 log @New copyright message. @ text @/* * Copyright (c) 1985 Corporation for Research and Educational Networking * Copyright (c) 1988 University of Illinois Board of Trustees, Steven * Dorner, and Paul Pomes * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the Corporation for * Research and Educational Networking (CREN), the University of * Illinois at Urbana, and their contributors. * 4. Neither the name of CREN, the University nor the names of their * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE TRUSTEES AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE TRUSTEES OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @@(#)$Id: options.h,v 1.8 1994/03/11 23:23:48 paul Exp $ */ #ifndef QI_H #define QI_H #define WORDSIZE 64 #define MAX_KEYS 8 /* max # of keys allowed in a query */ #define MIN_ALIAS 3 /* min # of chars in alias */ #define TOO_COMMON_ALIAS 5 /* if a word is in db more than this many * times, it's too common for use as an alias */ #define NIL -1 #ifndef NULL #define NULL 0 #endif #define OK 1 #define SPEC '\033' #define METAS "*?[]" /*********************************************************************** * what sort of thing is giving us input? ***********************************************************************/ #define IT_TTY 0 #define IT_FILE 1 #define IT_PIPE 2 #define IT_NET 3 typedef char **QDIR; #endif @ 1.13 log @Deleted unused #define's. @ text @d2 35 a36 5 * This software is Copyright (C) 1988 by Steven Dorner and the * University of Illinois Board of Trustees, and by CSNET. No warranties of * any kind are expressed or implied. No support will be provided. * This software may not be redistributed without prior consent of CSNET. * You may direct questions to nameserv@@uiuc.edu @ 1.12 log @*** empty log message *** @ text @a33 6 /* some macros for ease of reading */ #define skipspc(a) while(a&&isspace(*a))a++ #define free_str(a) if(a)free((char*)a) #define ary_free(a) if(a){free((char*)a);a=NULL;} #define nwords(a) (((a/WORDSIZE)+1)*WORDSIZE) @ 1.11 log @*** empty log message *** @ text @a39 1 a41 6 #ifdef __STDC__ # include #else char *strtok __P((char *, const char *)); char *strcpy __P((char *, const char *)); #endif @ 1.10 log @Changed typedef Dir to QDIR. @ text @d42 7 @ 1.9 log @*** empty log message *** @ text @d41 1 a41 1 typedef char **Dir; @ 1.8 log @Last Dorner changes @ text @d1 7 a7 8 /***********************************************************************/ /********************************************************************* * This software is Copyright (C) 1988 by Steven Dorner and the * University of Illinois Board of Trustees, and by CSNET. No warranties of * any kind are expressed or implied. No support will be provided. * This software may not be redistributed without prior consent of CSNET. * You may direct questions to dorner@@garcon.cso.uiuc.edu. **********************************************************************/ @ 1.7 log @No help here. @ text @a18 2 #define TOO_MANY 21 /* too many entries to return */ @ 1.6 log @No help here. @ text @d22 1 d24 1 a44 8 /*********************************************************************** * some library functions that don't have include files to declare them ***********************************************************************/ void exit(), free(), syslog(), perror(); char *malloc(), *realloc(); long random(); void sleep(),srandom(); @ 1.5 log @No help here. @ text @d1 9 a9 6 /*********************************************************************** * This software is Copyright (C) 1988 by Steven Dorner and the University * of Illinois Board of Trustees. No warranties expressed or implied, no * support provided. Please do not redistribute it in its present form. * Contact me for details (dorner@@garcon.cso.uiuc.edu). ***********************************************************************/ a14 1 #define OK_CHARS ".-" /* special chars allowed in aliases */ @ 1.4 log @No help here. @ text @d7 2 a8 3 #ifndef QI_DOT_H #define QI_DOT_H #define BSIZE 256 d42 7 @ 1.3 log @*** empty log message *** @ text @d1 6 @ 1.2 log @*** empty log message *** @ text @d5 1 a5 1 #define MAX_KEYS 8 /* max # of keys allowed in a query */ d7 4 a10 5 #define OK_CHARS ".-" /* special chars allowed in aliases */ #define MIN_ALIAS 3 /* min # of chars in alias */ #define TOO_COMMON_ALIAS 5 /* if a word is in db more than this many times, it's too common for use as an alias */ d12 1 a12 1 #define TOO_MANY 21 /* too many entries to return */ d35 1 a35 1 typedef char ** Dir; @ 1.1 log @Initial revision @ text @d7 1 a7 1 #define OK_CHARS "_.-" /* special chars allowed in aliases */ @