* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <stdio.h>
+
+#include <config.h>
+
#include <stdlib.h>
#include "as.h"
int hashval;
struct as_hash *hp;
- hashval = (*adp->hash) (c) % adp->hashsize;
+ hashval = adp->hash(c) % adp->hashsize;
for (hp = adp->hashtab[hashval]; hp; hp = hp->next)
if (hp->c.x == c.x && hp->c.y == c.y)
- return (hp->qp);
+ return hp->qp;
- return (NULL);
+ return NULL;
}
/*
new->c = c;
new->qp = qp;
- hashval = (*adp->hash) (c) % adp->hashsize;
+ hashval = adp->hash(c) % adp->hashsize;
hp = adp->hashtab[hashval];
new->next = (hp) ? hp : NULL;
for (i = 0; i < adp->hashsize; i++) {
for (hp = adp->hashtab[i]; hp; hp = hp2) {
hp2 = hp->next;
- free((char *)hp);
+ free(hp);
}
adp->hashtab[i] = NULL;
}