Diff for /libwww/Library/src/HTAnchor.c between versions 1.35 and 1.36

version 1.35, 1995/10/27 19:10:09 version 1.36, 1995/11/03 22:34:54
Line 677  PUBLIC BOOL HTAnchor_hasChildren  (HTPar Line 677  PUBLIC BOOL HTAnchor_hasChildren  (HTPar
   
 PUBLIC void HTAnchor_clearIndex  (HTParentAnchor * me)  PUBLIC void HTAnchor_clearIndex  (HTParentAnchor * me)
 {  {
     if (me)      if (me) me->isIndex = NO;
         me->isIndex = NO;  
 }  }
   
 PUBLIC void HTAnchor_setIndex  (HTParentAnchor * me)  PUBLIC void HTAnchor_setIndex  (HTParentAnchor * me)
 {  {
   if (me)    if (me) me->isIndex = YES;
     me->isIndex = YES;  
 }  }
   
 PUBLIC BOOL HTAnchor_isIndex  (HTParentAnchor * me)  PUBLIC BOOL HTAnchor_isIndex  (HTParentAnchor * me)
Line 698  PUBLIC BOOL HTAnchor_isIndex  (HTParentA Line 696  PUBLIC BOOL HTAnchor_isIndex  (HTParentA
   
 PUBLIC void * HTAnchor_protocol (HTParentAnchor * me)  PUBLIC void * HTAnchor_protocol (HTParentAnchor * me)
 {  {
     return me->protocol;      return me ? me->protocol : NULL;
 }  }
   
 PUBLIC void HTAnchor_setProtocol (HTParentAnchor * me,  PUBLIC void HTAnchor_setProtocol (HTParentAnchor * me,
         void*   protocol)          void*   protocol)
 {  {
     me->protocol = protocol;      if (me) me->protocol = protocol;
 }  }
   
 /*      Physical Address  /*      Physical Address
Line 713  PUBLIC void HTAnchor_setProtocol (HTPare Line 711  PUBLIC void HTAnchor_setProtocol (HTPare
   
 PUBLIC char * HTAnchor_physical (HTParentAnchor * me)  PUBLIC char * HTAnchor_physical (HTParentAnchor * me)
 {  {
     return me->physical;      return me ? me->physical : NULL;
 }  }
   
 PUBLIC void HTAnchor_setPhysical (HTParentAnchor * me,  PUBLIC void HTAnchor_setPhysical (HTParentAnchor * me,
Line 732  PUBLIC void HTAnchor_setPhysical (HTPare Line 730  PUBLIC void HTAnchor_setPhysical (HTPare
 */  */
 PUBLIC BOOL HTAnchor_cacheHit (HTParentAnchor * me)  PUBLIC BOOL HTAnchor_cacheHit (HTParentAnchor * me)
 {  {
     return me->cacheHit;      return me ? me->cacheHit : NO;
 }  }
   
 PUBLIC void HTAnchor_setCacheHit (HTParentAnchor * me, BOOL cacheHit)  PUBLIC void HTAnchor_setCacheHit (HTParentAnchor * me, BOOL cacheHit)
 {  {
     me->cacheHit = cacheHit;      if (me) me->cacheHit = cacheHit;
 }  }
   
 /* ------------------------------------------------------------------------- */  /* ------------------------------------------------------------------------- */

Removed from v.1.35  
changed lines
  Added in v.1.36


Webmaster