]> git.jsancho.org Git - lugaru.git/blobdiff - Source/private.h
License: Update GPLv2+ header to match current FSF recommendation
[lugaru.git] / Source / private.h
index 44962a1dd54b61e7bca602c7d48ef37aeb9b3d5c..531cbf966a91443171d75e1b85d39d5a9ee52fcb 100644 (file)
@@ -3,20 +3,18 @@ Copyright (C) 2003, 2010 - Wolfire Games
 
 This file is part of Lugaru.
 
-Lugaru 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.
+Lugaru 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,
+Lugaru 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.
+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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #ifndef private_h
@@ -49,9 +47,9 @@ typedef unsigned char      uint8_t;
 typedef unsigned short     uint16_t;
 typedef unsigned long      uint32_t;
 #ifdef WIN32
-       typedef unsigned __int64        uint64_t;
+typedef unsigned __int64   uint64_t;
 #else
-       typedef unsigned long long uint64_t;
+typedef unsigned long long uint64_t;
 #endif
 typedef float              float32_t;
 typedef double             float64_t;
@@ -107,15 +105,12 @@ BinIO_INLINE void BinIOSwap8(const uint8_t *src, uint8_t *dst)
 
 BinIO_INLINE int BinIONormalizeByteOrder(int byte_order)
 {
-    if (byte_order == BinIO_HOST_BYTE_ORDER)
-    {
+    if (byte_order == BinIO_HOST_BYTE_ORDER) {
         byte_order = BinIO_BYTE_ORDER;
-    }
-    else if (byte_order == BinIO_NETWORK_BYTE_ORDER)
-    {
+    } else if (byte_order == BinIO_NETWORK_BYTE_ORDER) {
         byte_order = BinIO_BIG_ENDIAN_BYTE_ORDER;
     }
-    
+
     return byte_order;
 }
 
@@ -132,8 +127,7 @@ extern void BinIOConvert8(int from_byte_order, int to_byte_order,
                           const uint8_t *src, uint8_t *dst,
                           unsigned int count);
 
-struct BinIOFormatCursor
-{
+struct BinIOFormatCursor {
     const char *cursor;
     int         byte_order;
     int         count;