* Copyright (c) 1983 Regents of the University of California,
* All rights reserved. Redistribution permitted subject to
* the terms of the Berkeley Software License Agreement.
static char sccsid
[] = "@(#)parse.c 1.2 %G%";
register struct wlist
*w
;
for (w
= wlist
; w
->string
; w
++)
register struct wlist
*wp
;
for (wp
= hashtab
[hash(s
)]; wp
!= NULL
; wp
= wp
->next
)
if (*s
== *wp
->string
&& strcmp(s
, wp
->string
) == 0)
register struct wlist
*wp
;
if (lookup(wp
->string
) == NULL
) {
hashval
= hash(wp
->string
);
wp
->next
= hashtab
[hashval
];
printf("Multiply defined %s.\n", wp
->string
);
register struct wlist
*wp
;
wordnumber
= 0; /* for cypher */
for (n
= 0; n
<= wordcount
; n
++) {
if ((wp
= lookup(words
[n
])) == NULL
) {
wordvalue
[n
] = wp
-> value
;
wordtype
[n
] = wp
-> article
;