Changeset 0e5dde in git for MP/MP


Ignore:
Timestamp:
Nov 23, 1998, 12:04:59 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
Children:
6cac1b02e25d25026aad95ff33638bde646607e0
Parents:
7b68dad986a23f68c3b877565974c020ecd1ffdf
Message:
* introduces EXTERNAL_MEMORY (--with-malloc=HEADER)


git-svn-id: file:///usr/local/Singular/svn/trunk@2691 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
MP/MP
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • MP/MP/MP.h

    r7b68dad r0e5dde  
    566566#ifndef _MP_Memory_h
    567567#define _MP_Memory_h
     568
     569#ifdef EXTERNAL_MALLOC_H
     570#include EXTERNAL_MALLOC_H
     571#else
    568572 
    569573EXTERN void* (*IMP_MemAllocFnc) _ANSI_ARGS_((size_t));
     
    575579EXTERN void  (*IMP_RawMemFreeFnc) _ANSI_ARGS_((void *));
    576580
     581#endif /* EXTERNAL_MALLOC_H */
    577582
    578583#endif /* _MP_Memory_h */
  • MP/MP/MP_Memory.c

    r7b68dad r0e5dde  
    88
    99#include "MP.h"
     10
     11#ifndef EXTERNAL_MALLOC_H
     12
    1013#include <stdlib.h>
    1114
     
    2831void  (*IMP_RawMemFreeFnc) _ANSI_ARGS_((void *)) = free;
    2932
     33#endif /* EXTERNAL_MALLOC_H */
    3034
    3135
  • MP/MP/h/MP_Config.h.in

    r7b68dad r0e5dde  
    7878/* Define remote shell command */
    7979#define MP_RSH_COMMAND  "rsh"
     80
     81/* Define to use external declarations of memory allocation functions */
     82#undef EXTERNAL_MALLOC_H
     83
  • MP/MP/h/MP_Memory.h

    r7b68dad r0e5dde  
    88#ifndef _MP_Memory_h
    99#define _MP_Memory_h
     10
     11#ifdef EXTERNAL_MALLOC_H
     12#include EXTERNAL_MALLOC_H
     13#else
    1014 
    1115EXTERN void* (*IMP_MemAllocFnc) _ANSI_ARGS_((size_t));
     
    1721EXTERN void  (*IMP_RawMemFreeFnc) _ANSI_ARGS_((void *));
    1822
     23#endif /* EXTERNAL_MALLOC_H */
    1924
    2025#endif /* _MP_Memory_h */
Note: See TracChangeset for help on using the changeset viewer.