around September 1981, as the ``most recent version''. Deltas
seem to be progressive, rather than regressive, although the BTL sid for
deroff.c is retrograde; this is probably a case of parallel development
SCCS-vsn: usr.bin/diction/style1/abbrev.c 4.2
SCCS-vsn: usr.bin/diction/style2/ehash.c 4.2
SCCS-vsn: usr.bin/diction/style2/edict.c 4.2
SCCS-vsn: usr.bin/diction/style1/nhash.c 4.2
SCCS-vsn: usr.bin/diction/style1/dict.c 4.2
SCCS-vsn: usr.bin/diction/style1/ydict.c 4.2
SCCS-vsn: usr.bin/diction/style1/abbrev.c 4.2
+#ifndef lint
+static char abbrev_sccsid[] = "@(#)abbrev.c 4.2 (Berkeley) 82/11/06";
+#endif not lint
+
+struct dict abbrev_d[] = {
+"St",'N',
+"Dr",'N',
+"Drs",'N',
+"Mr",'N',
+"Mrs",'N',
+"Ms",'N',
+"Rev",'N',
+"No",'Y',
+"Nos",'Y',
+"NO",'Y',
+"NOs",'Y',
+"no",'Y',
+"Fig",'Y',
+"Figs",'Y',
+"Dept",'Y',
+"Depts",'Y',
+"dept",'Y',
+"depts",'Y',
+"Eq",'Y',
+"Eqs",'Y',
+"eq",'Y',
+"eqs",'Y',
+"dB",'Y',
+"vs",'P',
+"in",'Y',
+"ft",'Y',
+"yr",'Y',
+"ckts",'Y',
+"mi",'Y',
+"Jr",'J',
+"jr",'J',
+"Ch",'Y',
+"ch",'Y',
+"Ref",'Y',
+"Refs",'Y',
+"ref",'Y',
+"refs",'Y',
+"Inc",'J',
+"Co",'N',
+"Corp",'N',
+"Jan",'N',
+"Feb",'N',
+"Mar",'N',
+"Apr",'N',
+"Jun",'N',
+"Aug",'N',
+"Sept",'N',
+"Oct",'N',
+"Nov",'N',
+"Dec",'N',
+"Sen",'Y',
+"Sens",'Y',
+"Rep",'Y',
+"Hon",'Y',
+"Gov",'Y',
+"Lt",'Y',
+"Col",'Y',
+"Comdr",'Y',
+"Cmdr",'Y',
+"Capt",'Y',
+"Calif",'N',
+"Ky",'N',
+"Va",'N',
+0,0
+};
-static char sccsid[] = "@(#)nhash.c 4.2 (Berkeley) 82/11/06";
+static char nhash_sccsid[] = "@(#)nhash.c 4.2 (Berkeley) 82/11/06";
#endif not lint
struct dict {
#endif not lint
struct dict {
extern struct dict ary_d[], cy_d[], ery_d[], fy_d[],gy_d[];
extern struct dict ity_d[],ly_d[],ory_d[],ry_d[],ty_d[];
extern struct dict dict[];
extern struct dict ary_d[], cy_d[], ery_d[], fy_d[],gy_d[];
extern struct dict ity_d[],ly_d[],ory_d[],ry_d[],ty_d[];
extern struct dict dict[];
+extern struct dict abbrev_d[];
char aahash();
char lookup();
char aahash();
char lookup();
char ary();
char cy();
char ery();
char ary();
char cy();
char ery();
}
p1 = (p1+p2)%aatsize;
}
}
p1 = (p1+p2)%aatsize;
}
- fprintf(stderr, "hash table full\n");
+ fprintf(stderr, "hash table full:size %d\n",aatsize);
+getab(){
+ struct dict *ptr;
+ ptr = abbrev_d;
+ while(ptr->entry != 0){
+ abbrev(ptr->entry,0,ptr);
+ ptr++;
+ }
+}
-struct hnode aa1root[463];
-#define aa1tsize 463
-#define aa1p1 457
-#define aa1p2 461
+struct hnode aa1root[499];
+#define aa1tsize 499
+#define aa1p1 487
+#define aa1p2 491
char
lookup(a0,a1,ptr)
char *a0;
char
lookup(a0,a1,ptr)
char *a0;
+struct hnode aa42root[71];
+#define aa42tsize 71
+#define aa42p1 61
+#define aa42p2 67
+char
+abbrev(a0,a1,ptr)
+ char *a0;
+ struct dict *ptr;
+{
+ return(aahash(a0,a1,aa42tsize,aa42p1,aa42p2,aa42root,ptr));
+}
-static char sccsid[] = "@(#)ydict.c 4.2 (Berkeley) 82/11/06";
+static char ydict_sccsid[] = "@(#)ydict.c 4.2 (Berkeley) 82/11/06";
#endif not lint
struct dict ary_d[] = {
#endif not lint
struct dict ary_d[] = {
-static char sccsid[] = "@(#)edict.c 4.2 (Berkeley) 82/11/06";
+static char edict_sccsid[] = "@(#)edict.c 4.2 (Berkeley) 82/11/06";
#endif not lint
struct dict able_d[] = {
#endif not lint
struct dict able_d[] = {
"labnu",'V',
"ksa",'D',
"hcrep",'D',
"labnu",'V',
"ksa",'D',
"hcrep",'D',
+"veler",'N', /*added*/
+"tropmi",'N',
+"tsni",'N',
+"cifingisni",'N',
+"tsbus",'N',
+"nimul",'N',
+"cifingis",'N',
+"iravni",'N',
+"velerri",'N',
0,0
};
struct dict ant_d[] = {
0,0
};
struct dict ant_d[] = {
"h",'D',
"ht",'D',
"hw",'D',
"h",'D',
"ht",'D',
"hw",'D',
+"lav",'N', /*added*/
+"uqesnoc",'N',
+"dive",'N',
+"idua",'N',
+"inevnoc",'N',
+"sse",'N',
+"ics",'N',
+"lupo",'N',
+"itap",'N',
+"rehoc",'N',
+"irepxeni",'N',
+"tsixenon",'N',
+"cselosbo",'N',
+"serp",'N',
0,0
};
struct dict ess_d[] = {
0,0
};
struct dict ess_d[] = {
"tidnocer",'V',
"hsafer",'V',
"ssim",'U',
"tidnocer",'V',
"hsafer",'V',
"ssim",'U',
+"tamrofni",'N', /*added*/
+"tacol",'N',
+"tauqe",'N',
+"retirc",'N',
+"ger",'N',
+"srev",'N',
+"tarud",'N',
+"tnevnoc",'N',
+"taroproc",'N',
+"snemid",'N',
+"tcarf",'N',
+"tiutni",'N',
+"taton",'N',
+"ton",'N',
+"tpo",'N',
+"ssap",'N',
+"sses",'N',
+"tisnart",'N',
+"tilaoc",'N',
+"tcnujnoc",'N',
+"tpecxe",'N',
+"tnettani",'N',
+"tceridni",'N',
+"taercer",'N',
+"tatuper",'N',
+"tacitsihpos",'N',
+"tisnart",'N',
0,0
};
struct dict ional_d[] = {
0,0
};
struct dict ional_d[] = {
"elcni",'J',
"ehev",'J',
"llatsni",'Y',
"elcni",'J',
"ehev",'J',
"llatsni",'Y',
+"norivne",'N', /*added*/
+"om",'N',
+"irted",'N',
+"ele",'N',
+"nrevog",'N',
+"traped",'N',
+"ercni",'Z',
+"eganam",'N',
0,0
};
struct dict ness_d[] = {
0,0
};
struct dict ness_d[] = {
0,0
};
struct dict ed_d[] = {
0,0
};
struct dict ed_d[] = {
"elb",'V',
"bme",'V',
"ecxe",'V',
"ecorp",'V',
"eccus",'V',
"elb",'V',
"bme",'V',
"ecxe",'V',
"ecorp",'V',
"eccus",'V',
"w",'V',
"b",'Z',
"lsbob",'Z',
"w",'V',
"b",'Z',
"lsbob",'Z',