[Plib-cvs] CVS: plib/src/util ulLinkedList.cxx,NONE,1.1 Makefile.am,1.6,1.7 ul.dsp,1.12,1.13 ul.h,1.
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-03-20 15:48:27
|
Update of /cvsroot/plib/plib/src/util In directory usw-pr-cvs1:/tmp/cvs-serv19706/util Modified Files: Makefile.am ul.dsp ul.h Added Files: ulLinkedList.cxx Log Message: Introduced ulLinkedList --- NEW FILE: ulLinkedList.cxx --- /* PLIB - A Suite of Portable Game Libraries Copyright (C) 2001 Steve Baker This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA For further information visit http://plib.sourceforge.net [...236 lines suppressed...] { ulListNode *node = head ; while ( node != NULL ) { ulListNode *next = node -> getNext () ; if ( destroyfn != NULL ) (*destroyfn) ( node -> getData () ) ; delete node ; node = next ; } head = tail = NULL ; nnodes = 0 ; sorted = true ; } Index: Makefile.am =================================================================== RCS file: /cvsroot/plib/plib/src/util/Makefile.am,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- Makefile.am 7 Jul 2001 04:45:32 -0000 1.6 +++ Makefile.am 20 Mar 2002 15:48:23 -0000 1.7 @@ -1,9 +1,9 @@ - lib_LIBRARIES = libplibul.a - + include_HEADERS = ul.h - -libplibul_a_SOURCES = ul.cxx ulClock.cxx ulError.cxx ulList.cxx - + +libplibul_a_SOURCES = ul.cxx ulClock.cxx ulError.cxx ulLinkedList.cxx \ + ulList.cxx + EXTRA_DIST = ul.dsp Index: ul.dsp =================================================================== RCS file: /cvsroot/plib/plib/src/util/ul.dsp,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- ul.dsp 17 Dec 2001 22:44:56 -0000 1.12 +++ ul.dsp 20 Mar 2002 15:48:23 -0000 1.13 @@ -110,6 +110,10 @@ # End Source File # Begin Source File +SOURCE=.\ulLinkedList.cxx +# End Source File +# Begin Source File + SOURCE=.\ulList.cxx # End Source File # End Target Index: ul.h =================================================================== RCS file: /cvsroot/plib/plib/src/util/ul.h,v retrieving revision 1.34 retrieving revision 1.35 diff -u -d -r1.34 -r1.35 --- ul.h 3 Mar 2002 14:17:16 -0000 1.34 +++ ul.h 20 Mar 2002 15:48:23 -0000 1.35 @@ -1,21 +1,21 @@ /* PLIB - A Suite of Portable Game Libraries Copyright (C) 2001 Steve Baker - + This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - + [...87 lines suppressed...] + + void removeNode ( void *data ) ; + void * removeNode ( int pos ) ; + + void * getNodeData ( int pos ) const ; + + void forEach ( ulIterateFunc fn ) const ; + + void empty ( ulIterateFunc destroyfn = NULL ) ; +} ; + + extern int ulStrNEqual ( const char *s1, const char *s2, int len ); extern int ulStrEqual ( const char *s1, const char *s2 ); //lint -restore #endif - |