hash.c (32785) | hash.c (34461) |
---|---|
1/* 2 * Copyright (c) 1992, Brian Berliner and Jeff Polk 3 * 4 * You may distribute under the terms of the GNU General Public License as 5 * specified in the README file that comes with the CVS source distribution. 6 * 7 * Polk's hash list manager. So cool. 8 */ --- 422 unchanged lines hidden (view full) --- 431 p->prev->next = p; 432 head->prev = p; 433 } 434 435 /* release the array of nodes */ 436 free (array); 437} 438 | 1/* 2 * Copyright (c) 1992, Brian Berliner and Jeff Polk 3 * 4 * You may distribute under the terms of the GNU General Public License as 5 * specified in the README file that comes with the CVS source distribution. 6 * 7 * Polk's hash list manager. So cool. 8 */ --- 422 unchanged lines hidden (view full) --- 431 p->prev->next = p; 432 head->prev = p; 433 } 434 435 /* release the array of nodes */ 436 free (array); 437} 438 |
439/* 440 * compare two files list node (for sort) 441 */ 442int 443fsortcmp (p, q) 444 const Node *p; 445 const Node *q; 446{ 447 return (strcmp (p->key, q->key)); 448} 449 |
|
439/* Debugging functions. Quite useful to call from within gdb. */ 440 441static char *nodetypestring PROTO ((Ntype)); 442 443static char * 444nodetypestring (type) 445 Ntype type; 446{ --- 60 unchanged lines hidden --- | 450/* Debugging functions. Quite useful to call from within gdb. */ 451 452static char *nodetypestring PROTO ((Ntype)); 453 454static char * 455nodetypestring (type) 456 Ntype type; 457{ --- 60 unchanged lines hidden --- |