ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/caldefn.c
(Generate patch)

Comparing ray/src/common/caldefn.c (file contents):
Revision 1.18 by greg, Wed Aug 14 08:27:56 1991 UTC vs.
Revision 1.19 by greg, Wed Aug 14 15:50:38 1991 UTC

# Line 258 | Line 258 | incontext(qn)                  /* is qualified name in current contex
258   register char  *qn;
259   {
260      while (*qn && *qn != CNTXMARK)      /* find context mark */
261 <        ;
261 >        qn++;
262      return(!strcmp(qn, context));
263   }
264  
# Line 398 | Line 398 | EPNODE *
398   dnext()                         /* return pointer to next definition */
399   {
400      register EPNODE  *ep;
401 +    register char  *nm;
402  
403      while (htndx < NHASH) {
404          if (htpos == NULL)
405                  htpos = hashtbl[htndx++];
406          while (htpos != NULL) {
407              ep = htpos->def;
408 +            nm = htpos->name;
409              htpos = htpos->next;
410 <            if (ep != NULL)
410 >            if (ep != NULL && incontext(nm))
411                  return(ep);
412          }
413      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines