Changeset 558fb3c in git for Singular/mmalloc.cc


Ignore:
Timestamp:
Nov 20, 2000, 11:18:56 AM (23 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
5071cc7ffefd92952d923d91a337cb59c197f1d8
Parents:
aceaa4469461028a065a685122fbc8e4c4d0c823
Message:
*hannes: C/C++ differences (found on SUN)


git-svn-id: file:///usr/local/Singular/svn/trunk@4739 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/mmalloc.cc

    raceaa4 r558fb3c  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mmalloc.cc,v 1.1 2000-08-14 13:11:26 obachman Exp $ */
     4/* $Id: mmalloc.cc,v 1.2 2000-11-20 10:18:55 hannes Exp $ */
    55/*
    6 * ABSTRACT: standard version of memory management alloc func
     6* ABSTRACT: standard version of C++-memory management alloc func
    77*/
     8#include <stdlib.h>
    89
    910#include "mod2.h"
    1011
     12#include <omalloc.h>
     13
    1114/* We define those, so that our values of
    1215   OM_TRACK and OM_CHECK are used  */
    13 
    14 extern "C"
    15 {
    16 // define this so that all addr allocated there are marked
    17 // as static, i.e. not metioned by omPrintUsedAddr
    18 #define OM_MALLOC_MARK_AS_STATIC
    19 #include <omalloc.c>
    20 }
    2116
    2217void* operator new ( size_t size )
     
    4540  omfree( block );
    4641}
    47 
    48 
    49 
Note: See TracChangeset for help on using the changeset viewer.