campo-sirio/gfm/darfree.c
alex ba237a9d91 Patch level : no patch
Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
Aggiunti i sorgenti per Greenleaf Math Library (gfm.dll)


git-svn-id: svn://10.65.10.50/trunk@10079 c028cbd2-c16b-5b4b-a496-9718f37d4682
2002-02-26 12:19:02 +00:00

62 lines
953 B
C
Executable File

/* void FreeDecimalArray(pSrc1)
*
* ARGUMENT
* pSrc1 is a ptr to an array of source DEC pointers.
*
* DESCRIPTION
* Returns storage to DOS via free().
*
* SIDE EFFECTS
* Does NOT CHECK to see if spaces was allocated via malloc().
* Therefore, DOS will lock up cause cold reboot if unallocated
* space is freed
*
* RETURNS
* None.
*
* POSSIBLE ERROR CODES
*
* GM_NULLPOINTER
*
* AUTHOR
* Andy Anderson 17-JAN-1987 14:35
* Copyright (C) 1987-1990 Greenleaf Software Inc. All rights reserved.
*
* MODIFICATIONS
*
*/
#include <stdio.h>
#include <malloc.h>
#include "gm.h"
#include "gmsystem.h"
void FreeDecimalArray(pSrc1)
DEC **pSrc1;
{
#ifdef LATTICE
void free();
#else
void free(void*);
#endif
DEC *p;
_MacStart(GM_DARFREE);
/* Can't free null pointers */
if(!pSrc1) {
_MacErr(GM_NULLPOINTER);
_MacRetV;
}
p = *pSrc1;
#ifdef LATTICE
free((char *) p);
#else
free((char *) p);
#endif
_MacRetV;
}