gdal-1.11.0/frmts/pcraster/libcsf/setmv.c
void SetMVcellRepr(
	CSF_CR cellRepr, /* cell representation, one of the CR_* constants */
	void *c)      /* write-only. location set to missing value */
{
	switch (cellRepr)
	{
		case CR_INT1  : *((INT1 *)c) = MV_INT1;
				break;
		case CR_INT2  : *((INT2 *)c) = MV_INT2;
				break;
		case CR_INT4  : *((INT4 *)c) = MV_INT4;
				break;
		case CR_UINT1 : *((UINT1 *)c) = MV_UINT1;
				break;
		case CR_UINT2 : *((UINT2 *)c) = MV_UINT2;
				break;
		case CR_REAL8 :
				((UINT4 *)c)[1] = MV_UINT4;
		default       : POSTCOND(
					cellRepr == CR_REAL8 ||
					cellRepr == CR_REAL4 ||
					cellRepr == CR_UINT4 );
				*((UINT4 *)c) = MV_UINT4;
	}
}
/* set a memory location to a missing value
 * SetMVcellRepr sets a memory location to a missing value
 * (using the application cell representation).
 * In general one should use assignment for
 * integers (e.g. v = MV_UINT1) or the macro's
 * SET_MV_REAL4 and SET_MV_REAL8
 *
 */
set a memory location to a missing value
SetMVcellRepr sets a memory location to a missing value
(using the application cell representation).
In general one should use assignment for
integers  or the macro's
SET_MV_REAL4 and SET_MV_REAL8
set a memory location to a missing value SetMVcellRepr sets a memory location to a missing value ( using the application cell representation ) . In general one should use assignment for integers or the macro ' s SET_MV_REAL4 and SET_MV_REAL8
void SetMVcellRepr(
	CSF_CR cellRepr, 
	void *c)      
{
	switch (cellRepr)
	{
		case CR_INT1  : *((INT1 *)c) = MV_INT1;
				break;
		case CR_INT2  : *((INT2 *)c) = MV_INT2;
				break;
		case CR_INT4  : *((INT4 *)c) = MV_INT4;
				break;
		case CR_UINT1 : *((UINT1 *)c) = MV_UINT1;
				break;
		case CR_UINT2 : *((UINT2 *)c) = MV_UINT2;
				break;
		case CR_REAL8 :
				((UINT4 *)c)[1] = MV_UINT4;
		default       : POSTCOND(
					cellRepr == CR_REAL8 ||
					cellRepr == CR_REAL4 ||
					cellRepr == CR_UINT4 );
				*((UINT4 *)c) = MV_UINT4;
	}
}
void SetMVcellRepr ( CSF_CR cellRepr , void * c ) { switch ( cellRepr ) { case CR_INT1 : * ( ( INT1 * ) c ) = MV_INT1 ; break ; case CR_INT2 : * ( ( INT2 * ) c ) = MV_INT2 ; break ; case CR_INT4 : * ( ( INT4 * ) c ) = MV_INT4 ; break ; case CR_UINT1 : * ( ( UINT1 * ) c ) = MV_UINT1 ; break ; case CR_UINT2 : * ( ( UINT2 * ) c ) = MV_UINT2 ; break ; case CR_REAL8 : ( ( UINT4 * ) c ) [ 1 ] = MV_UINT4 ; default : POSTCOND ( cellRepr == CR_REAL8 || cellRepr == CR_REAL4 || cellRepr == CR_UINT4 ) ; * ( ( UINT4 * ) c ) = MV_UINT4 ; } }
set a memory location to a missing value
 SetMVcellRepr sets a memory location to a missing value
 (using the application cell representation).
set a memory location to a missing value SetMVcellRepr sets a memory location to a missing value ( using the application cell representation ) .
/* cell representation, one of the CR_* constants */ /* write-only. location set to missing value */