/[escript]/branches/doubleplusgood/dudley/src/TagMap.cpp
ViewVC logotype

Diff of /branches/doubleplusgood/dudley/src/TagMap.cpp

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

revision 4331 by jfenwick, Wed Feb 27 06:09:33 2013 UTC revision 4332 by jfenwick, Thu Mar 21 04:21:14 2013 UTC
# Line 40  void Dudley_TagMap_insert(Dudley_TagMap Line 40  void Dudley_TagMap_insert(Dudley_TagMap
40      }      }
41      if (*tag_map == NULL)      if (*tag_map == NULL)
42      {      {
43      map = MEMALLOC(1, Dudley_TagMap);      map = new Dudley_TagMap;
44      if (Dudley_checkPtr(map))      if (Dudley_checkPtr(map))
45          return;          return;
46      map->name = MEMALLOC(strlen(name) + 1, char);      map->name = new char[strlen(name) + 1];
47      if (Dudley_checkPtr(map->name))      if (Dudley_checkPtr(map->name))
48      {      {
49          MEMFREE(map);          delete map;
50      }      }
51      else      else
52      {      {
# Line 117  void Dudley_TagMap_free(Dudley_TagMap * Line 117  void Dudley_TagMap_free(Dudley_TagMap *
117      if (in != NULL)      if (in != NULL)
118      {      {
119      Dudley_TagMap_free(in->next);      Dudley_TagMap_free(in->next);
120      MEMFREE(in->name);      delete[] in->name;
121      MEMFREE(in);      delete in;
122      }      }
123      return;      return;
124  }  }

Legend:
Removed from v.4331  
changed lines
  Added in v.4332

  ViewVC Help
Powered by ViewVC 1.1.26