--- sourceforge.net/trunk/rdesktop/parse.h 2003/07/01 09:31:25 432 +++ sourceforge.net/trunk/rdesktop/parse.h 2007/01/04 05:39:39 1365 @@ -1,18 +1,18 @@ /* rdesktop: A Remote Desktop Protocol client. Parsing primitives - Copyright (C) Matthew Chapman 1999-2002 - + Copyright (C) Matthew Chapman 1999-2007 + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. @@ -70,7 +70,6 @@ #define out_uint32(s,v) out_uint32_be(s,v) #else -#define next_be(s,v) v = ((v) << 8) + *((s)->p++); #define in_uint16_be(s,v) { v = *((s)->p++); next_be(s,v); } #define in_uint32_be(s,v) { in_uint16_be(s,v); next_be(s,v); next_be(s,v); } #define out_uint16_be(s,v) { *((s)->p++) = ((v) >> 8) & 0xff; *((s)->p++) = (v) & 0xff; } @@ -92,3 +91,5 @@ #define out_uint8p(s,v,n) { memcpy((s)->p,v,n); (s)->p += n; } #define out_uint8a(s,v,n) out_uint8p(s,v,n); #define out_uint8s(s,n) { memset((s)->p,0,n); (s)->p += n; } + +#define next_be(s,v) v = ((v) << 8) + *((s)->p++);