fis-gtm/sr_port/op_gvo2.c

32 lines
862 B
C
Raw Permalink Normal View History

/****************************************************************
* *
* Copyright 2001, 2011 Fidelity Information Services, Inc *
* *
* This source code contains the intellectual property *
* of its copyright holder(s), and is made available *
* under a license. If you do not know the terms of *
* the license, please stop and do not read further. *
* *
****************************************************************/
#include "mdef.h"
#include "op.h"
#include "mvalconv.h"
error_def(ERR_ORDER2);
void op_gvo2(mval *dst,mval *direct)
{
int4 dummy_intval;
MV_FORCE_NUM(direct);
if (!MV_IS_TRUEINT(direct, &dummy_intval) || (direct->m[1] != (1 * MV_BIAS) && direct->m[1] != (-1 * MV_BIAS)))
rts_error(VARLSTCNT(1) ERR_ORDER2);
else
{ if (direct->m[1] == 1*MV_BIAS)
op_gvorder(dst);
else
op_zprevious(dst);
}
}