Ignore:
Timestamp:
Mar 22, 2008, 10:39:25 AM (12 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/points.hpp

    r57 r129  
    1010#ifndef __POINTS_HPP_
    1111#define __POINTS_HPP_
     12
    1213#include <stdio.h>
    1314#include <stdlib.h>
    14 #include "jmalloc.hpp"
     15
    1516#include "specs.hpp"
    1617
     
    2627  long size() { return 1+2*tot; }
    2728  point_list *copy() { return new point_list(tot,data); }
    28   ~point_list() { if (tot) { jfree(data); } }
     29  ~point_list() { if (tot) { free(data); } }
    2930} ;
    3031
Note: See TracChangeset for help on using the changeset viewer.