Changeset 2540 for trunk/src


Ignore:
Timestamp:
Jan 28, 2000, 12:46:57 AM (26 years ago)
Author:
bird
Message:

Updated to use resident heap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/misc/new.cpp

    r1678 r2540  
    1 /* $Id: new.cpp,v 1.3 1999-11-10 01:45:37 bird Exp $
     1/* $Id: new.cpp,v 1.4 2000-01-27 23:46:57 bird Exp $
    22 *
    33 * new - new and delete operators.
     
    2222
    2323#include "new.h"
    24 #include "malloc.h"
     24#include "rmalloc.h"
    2525#include "log.h"
    2626
     
    3434void *operator new(size_t size)
    3535{
    36     return malloc(size);
     36    return rmalloc(size);
    3737}
    3838
     
    7474void operator delete(void *location)
    7575{
    76     free(location);
     76    rfree(location);
    7777}
    7878
     
    9898void *operator new(size_t size, const char *filename, size_t lineno)
    9999{
    100     return malloc(size);
     100    return rmalloc(size);
    101101}
    102102
     
    138138void operator delete(void *location, const char *filename, size_t lineno)
    139139{
    140     free(location);
     140    rfree(location);
    141141}
    142142
Note: See TracChangeset for help on using the changeset viewer.