bridge/class-master/depend/pari/src/language/anal.c
/* Look for s of length len in T; if 'insert', insert if missing */
Look for s of length len in T; if 'insert', insert if missing
Look for s of length len in T ; if ' insert ' insert if missing
static entree *
findentry(const char *s, long len, entree **T, int insert)
{
  ulong hash = hashvalue_raw(s, len);
  entree *ep;
  for (ep = T[hash % functions_tblsz]; ep; ep = ep->next)
    if (ep->hash == hash)
    {
      const char *t = ep->name;
      if (!strncmp(t, s, len) && !t[len]) return ep;
    }
  if (insert) { ep = initep(s,len); insertep(ep, T, hash); }
  return ep;
}
static entree * findentry ( const char * s , long len , entree * * T , int insert ) { ulong hash = hashvalue_raw ( s , len ) ; entree * ep ; for ( ep = T [ hash % functions_tblsz ] ; ep ; ep = ep -> next ) if ( ep -> hash == hash ) { const char * t = ep -> name ; if ( ! strncmp ( t , s , len ) && ! t [ len ] ) return ep ; } if ( insert ) { ep = initep ( s , len ) ; insertep ( ep , T , hash ) ; } return ep ; }
Look for s of length len in T; if 'insert', insert if missing
Look for s of length len in T ; if ' insert ' insert if missing
/* not found */