/[m4]/m4/m4/hash.c
ViewVC logotype

Diff of /m4/m4/hash.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by gary, Wed Aug 27 17:10:12 2003 UTC revision 1.13 by gary, Thu Sep 11 16:38:12 2003 UTC
# Line 134  m4_hash_delete (m4_hash *hash) Line 134  m4_hash_delete (m4_hash *hash)
134    for (i = 0; i < HASH_SIZE (hash); ++i)    for (i = 0; i < HASH_SIZE (hash); ++i)
135      if (BUCKET_NTH (hash, i))      if (BUCKET_NTH (hash, i))
136        bucket_delete (hash, i);        bucket_delete (hash, i);
137    XFREE (HASH_BUCKETS (hash));    xfree (HASH_BUCKETS (hash));
138    XFREE (hash);    xfree (hash);
139  }  }
140    
141  /* Check that the nodes in bucket I have been cleared, and recycle  /* Check that the nodes in bucket I have been cleared, and recycle
# Line 354  m4_hash_resize (m4_hash *hash, size_t si Line 354  m4_hash_resize (m4_hash *hash, size_t si
354          bucket_insert (hash, original_buckets[i]);          bucket_insert (hash, original_buckets[i]);
355    }    }
356    
357    XFREE (original_buckets);    xfree (original_buckets);
358  }  }
359  #endif  #endif
360    
# Line 385  maybe_grow (m4_hash *hash) Line 385  maybe_grow (m4_hash *hash)
385              bucket_insert (hash, original_buckets[i]);              bucket_insert (hash, original_buckets[i]);
386        }        }
387    
388        XFREE (original_buckets);        xfree (original_buckets);
389      }      }
390  }  }
391    
# Line 484  m4_get_hash_iterator_next (const m4_hash Line 484  m4_get_hash_iterator_next (const m4_hash
484    /* If there are no more nodes to return, recycle the iterator memory.  */    /* If there are no more nodes to return, recycle the iterator memory.  */
485    if (! (ITERATOR_PLACE (place) || ITERATOR_NEXT (place)))    if (! (ITERATOR_PLACE (place) || ITERATOR_NEXT (place)))
486      {      {
487        XFREE (place);        xfree (place);
488        return 0;        return 0;
489      }      }
490    

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26