Ignore:
Timestamp:
Mar 22, 2008, 10:39:25 AM (15 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of jmalloc and replace it with standard malloc. Modern operating systems certainly perform a lot better than this custom implementation, and we have superior tools (eg. valgrind) to debug and profile memory usage without interfering with the code itself.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/level.hpp

    r124 r129  
    9898  level(int width, int height, char const *name);
    9999  int save(char const *filename, int save_all);  // save_all includes player and view information (1 = success)
    100   void set_name(char const *name) { Name=strcpy((char *)jrealloc(Name,strlen(name)+1,"map name"),name); }
     100  void set_name(char const *name) { Name=strcpy((char *)realloc(Name,strlen(name)+1),name); }
    101101  void set_size(int w, int h);
    102102  void remove_light(light_source *which);
Note: See TracChangeset for help on using the changeset viewer.