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
		
			
				
	
	
		
			48 lines
		
	
	
		
			798 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			798 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
/* DEC	*ChangeSignDecimal(pDst,pSrc1)
 | 
						|
 *
 | 
						|
 * ARGUMENT
 | 
						|
 *	DEC*	pDst	ptr to the destination DEC structure.
 | 
						|
 *	DEC*	pSrc1	ptr to the source1 DEC structure.
 | 
						|
 *
 | 
						|
 * DESCRIPTION
 | 
						|
 *	Sets pDst=-(pSrc1).
 | 
						|
 *
 | 
						|
 * SIDE	EFFECTS
 | 
						|
 *	None.
 | 
						|
 *
 | 
						|
 * RETURNS
 | 
						|
 *	Returns	a pointer to the DEC structure unless overflow.
 | 
						|
 *   GM_NULL if	an overflow occurs.
 | 
						|
 *
 | 
						|
 * POSSIBLE ERROR CODES:
 | 
						|
 *
 | 
						|
 *	GM_NULLPOINTER
 | 
						|
 *	GM_NOMEMORY
 | 
						|
 *
 | 
						|
 * AUTHOR
 | 
						|
 *  Andy Anderson   13-JAN-1987	 17:20
 | 
						|
 *   Copyright (C) 1987-1990 Greenleaf Software	Inc.  All rights reserved.
 | 
						|
 *
 | 
						|
 * MODIFICATIONS
 | 
						|
 *
 | 
						|
 */
 | 
						|
 | 
						|
#include <stdio.h>
 | 
						|
#include "gm.h"
 | 
						|
#include "gmsystem.h"
 | 
						|
 | 
						|
DEC	*ChangeSignDecimal(pDst,pSrc)
 | 
						|
DEC	*pDst,*pSrc;
 | 
						|
{
 | 
						|
 | 
						|
	_MacStart(GM_DCHGS);
 | 
						|
 | 
						|
	_MacInVar(pSrc,GM_NULL);
 | 
						|
	_MacOutVar(pDst,GM_NULL);
 | 
						|
 | 
						|
	_MacDCopy(pDst,pSrc);
 | 
						|
	_MacDChgs(pDst);
 | 
						|
 | 
						|
	_MacRet(pDst);
 | 
						|
}
 |