Changeset db90f03


Ignore:
Timestamp:
Feb 28, 2007, 10:31:42 PM (14 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
2d1feac
Parents:
50622a5
Message:
 r19159@phanatique:  nelhage | 2007-02-28 22:31:17 -0500
 We don't need to free message keys any more.
 
 r19160@phanatique:  nelhage | 2007-02-28 22:31:37 -0500
 Some explanatory comments in obarray
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • message.c

    re849734 rdb90f03  
    1818  owl_message_set_direction_none(m);
    1919  m->delete=0;
    20   m->hostname=owl_strdup("");
    2120  m->zwriteline=strdup("");
    2221  m->invalid_format=1;
     
    979978  for (i=0; i<j; i++) {
    980979    p=owl_list_get_element(&(m->attributes), i);
    981     owl_free(owl_pair_get_key(p));
    982980    owl_free(owl_pair_get_value(p));
    983981    owl_free(p);
  • obarray.c

    r124aebc rdb90f03  
    33#include "owl.h"
    44
    5 // Lookup a key in the obarray. If the key exists, return its index,
    6 // and the interned value in *val. Otherwise, return the index it
    7 // should be inserted at.
     5/*
     6 * At the moment, the obarray is represented as a sorted list of
     7 * strings. I judge this a reasonable tradeoff between simplicity and
     8 * reasonable efficient lookup (insertion should be comparatively
     9 * rare)
     10 */
     11
     12// Helper method: Lookup a key in the obarray. If the key exists,
     13// return its index, and the interned value in *val. Otherwise, return
     14// the index it should be inserted at.
    815int owl_obarray_lookup(owl_obarray *oa, char * key, char ** val) /*noproto*/
    916{
Note: See TracChangeset for help on using the changeset viewer.