]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake2/qdata_heretic2/qcommon/arrayedlist.h
uncrustify! now the code is only ugly on the *inside*
[xonotic/netradiant.git] / tools / quake2 / qdata_heretic2 / qcommon / arrayedlist.h
index 831f37cffa4ef755978937e812ed91d2eb981557..1d0bbc3cc73260578ba0f9ecd2139c3f068d5093 100644 (file)
@@ -1,23 +1,23 @@
 /*
-Copyright (C) 1999-2007 id Software, Inc. and contributors.
-For a list of contributors, see the accompanying CONTRIBUTORS file.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
+   For a list of contributors, see the accompanying CONTRIBUTORS file.
 
-This file is part of GtkRadiant.
+   This file is part of GtkRadiant.
 
-GtkRadiant 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.
+   GtkRadiant 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.
 
-GtkRadiant 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.
+   GtkRadiant 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 GtkRadiant; if not, write to the Free Software
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
+   You should have received a copy of the GNU General Public License
+   along with GtkRadiant; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
 
 #ifndef _ARRAYEDLIST_H
 #define _ARRAYEDLIST_H
@@ -33,39 +33,35 @@ typedef struct ArrayedListNode_s
 
 #define ARRAYEDLISTNODE_NULL -1
 
-static 
+static
 #ifdef _WIN32
-  _inline
+_inline
 #else
-  inline
-#endif  
-  int GetFreeNode(ArrayedListNode_t *nodeArray, int max)
-{
+inline
+#endif
+int GetFreeNode( ArrayedListNode_t *nodeArray, int max ){
        int i;
 
-       for(i = 0; i < max; ++i)
+       for ( i = 0; i < max; ++i )
        {
-               if(!nodeArray[i].inUse)
-               {
+               if ( !nodeArray[i].inUse ) {
                        nodeArray[i].inUse = 1;
                        return i;
                }
        }
 
-       assert(0);
+       assert( 0 );
        return -1;
 }
 
-static 
+static
 #ifdef _WIN32
-  _inline
+_inline
 #else
-  inline
+inline
 #endif
-void FreeNode(ArrayedListNode_t *nodeArray, int index)
-{
+void FreeNode( ArrayedListNode_t *nodeArray, int index ){
        nodeArray[index].inUse = 0;
 }
 
 #endif //_ARRAYEDLIST_H
-