1: #include "../h/rt.h"
   2: #ifdef SETS
   3: 
   4: /*
   5:  * locate - returns 1 if obj is in the hash chain which
   6:  *  starts at ep in some set, returns 0 if not there
   7:  *  (used only in diff.c and inter.c).
   8:  */
   9: 
  10: locate(ep, obj)
  11: struct b_selem *ep, *obj;
  12:    {
  13:    while (ep != NULL) {
  14:       if (ep->hnum > obj->hnum)
  15:           return 0;
  16:       else if ((ep->hnum == obj->hnum) &&
  17:                  (equiv(&ep->setmem, &obj->setmem)))
  18:           return 1;
  19:       ep = (struct b_selem *) BLKLOC(ep->sblink);
  20:       }
  21:    return 0;
  22:    }
  23: #else SETS
  24: char junk;  /* prevent null object file */
  25: #endif SETS

Defined functions

locate defined in line 10; never used

Defined variables

junk defined in line 24; never used
Last modified: 1984-11-18
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 828
Valid CSS Valid XHTML 1.0 Strict