[R-gregmisc-users] SF.net SVN: r-gregmisc:[1853] trunk/SASxport/src/to_bigend.h
Brought to you by:
warnes
From: <wa...@us...> - 2014-07-21 13:44:45
|
Revision: 1853 http://sourceforge.net/p/r-gregmisc/code/1853 Author: warnes Date: 2014-07-21 13:44:38 +0000 (Mon, 21 Jul 2014) Log Message: ----------- Add comments about system functions to do same task. Modified Paths: -------------- trunk/SASxport/src/to_bigend.h Modified: trunk/SASxport/src/to_bigend.h =================================================================== --- trunk/SASxport/src/to_bigend.h 2014-07-21 13:41:27 UTC (rev 1852) +++ trunk/SASxport/src/to_bigend.h 2014-07-21 13:44:38 UTC (rev 1853) @@ -23,4 +23,8 @@ #define TO_BIGEND_INT(a) to_bigend( (unsigned char*) &a, sizeof(int) ) #define TO_BIGEND_DOUBLE(a) to_bigend( (unsigned char*) &a, sizeof(double) ) +/* Alternative definition using system functions: */ +/* #define TO_BIGEND_SHORT(a) (a) = htons( a ) */ +/* #define TO_BIGEND_INT(a) (a) = htonl( a ) */ + #endif /* TO_BIGEND_H */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |