plib-cvs Mailing List for PLIB (Page 60)
Brought to you by:
sjbaker
You can subscribe to this list here.
2002 |
Jan
(25) |
Feb
(10) |
Mar
(60) |
Apr
(49) |
May
(54) |
Jun
(94) |
Jul
(82) |
Aug
(251) |
Sep
(366) |
Oct
(17) |
Nov
(20) |
Dec
(14) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(12) |
Feb
(8) |
Mar
(2) |
Apr
(4) |
May
(5) |
Jun
(8) |
Jul
(23) |
Aug
(8) |
Sep
(7) |
Oct
(5) |
Nov
(20) |
Dec
(20) |
2004 |
Jan
(19) |
Feb
(70) |
Mar
(108) |
Apr
(24) |
May
(6) |
Jun
(5) |
Jul
|
Aug
(8) |
Sep
(18) |
Oct
(27) |
Nov
|
Dec
(13) |
2005 |
Jan
(19) |
Feb
(13) |
Mar
(1) |
Apr
|
May
(10) |
Jun
(1) |
Jul
(10) |
Aug
(5) |
Sep
(2) |
Oct
(2) |
Nov
(6) |
Dec
(4) |
2006 |
Jan
(9) |
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Sebastian U. <ud...@us...> - 2002-03-24 01:01:29
|
Update of /cvsroot/plib/plib/doc/sl In directory usw-pr-cvs1:/tmp/cvs-serv29265 Modified Files: sm.html Log Message: Added keywords, description and "Valid HTML 4.0" image Index: sm.html =================================================================== RCS file: /cvsroot/plib/plib/doc/sl/sm.html,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- sm.html 29 Oct 2001 18:40:41 -0000 1.5 +++ sm.html 24 Mar 2002 01:01:24 -0000 1.6 @@ -2,6 +2,8 @@ <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <META name="keywords" content="SM, PLIB, OpenGL, sound, library, mixer, OSS, Baker, Steve, smMixer"> + <META name="description" content="The PLIB SM Library allows one to drive the mixer controls of most PC-style sound cards."> <TITLE>The SL Mixer Library.</TITLE> </HEAD> <BODY text="#B5A642" link="#8FFF8F" vlink="#18A515" alink="#20336B" @@ -88,11 +90,17 @@ 'not_working()' returns TRUE - so programs written for audio should work OK even on Linux boxes with no audio support. <hr> +<table> +<tr> +<td> +<a href="http://validator.w3.org/check/referer"><img border="0" src="../valid-html40.png" alt="Valid HTML 4.0!" height="31" width="88"></a> +<td> <ADDRESS> <A HREF="http://www.sjbaker.org"> Steve J. Baker.</A> <<A HREF="mailto:sjb...@ai...">sjb...@ai...</A>> </ADDRESS> +</table> </BODY> </HTML> |
From: Sebastian U. <ud...@us...> - 2002-03-24 00:50:51
|
Update of /cvsroot/plib/plib/doc/sl In directory usw-pr-cvs1:/tmp/cvs-serv26931 Modified Files: index.html Log Message: Added keywords, description and "Valid HTML 4.0" image Index: index.html =================================================================== RCS file: /cvsroot/plib/plib/doc/sl/index.html,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- index.html 27 Oct 2001 05:34:47 -0000 1.4 +++ index.html 24 Mar 2002 00:50:48 -0000 1.5 @@ -2,6 +2,8 @@ <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <META name="keywords" content="SL, SM, PLIB, OpenGL, sound, library, portable, games, sample, replay, mixer, OSS, Baker, Steve"> + <META name="description" content="The PLIB SL Library is targetted towards producing sound effects for games and other realtime applications. The emphasis is on low CPU impact and low latency rather than high quality and fancy MIDI/MOD facilities. The PLIB SM Library controls the audio mixer on a PC sound card."> <TITLE>The SL Sound and Mixer Libraries.</TITLE> </HEAD> <BODY text="#B5A642" link="#8FFF8F" vlink="#18A515" alink="#20336B" @@ -53,11 +55,17 @@ <A HREF="http://www.4front-tech.com">Download the Open Sound System drivers (previously known as VoxWare).</A> <hr> +<table> +<tr> +<td> +<a href="http://validator.w3.org/check/referer"><img border="0" src="../valid-html40.png" alt="Valid HTML 4.0!" height="31" width="88"></a> +<td> <ADDRESS> <A HREF="http://www.sjbaker.org"> Steve J. Baker.</A> <<A HREF="mailto:sjb...@ai...">sjb...@ai...</A>> </ADDRESS> +</table> </BODY> </HTML> |
From: Sebastian U. <ud...@us...> - 2002-03-24 00:35:49
|
Update of /cvsroot/plib/plib/doc/util In directory usw-pr-cvs1:/tmp/cvs-serv24103 Modified Files: index.html Log Message: Introduced some UL documentation Index: index.html =================================================================== RCS file: /cvsroot/plib/plib/doc/util/index.html,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- index.html 27 Oct 2001 05:34:47 -0000 1.7 +++ index.html 24 Mar 2002 00:35:44 -0000 1.8 @@ -2,6 +2,8 @@ <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <META name="keywords" content="UL, PLIB, OpenGL, utility, library, portable, Baker, Steve, ulDir, ulClock, ulDynamicLibrary, ulList, ulLinkedList, ulHashTable, ulPropertySet, ulSleep, ulMilliSecondSleep, ulFindFile, ulFileExists, ulIsAbsolutePathName, ulGetCWD, ulMakePath, ulSetErrorCallback, ulGetErrorCallback, ulGetError, ulClearError, ulStrEqual, ulStrNEqual"> + <META name="description" content="The PLIB Utility Library is targeted towards hiding common operating system functions behind a thin layer that makes them portable and provides some useful helper classes and routines."> <TITLE>The Utility Library.</TITLE> </HEAD> <BODY text="#B5A642" link="#8FFF8F" vlink="#18A515" alink="#20336B" @@ -9,72 +11,124 @@ <H1>The PLIB general Utility Library.</H1> [...646 lines suppressed...] + size_t ulEndianWriteBig32 ( FILE *f, unsigned int x ) ; + size_t ulEndianWriteBigFloat ( FILE *f, float x ) ; +</i></pre> +No further documentation yet. + <hr> +<table> +<tr> +<td> +<a href="http://validator.w3.org/check/referer"><img border="0" src="../valid-html40.png" alt="Valid HTML 4.0!" height="31" width="88"></a> +<td> <ADDRESS> <A HREF="http://www.sjbaker.org"> Steve J. Baker.</A> <<A HREF="mailto:sjb...@ai...">sjb...@ai...</A>> </ADDRESS> +</table> </BODY> </HTML> |
From: Sebastian U. <ud...@us...> - 2002-03-24 00:02:44
|
Update of /cvsroot/plib/plib/doc/pui In directory usw-pr-cvs1:/tmp/cvs-serv17807 Modified Files: index.html Log Message: Fixed typo; Added "Valid HTML 4.0" image Index: index.html =================================================================== RCS file: /cvsroot/plib/plib/doc/pui/index.html,v retrieving revision 1.39 retrieving revision 1.40 diff -u -d -r1.39 -r1.40 --- index.html 28 Dec 2001 17:28:47 -0000 1.39 +++ index.html 24 Mar 2002 00:02:42 -0000 1.40 @@ -2407,8 +2407,13 @@ from examples/src/fnt/data/ are in the current directory when using the GLUT-less PUI library. <hr> +<table> +<tr> +<td> +<a href="http://validator.w3.org/check/referer"><img border="0" src="../valid-html40.png" alt="Valid HTML 4.0!" height="31" width="88"></a> +<td> <address> -<a href="http://www.sjbaker.org">Steve J. Baker.</a> <<a href="mailto:sjb...@ai...">sjb...@ai...</a>></address> - +<a href="http://www.sjbaker.org">Steve J. Baker.</a> <<a href="mailto:sjb...@ai...">sjb...@ai...</a></address> +</table> </body> </html> |
From: Sebastian U. <ud...@us...> - 2002-03-23 23:34:43
|
Update of /cvsroot/plib/plib/doc In directory usw-pr-cvs1:/tmp/cvs-serv9944 Added Files: valid-html40.png Log Message: Initial checkin --- NEW FILE: valid-html40.png --- PNG ÇHzÌ0á¨jêzq±âéßÁZW±¡dc$;°³1kæÁ:Þ1ËËP¬`Md6ót%«¢©ïÁóo¼sÖ÷flbÌe³9.`wuÝ ½0öÄ£;лÖ<¢ù¯×MDÂwáàl Zä(ù1 cÊÝx[ã5¬Qà:ÁYUUú n,ð\én±Ïø¯Å[Ã#Á©S |
From: Sebastian U. <ud...@us...> - 2002-03-23 16:26:44
|
Update of /cvsroot/plib/plib/src/pui In directory usw-pr-cvs1:/tmp/cvs-serv15569 Modified Files: puLargeInput.cxx Log Message: Removed unnecessary "if" Index: puLargeInput.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puLargeInput.cxx,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- puLargeInput.cxx 23 Mar 2002 15:06:44 -0000 1.30 +++ puLargeInput.cxx 23 Mar 2002 16:26:40 -0000 1.31 @@ -1134,7 +1134,7 @@ // Wrap the text in "text" and put it in "wrapped_text" int l_len = strlen (text) ; - if ( wrapped_text ) delete [] wrapped_text ; + delete [] wrapped_text ; wrapped_text = new char[l_len + 1] ; memcpy(wrapped_text, text, l_len + 1) ; |
From: Sebastian U. <ud...@us...> - 2002-03-23 15:06:49
|
Update of /cvsroot/plib/plib/src/ssgAux In directory usw-pr-cvs1:/tmp/cvs-serv29048/src/ssgAux Modified Files: ssgaParticleSystem.cxx Log Message: Replaced some instances of "delete" with "delete []" Index: ssgaParticleSystem.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssgAux/ssgaParticleSystem.cxx,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ssgaParticleSystem.cxx 19 Jan 2002 20:37:21 -0000 1.2 +++ ssgaParticleSystem.cxx 23 Mar 2002 15:06:45 -0000 1.3 @@ -108,7 +108,7 @@ if ( particle [ i ] . time_to_live >= 0.0 ) (*particle_delete) ( this, i, & particle [ i ] ) ; - delete particle ; + delete [] particle ; } |
From: Sebastian U. <ud...@us...> - 2002-03-23 15:06:49
|
Update of /cvsroot/plib/plib/src/ssg In directory usw-pr-cvs1:/tmp/cvs-serv29048/src/ssg Modified Files: ssg.h ssgBase.cxx ssgLoad.cxx ssgLoad3ds.cxx ssgLoadAC.cxx ssgLoadASE.cxx ssgLoadATG.cxx ssgLoadBMP.cxx ssgLoadSGI.cxx ssgLoadTexture.cxx ssgOptimiser.cxx ssgSaveAC.cxx ssgSimpleList.cxx ssgTexture.cxx Log Message: Replaced some instances of "delete" with "delete []" Index: ssg.h =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssg.h,v retrieving revision 1.131 retrieving revision 1.132 diff -u -d -r1.131 -r1.132 --- ssg.h 1 Mar 2002 17:53:19 -0000 1.131 +++ ssg.h 23 Mar 2002 15:06:44 -0000 1.132 @@ -711,7 +711,7 @@ void setFilename(const char *fname) { - delete filename ; + delete [] filename ; if ( fname == NULL ) filename = NULL ; @@ -2518,19 +2518,19 @@ { if (model_dir) { - delete model_dir; + delete [] model_dir; model_dir = 0; } if (texture_dir) { - delete texture_dir; + delete [] texture_dir; texture_dir = 0; } } - const char* getModelDir ( void ) { return model_dir ; } - const char* getTextureDir ( void ) { return texture_dir ; } + const char* getModelDir ( void ) const { return model_dir ; } + const char* getTextureDir ( void ) const { return texture_dir ; } void setModelDir ( const char *s ) ; void setTextureDir ( const char *s ) ; Index: ssgBase.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgBase.cxx,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- ssgBase.cxx 7 Nov 2001 23:51:09 -0000 1.18 +++ ssgBase.cxx 23 Mar 2002 15:06:45 -0000 1.19 @@ -77,7 +77,7 @@ deadBeefCheck () ; assert ( refc == 0 ) ; - delete name ; + delete [] name ; /* Set the type of deleted nodes to 0xDeadBeef so we'll @@ -90,7 +90,7 @@ void ssgBase::setName ( const char *nm ) { - delete name ; + delete [] name ; if ( nm == NULL ) name = NULL ; @@ -126,7 +126,7 @@ int ssgBase::load ( FILE *fd ) { - delete name ; + delete [] name ; name = NULL ; _ssgReadString ( fd, &name ) ; return ! _ssgReadError () ; Index: ssgLoad.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoad.cxx,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- ssgLoad.cxx 7 Nov 2001 23:51:09 -0000 1.21 +++ ssgLoad.cxx 23 Mar 2002 15:06:45 -0000 1.22 @@ -136,14 +136,14 @@ void ssgLoaderOptions::setModelDir ( const char *s ) { - delete model_dir ; + delete [] model_dir ; model_dir = new char [ strlen ( s ) + 1 ] ; strcpy ( model_dir, s ) ; } void ssgLoaderOptions::setTextureDir ( const char *s ) { - delete texture_dir ; + delete [] texture_dir ; texture_dir = new char [ strlen ( s ) + 1 ] ; strcpy ( texture_dir, s ) ; } Index: ssgLoad3ds.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoad3ds.cxx,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- ssgLoad3ds.cxx 18 Dec 2001 16:35:59 -0000 1.31 +++ ssgLoad3ds.cxx 23 Mar 2002 15:06:45 -0000 1.32 @@ -989,7 +989,7 @@ add_leaf(material, listed_faces, face_indices); - delete face_indices; + delete [] face_indices; return PARSE_OK; } @@ -1210,10 +1210,10 @@ // clean up the materials array for (i = 0; i < num_materials; i++) { if (materials[i] -> name != NULL) { - delete materials[i] -> name; + delete [] materials[i] -> name; } if (materials[i] -> tex_name != NULL) { - delete materials[i] -> tex_name; + delete [] materials[i] -> tex_name; } delete materials[i]; Index: ssgLoadAC.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadAC.cxx,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- ssgLoadAC.cxx 24 Jan 2002 16:55:47 -0000 1.23 +++ ssgLoadAC.cxx 23 Mar 2002 15:06:45 -0000 1.24 @@ -291,7 +291,7 @@ int obj_type = search ( obj_type_tags, s ) ; */ - delete current_tfname ; + delete [] current_tfname ; current_tfname = NULL ; char buffer [ 1024 ] ; @@ -369,7 +369,7 @@ { skip_quotes ( &s ) ; - delete current_tfname ; + delete [] current_tfname ; if ( s == NULL || s[0] == '\0' ) current_tfname = NULL ; @@ -671,7 +671,7 @@ search ( top_tags, s ) ; } - delete current_tfname ; + delete [] current_tfname ; current_tfname = NULL ; delete [] vtab ; fclose ( loader_fd ) ; Index: ssgLoadASE.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadASE.cxx,v retrieving revision 1.41 retrieving revision 1.42 diff -u -d -r1.41 -r1.42 --- ssgLoadASE.cxx 18 Dec 2001 16:35:59 -0000 1.41 +++ ssgLoadASE.cxx 23 Mar 2002 15:06:45 -0000 1.42 @@ -1635,8 +1635,8 @@ u32 i ; for ( i = 0 ; i < num_materials ; i++ ) { - delete materials[ i ] -> name ; - delete materials[ i ] -> tfname ; + delete [] materials[ i ] -> name ; + delete [] materials[ i ] -> tfname ; delete materials[ i ] ; } delete[] materials ; Index: ssgLoadATG.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadATG.cxx,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- ssgLoadATG.cxx 16 Dec 2001 18:24:43 -0000 1.14 +++ ssgLoadATG.cxx 23 Mar 2002 15:06:45 -0000 1.15 @@ -154,7 +154,7 @@ if ( 0 != usemtl[0] ) { if ( _current_usemtl != NULL ) - delete _current_usemtl ; + delete [] _current_usemtl ; _current_usemtl = new char [ strlen ( usemtl ) + 1 ] ; strcpy ( _current_usemtl, usemtl ) ; } @@ -297,7 +297,7 @@ { // bring _last_usemtl up to date if ( _last_usemtl != NULL ) - delete _last_usemtl; + delete [] _last_usemtl; _last_usemtl= new char [ strlen ( _current_usemtl ) + 1 ] ; strcpy ( _last_usemtl, _current_usemtl ) ; Index: ssgLoadBMP.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadBMP.cxx,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- ssgLoadBMP.cxx 7 Nov 2001 23:51:10 -0000 1.8 +++ ssgLoadBMP.cxx 23 Mar 2002 15:06:45 -0000 1.9 @@ -266,7 +266,7 @@ default : break ; } - delete data ; + delete [] data ; } else if ( bpp == 24 ) Index: ssgLoadSGI.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadSGI.cxx,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- ssgLoadSGI.cxx 7 Nov 2001 23:51:10 -0000 1.12 +++ ssgLoadSGI.cxx 23 Mar 2002 15:06:45 -0000 1.13 @@ -337,10 +337,10 @@ fclose ( image_fd ) ; image_fd = NULL ; - delete rbuf ; - delete gbuf ; - delete bbuf ; - delete abuf ; + delete [] rbuf ; + delete [] gbuf ; + delete [] bbuf ; + delete [] abuf ; if ( info != NULL ) { Index: ssgLoadTexture.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadTexture.cxx,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- ssgLoadTexture.cxx 7 Nov 2001 23:51:10 -0000 1.12 +++ ssgLoadTexture.cxx 23 Mar 2002 15:06:45 -0000 1.13 @@ -125,7 +125,7 @@ if ( ww == 0 ) { - delete texels [ 0 ] ; + delete [] texels [ 0 ] ; xsize >>= 1 ; ysize >>= 1 ; @@ -159,7 +159,7 @@ GL_RGBA, GL_UNSIGNED_BYTE, (GLvoid *) texels[i] ) ; map_level++ ; - delete texels [ i ] ; + delete [] texels [ i ] ; } return true ; Index: ssgOptimiser.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgOptimiser.cxx,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- ssgOptimiser.cxx 7 Nov 2001 23:51:10 -0000 1.20 +++ ssgOptimiser.cxx 23 Mar 2002 15:06:45 -0000 1.21 @@ -115,10 +115,10 @@ ~OptVertexList () { for ( int i = 0 ; i < vnum ; i++ ) - delete vlist [ i ] ; + delete [] vlist [ i ] ; - delete vlist ; - delete tlist ; + delete [] vlist ; + delete [] tlist ; if (state != NULL) ssgDeRefDelete(state); //~T.G. } @@ -750,7 +750,7 @@ new_colours -> add ( list.vlist[new_vlist[m]]->colour ) ; } - delete new_vlist ; + delete [] new_vlist ; ssgVtxTable *new_vtable = new ssgVtxTable ( GL_TRIANGLE_STRIP, new_coords, new_normals, new_texcoords, new_colours ) ; @@ -761,8 +761,8 @@ } } - delete slist ; - delete cflist ; + delete [] slist ; + delete [] cflist ; } Index: ssgSaveAC.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgSaveAC.cxx,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- ssgSaveAC.cxx 7 Nov 2001 23:51:10 -0000 1.16 +++ ssgSaveAC.cxx 23 Mar 2002 15:06:45 -0000 1.17 @@ -135,8 +135,8 @@ fprintf ( save_fd, "kids 0\n" ) ; - delete[] vlist ; - delete tlist ; + delete [] vlist ; + delete [] tlist ; return TRUE ; } Index: ssgSimpleList.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgSimpleList.cxx,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- ssgSimpleList.cxx 7 Nov 2001 23:51:10 -0000 1.10 +++ ssgSimpleList.cxx 23 Mar 2002 15:06:45 -0000 1.11 @@ -28,7 +28,7 @@ { ssgBase::copy_from ( src, clone_flags ) ; - delete list ; + delete [] list ; size_of = src -> getSizeOf () ; total = src -> getNum () ; limit = total ; @@ -149,7 +149,7 @@ int ssgSimpleList::load ( FILE *fd ) { - delete list ; + delete [] list ; _ssgReadUInt ( fd, &size_of ) ; _ssgReadUInt ( fd, &total ) ; limit = total ; Index: ssgTexture.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgTexture.cxx,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- ssgTexture.cxx 7 Nov 2001 23:51:10 -0000 1.20 +++ ssgTexture.cxx 23 Mar 2002 15:06:45 -0000 1.21 @@ -203,7 +203,7 @@ int ssgTexture::load ( FILE *fd ) { - delete filename ; + delete [] filename ; _ssgReadString ( fd, & filename ) ; _ssgReadInt ( fd, & wrapu ) ; |
From: Sebastian U. <ud...@us...> - 2002-03-23 15:06:48
|
Update of /cvsroot/plib/plib/src/sl In directory usw-pr-cvs1:/tmp/cvs-serv29048/src/sl Modified Files: sl.h slMODfile.cxx slSample.cxx slScheduler.cxx Log Message: Replaced some instances of "delete" with "delete []" Index: sl.h =================================================================== RCS file: /cvsroot/plib/plib/src/sl/sl.h,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- sl.h 14 Mar 2002 13:03:47 -0000 1.11 +++ sl.h 23 Mar 2002 15:06:44 -0000 1.12 @@ -241,7 +241,7 @@ __slPendingError = "slSample: FATAL ERROR - Application deleted a sample while it was playing." ; - delete buffer ; + delete [] buffer ; } void ref () { ref_count++ ; } @@ -253,7 +253,7 @@ void setComment ( const char *nc ) { - delete comment ; + delete [] comment ; comment = new char [ strlen ( nc ) + 1 ] ; strcpy ( comment, nc ) ; } @@ -265,7 +265,7 @@ void setBuffer ( const Uchar *buff, int leng ) { - delete buffer ; + delete [] buffer ; buffer = new Uchar [ leng ] ; @@ -402,8 +402,8 @@ __slPendingError = "slEnvelope: FATAL ERROR - Application deleted an envelope while it was playing.\n" ; - delete time ; - delete value ; + delete [] time ; + delete [] value ; } void ref () { ref_count++ ; } Index: slMODfile.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/sl/slMODfile.cxx,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- slMODfile.cxx 3 Mar 2002 15:28:17 -0000 1.6 +++ slMODfile.cxx 23 Mar 2002 15:06:44 -0000 1.7 @@ -64,7 +64,7 @@ if ( this == top ) top = NULL ; - delete data ; + delete [] data ; delete next ; } @@ -681,7 +681,7 @@ if ( broken ) return ; - delete buffer ; + delete [] buffer ; memSongFree () ; } Index: slSample.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/sl/slSample.cxx,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- slSample.cxx 3 Mar 2002 15:28:17 -0000 1.6 +++ slSample.cxx 23 Mar 2002 15:06:44 -0000 1.7 @@ -89,7 +89,7 @@ rate = r ; length = length2 ; - delete buffer ; + delete [] buffer ; buffer = buffer2 ; } @@ -126,7 +126,7 @@ for ( int i = 0 ; i < length ; i++ ) buffer2 [ i ] = ((Ushort *)buffer) [ i ] >> 8 ; [...67 lines suppressed...] length = 0 ; @@ -458,7 +458,7 @@ if ( hdr_length > 24 ) { - delete comment ; + delete [] comment ; comment = new char [ hdr_length - 24 + 1 ] ; fread ( comment, 1, hdr_length - 24, fd ) ; @@ -481,7 +481,7 @@ int slSample::loadRawFile ( const char *fname ) { - delete buffer ; + delete [] buffer ; buffer = NULL ; length = 0 ; Index: slScheduler.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/sl/slScheduler.cxx,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- slScheduler.cxx 3 Mar 2002 15:28:17 -0000 1.7 +++ slScheduler.cxx 23 Mar 2002 15:06:44 -0000 1.8 @@ -80,7 +80,7 @@ if ( notWorking () ) return ; - delete mixer_buffer ; + delete [] mixer_buffer ; setMaxConcurrent ( 0 ); mixer_buffer_size = getDriverBufferSize () ; @@ -99,7 +99,7 @@ mixer_inputs[mi] = new Uchar [ mixer_buffer_size ] ; } else { if ( mixer_inputs[mi] != NULL ) - delete mixer_inputs[mi] ; + delete [] mixer_inputs[mi] ; mixer_inputs[mi] = NULL; } } @@ -115,7 +115,7 @@ slScheduler::~slScheduler () { - delete mixer_buffer ; + delete [] mixer_buffer ; setMaxConcurrent(0); if ( current == this ) current = NULL ; |
From: Sebastian U. <ud...@us...> - 2002-03-23 15:06:47
|
Update of /cvsroot/plib/plib/src/pui In directory usw-pr-cvs1:/tmp/cvs-serv29048/src/pui Modified Files: pu.cxx pu.h puFilePicker.cxx puFileSelector.cxx puInput.cxx puLargeInput.cxx Log Message: Replaced some instances of "delete" with "delete []" Index: pu.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/pu.cxx,v retrieving revision 1.44 retrieving revision 1.45 diff -u -d -r1.44 -r1.45 --- pu.cxx 16 Jan 2002 17:53:34 -0000 1.44 +++ pu.cxx 23 Mar 2002 15:06:44 -0000 1.45 @@ -459,7 +459,7 @@ void puSetPasteBuffer ( char *ch ) { - if ( input_paste_buffer ) delete input_paste_buffer ; + delete [] input_paste_buffer ; input_paste_buffer = new char [ strlen(ch) + 1 ] ; strcpy ( input_paste_buffer, ch ) ; } Index: pu.h =================================================================== RCS file: /cvsroot/plib/plib/src/pui/pu.h,v retrieving revision 1.97 retrieving revision 1.98 diff -u -d -r1.97 -r1.98 --- pu.h 2 Mar 2002 18:20:09 -0000 1.97 +++ pu.h 23 Mar 2002 15:06:44 -0000 1.98 @@ -1345,7 +1345,7 @@ { if ( valid_data ) { - delete valid_data ; + delete [] valid_data ; valid_data = NULL ; } @@ -1365,7 +1365,7 @@ strcpy ( new_data, "\0" ) ; if ( valid_data ) strcat ( new_data, valid_data ) ; if ( data ) strcat ( new_data, data ) ; - delete valid_data ; + delete [] valid_data ; valid_data = new_data ; } @@ -1394,7 +1394,7 @@ ~puInput () { - if ( valid_data ) delete valid_data ; + delete [] valid_data ; } void invokeDownCallback ( void ) @@ -1625,7 +1625,7 @@ { if ( valid_data ) { - delete valid_data ; + delete [] valid_data ; valid_data = NULL ; } @@ -1645,7 +1645,7 @@ strcpy ( new_data, "\0" ) ; if ( valid_data ) strcat ( new_data, valid_data ) ; if ( data ) strcat ( new_data, data ) ; - delete valid_data ; + delete [] valid_data ; valid_data = new_data ; } Index: puFilePicker.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puFilePicker.cxx,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- puFilePicker.cxx 21 Dec 2001 14:27:36 -0000 1.23 +++ puFilePicker.cxx 23 Mar 2002 15:06:44 -0000 1.24 @@ -281,7 +281,7 @@ if ( files ) { for ( int i=0; i<num_files; i++ ) - delete files[i]; + delete [] files[i]; delete[] files; delete[] dflag; @@ -477,7 +477,7 @@ if ( files != NULL ) { for ( int i = 0 ; i < num_files ; i++ ) - delete files[i] ; + delete [] files[i] ; delete [] files ; delete [] dflag ; Index: puFileSelector.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puFileSelector.cxx,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- puFileSelector.cxx 16 Jan 2002 19:27:42 -0000 1.17 +++ puFileSelector.cxx 23 Mar 2002 15:06:44 -0000 1.18 @@ -318,7 +318,7 @@ if ( files ) { for ( int i=0; i<num_files; i++ ) - delete files[i]; + delete [] files[i]; delete[] files; delete[] dflag; @@ -557,7 +557,7 @@ if ( files != NULL ) { for ( int i = 0 ; i < num_files ; i++ ) - delete files[i] ; + delete [] files[i] ; delete [] files ; delete [] dflag ; Index: puInput.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puInput.cxx,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- puInput.cxx 16 Jan 2002 18:58:30 -0000 1.21 +++ puInput.cxx 23 Mar 2002 15:06:44 -0000 1.22 @@ -367,7 +367,7 @@ strcat ( getStringValue(), puGetPasteBuffer () ) ; strcat ( getStringValue(), p ) ; cursor_position += strlen ( puGetPasteBuffer () ) ; - delete p ; + delete [] p ; } break ; Index: puLargeInput.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puLargeInput.cxx,v retrieving revision 1.29 retrieving revision 1.30 diff -u -d -r1.29 -r1.30 --- puLargeInput.cxx 16 Jan 2002 19:55:51 -0000 1.29 +++ puLargeInput.cxx 23 Mar 2002 15:06:44 -0000 1.30 @@ -103,7 +103,7 @@ p [ select_start_position ] = '\0' ; strcat ( p, (text + select_end_position ) ) ; strcpy ( text, p ) ; - delete p ; + delete [] p ; wrapText () ; @@ -200,10 +200,10 @@ puLargeInput::~puLargeInput () [...71 lines suppressed...] break ; @@ -1119,7 +1119,7 @@ setText ( p ) ; setCursor ( temp_cursor + 1 ) ; - delete p ; + delete [] p ; break ; } @@ -1134,7 +1134,7 @@ // Wrap the text in "text" and put it in "wrapped_text" int l_len = strlen (text) ; - if ( wrapped_text ) delete wrapped_text ; + if ( wrapped_text ) delete [] wrapped_text ; wrapped_text = new char[l_len + 1] ; memcpy(wrapped_text, text, l_len + 1) ; |
From: Sebastian U. <ud...@us...> - 2002-03-23 15:02:35
|
Update of /cvsroot/plib/plib/src/fnt In directory usw-pr-cvs1:/tmp/cvs-serv27993/fnt Modified Files: fntTXF.cxx Log Message: Franz Melchior: Replaced some instances of "delete" with "delete []" Index: fntTXF.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/fnt/fntTXF.cxx,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- fntTXF.cxx 21 Mar 2002 18:21:40 -0000 1.11 +++ fntTXF.cxx 23 Mar 2002 15:02:33 -0000 1.12 @@ -128,7 +128,7 @@ if ( ww == 0 ) { - delete texels [ 0 ] ; + delete [] texels [ 0 ] ; xsize >>= 1 ; ysize >>= 1 ; @@ -160,7 +160,7 @@ GL_RGBA, GL_UNSIGNED_BYTE, (GLvoid *) texels[i] ) ; map_level++ ; - delete texels [ i ] ; + delete [] texels [ i ] ; } } @@ -284,7 +284,7 @@ teximage [ i*2 + 1 ] = orig [ i ] ; } - delete orig ; + delete [] orig ; } break ; @@ -296,7 +296,7 @@ if ( (int)fread ( texbitmap, 1, stride * h, fd ) != stride * h ) { - delete texbitmap ; + delete [] texbitmap ; ulSetError ( UL_WARNING, "fntLoadTXF: Premature EOF in '%s'.", fname ) ; return FNT_FALSE ; @@ -315,7 +315,7 @@ teximage[(i * w + j) * 2 + 1] = 255; } - delete texbitmap ; + delete [] texbitmap ; } break ; |
From: Sebastian U. <ud...@us...> - 2002-03-21 19:26:07
|
Update of /cvsroot/plib/plib/src/util In directory usw-pr-cvs1:/tmp/cvs-serv32059 Modified Files: ulLinkedList.cxx Log Message: Return -1 from getNodePosition () and insertSorted () instead of 0 to indicate failure Index: ulLinkedList.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/util/ulLinkedList.cxx,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ulLinkedList.cxx 20 Mar 2002 16:53:51 -0000 1.2 +++ ulLinkedList.cxx 21 Mar 2002 19:26:01 -0000 1.3 @@ -1,6 +1,6 @@ /* PLIB - A Suite of Portable Game Libraries - Copyright (C) 2001 Steve Baker + Copyright (C) 2002 Steve Baker This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public @@ -17,6 +17,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA For further information visit http://plib.sourceforge.net + + $Id$ */ @@ -73,8 +75,7 @@ curr = curr -> getNext () ; } - ulSetError ( UL_WARNING, "ulLinkedList::getNodePosition: No such node" ) ; - return 0 ; + return -1 ; } @@ -128,7 +129,7 @@ { ulSetError ( UL_WARNING, "ulLinkedList::insertSorted: This is not a sorted list !" ) ; - return 0 ; + return -1 ; } int pos = 0 ; |
From: Sebastian U. <ud...@us...> - 2002-03-21 18:21:43
|
Update of /cvsroot/plib/plib/src/fnt In directory usw-pr-cvs1:/tmp/cvs-serv14211 Modified Files: fntTXF.cxx Log Message: Franz Melchior: Fixed typo Index: fntTXF.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/fnt/fntTXF.cxx,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- fntTXF.cxx 7 Nov 2001 23:51:09 -0000 1.10 +++ fntTXF.cxx 21 Mar 2002 18:21:40 -0000 1.11 @@ -54,7 +54,7 @@ GLubyte *texels [ 20 ] ; /* One element per level of MIPmap */ for ( int l = 0 ; l < 20 ; l++ ) - texels [ 0 ] = NULL ; + texels [ l ] = NULL ; texels [ 0 ] = image ; |
From: M?rten Str?m. <str...@us...> - 2002-03-21 15:41:49
|
Update of /cvsroot/plib/plib/src/util In directory usw-pr-cvs1:/tmp/cvs-serv25597 Modified Files: ul.h Log Message: Final shot for WIN32 compability. Index: ul.h =================================================================== RCS file: /cvsroot/plib/plib/src/util/ul.h,v retrieving revision 1.37 retrieving revision 1.38 diff -u -d -r1.37 -r1.38 --- ul.h 21 Mar 2002 12:50:33 -0000 1.37 +++ ul.h 21 Mar 2002 15:41:47 -0000 1.38 @@ -44,8 +44,8 @@ #include <ctype.h> #include <assert.h> -#if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(WIN32) -# define WIN32 +#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) +# define WIN32 #endif #if defined (WIN32) |
From: M?rten Str?m. <str...@us...> - 2002-03-21 12:50:36
|
Update of /cvsroot/plib/plib/src/util In directory usw-pr-cvs1:/tmp/cvs-serv7717 Modified Files: ul.h Log Message: Second try to drop the '-DWIN32' dependency. Index: ul.h =================================================================== RCS file: /cvsroot/plib/plib/src/util/ul.h,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- ul.h 20 Mar 2002 17:30:11 -0000 1.36 +++ ul.h 21 Mar 2002 12:50:33 -0000 1.37 @@ -44,7 +44,11 @@ #include <ctype.h> #include <assert.h> -#if defined (_WIN32) +#if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(WIN32) +# define WIN32 +#endif + +#if defined (WIN32) # include <windows.h> # ifdef __CYGWIN__ # include <unistd.h> @@ -124,7 +128,7 @@ double last_time ; double max_delta ; -#ifdef _WIN32 +#ifdef WIN32 static double res ; static int perf_timer ; void initPerformanceTimer () ; @@ -138,7 +142,7 @@ void reset () { -#ifdef _WIN32 +#ifdef WIN32 initPerformanceTimer () ; #endif start = getRawTime () ; @@ -161,7 +165,7 @@ { if ( seconds >= 0 ) { -#ifdef _WIN32 +#ifdef WIN32 Sleep ( 1000 * seconds ) ; #else sleep ( seconds ) ; @@ -174,7 +178,7 @@ { if ( milliseconds >= 0 ) { -#ifdef _WIN32 +#ifdef WIN32 Sleep ( milliseconds ) ; #else usleep ( milliseconds * 1000 ) ; @@ -445,7 +449,7 @@ */ -#if defined (_WIN32) +#if defined (WIN32) class ulDynamicLibrary { @@ -612,7 +616,7 @@ } } ; -#endif /* if defined(_WIN32) */ +#endif /* if defined(WIN32) */ class ulList |
From: Norman V. <nh...@ca...> - 2002-03-20 22:54:23
|
This change breaks CYGWIN May I ask what the reason was for changing #ifdef WIN32 to #ifdef _WIN32 is ??? Norman >-----Original Message----- >From: pli...@li... >[mailto:pli...@li...]On Behalf Of M?rten >Str?mberg >Sent: Wednesday, March 20, 2002 12:30 PM >To: pli...@li... >Subject: [Plib-cvs] CVS: plib/src/util ul.h,1.35,1.36 > > >Update of /cvsroot/plib/plib/src/util >In directory usw-pr-cvs1:/tmp/cvs-serv28128 > >Modified Files: > ul.h >Log Message: >Changed 'WIN32' to '_WIN32' in public header file. > >Index: ul.h >=================================================================== >RCS file: /cvsroot/plib/plib/src/util/ul.h,v >retrieving revision 1.35 >retrieving revision 1.36 >diff -u -d -r1.35 -r1.36 >--- ul.h 20 Mar 2002 15:48:23 -0000 1.35 >+++ ul.h 20 Mar 2002 17:30:11 -0000 1.36 >@@ -44,7 +44,7 @@ > #include <ctype.h> > #include <assert.h> > >-#if defined (WIN32) >+#if defined (_WIN32) > # include <windows.h> > # ifdef __CYGWIN__ > # include <unistd.h> >@@ -124,7 +124,7 @@ > double last_time ; > double max_delta ; > >-#ifdef WIN32 >+#ifdef _WIN32 > static double res ; > static int perf_timer ; > void initPerformanceTimer () ; >@@ -138,7 +138,7 @@ > > void reset () > { >-#ifdef WIN32 >+#ifdef _WIN32 > initPerformanceTimer () ; > #endif > start = getRawTime () ; >@@ -161,7 +161,7 @@ > { > if ( seconds >= 0 ) > { >-#ifdef WIN32 >+#ifdef _WIN32 > Sleep ( 1000 * seconds ) ; > #else > sleep ( seconds ) ; >@@ -174,7 +174,7 @@ > { > if ( milliseconds >= 0 ) > { >-#ifdef WIN32 >+#ifdef _WIN32 > Sleep ( milliseconds ) ; > #else > usleep ( milliseconds * 1000 ) ; >@@ -445,7 +445,7 @@ > */ > > >-#if defined (WIN32) >+#if defined (_WIN32) > > class ulDynamicLibrary > { >@@ -612,7 +612,7 @@ > } > } ; > >-#endif /* if defined(WIN32) */ >+#endif /* if defined(_WIN32) */ > > > class ulList > > >_______________________________________________ >Plib-cvs mailing list >Pli...@li... >https://lists.sourceforge.net/lists/listinfo/plib-cvs > |
From: M?rten Str?m. <str...@us...> - 2002-03-20 17:38:11
|
Update of /cvsroot/plib/plib/src/ssg In directory usw-pr-cvs1:/tmp/cvs-serv26345 Modified Files: ssgVtxArray.cxx Log Message: Implemented 'setIndices'. Index: ssgVtxArray.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgVtxArray.cxx,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- ssgVtxArray.cxx 7 Nov 2001 23:51:10 -0000 1.21 +++ ssgVtxArray.cxx 20 Mar 2002 17:26:31 -0000 1.22 @@ -77,6 +77,16 @@ } +void ssgVtxArray::setIndices ( ssgIndexArray *il ) +{ + ssgDeRefDelete ( indices ) ; + indices = il ; + + if ( indices != NULL ) + indices -> ref () ; +} + + void ssgVtxArray::drawHighlight ( sgVec4 colour ) { _ssgForceLineState () ; |
From: M?rten Str?m. <str...@us...> - 2002-03-20 17:38:05
|
Update of /cvsroot/plib/plib/src/util In directory usw-pr-cvs1:/tmp/cvs-serv28128 Modified Files: ul.h Log Message: Changed 'WIN32' to '_WIN32' in public header file. Index: ul.h =================================================================== RCS file: /cvsroot/plib/plib/src/util/ul.h,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -r1.35 -r1.36 --- ul.h 20 Mar 2002 15:48:23 -0000 1.35 +++ ul.h 20 Mar 2002 17:30:11 -0000 1.36 @@ -44,7 +44,7 @@ #include <ctype.h> #include <assert.h> -#if defined (WIN32) +#if defined (_WIN32) # include <windows.h> # ifdef __CYGWIN__ # include <unistd.h> @@ -124,7 +124,7 @@ double last_time ; double max_delta ; -#ifdef WIN32 +#ifdef _WIN32 static double res ; static int perf_timer ; void initPerformanceTimer () ; @@ -138,7 +138,7 @@ void reset () { -#ifdef WIN32 +#ifdef _WIN32 initPerformanceTimer () ; #endif start = getRawTime () ; @@ -161,7 +161,7 @@ { if ( seconds >= 0 ) { -#ifdef WIN32 +#ifdef _WIN32 Sleep ( 1000 * seconds ) ; #else sleep ( seconds ) ; @@ -174,7 +174,7 @@ { if ( milliseconds >= 0 ) { -#ifdef WIN32 +#ifdef _WIN32 Sleep ( milliseconds ) ; #else usleep ( milliseconds * 1000 ) ; @@ -445,7 +445,7 @@ */ -#if defined (WIN32) +#if defined (_WIN32) class ulDynamicLibrary { @@ -612,7 +612,7 @@ } } ; -#endif /* if defined(WIN32) */ +#endif /* if defined(_WIN32) */ class ulList |
From: Sebastian U. <ud...@us...> - 2002-03-20 16:53:55
|
Update of /cvsroot/plib/plib/src/util In directory usw-pr-cvs1:/tmp/cvs-serv12607/util Modified Files: ulLinkedList.cxx Log Message: Fixed two typos; Minor changes Index: ulLinkedList.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/util/ulLinkedList.cxx,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ulLinkedList.cxx 20 Mar 2002 15:48:23 -0000 1.1 +++ ulLinkedList.cxx 20 Mar 2002 16:53:51 -0000 1.2 @@ -73,7 +73,7 @@ curr = curr -> getNext () ; } - ulSetError ( UL_WARNING, "ulLInkedList::getNodePosition: No such node" ) ; + ulSetError ( UL_WARNING, "ulLinkedList::getNodePosition: No such node" ) ; return 0 ; } @@ -101,13 +101,12 @@ if ( tail == NULL ) [...84 lines suppressed...] + ulListNode *curr = head ; - while ( node != NULL ) + while ( curr != NULL ) { - ulListNode *next = node -> getNext () ; + ulListNode *next = curr -> getNext () ; if ( destroyfn != NULL ) - (*destroyfn) ( node -> getData () ) ; + (*destroyfn) ( curr -> getData () ) ; - delete node ; + delete curr ; - node = next ; + curr = next ; } head = tail = NULL ; |
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 - |
From: Sebastian U. <ud...@us...> - 2002-03-14 15:55:09
|
Update of /cvsroot/plib/plib/examples/src/pui In directory usw-pr-cvs1:/tmp/cvs-serv27590 Modified Files: simple.cxx Log Message: Fixed my English (I hope so ...) Index: simple.cxx =================================================================== RCS file: /cvsroot/plib/plib/examples/src/pui/simple.cxx,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- simple.cxx 20 Dec 2001 15:50:55 -0000 1.5 +++ simple.cxx 14 Mar 2002 15:45:53 -0000 1.6 @@ -25,7 +25,7 @@ glutPostRedisplay () ; } -void displayfn (void) +void displayfn ( void ) { glClearColor ( 0.1f, 0.4f, 0.1f, 1.0f ) ; glClear ( GL_COLOR_BUFFER_BIT ) ; @@ -64,8 +64,8 @@ However, most applications using PUI do some more things than rendering PUI widgets. In every "real" program, you usually do need a depth buffer - we are requesting one in the next line so that PLIB programmers - can write their applications upon the example code without running - in problems. */ + can write their applications upon this example code without running + into problems. */ glutInitDisplayMode ( GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH ) ; @@ -93,6 +93,4 @@ return 0 ; } - - |
From: Sebastian U. <ud...@us...> - 2002-03-14 13:03:51
|
Update of /cvsroot/plib/plib/src/sl In directory usw-pr-cvs1:/tmp/cvs-serv28013 Modified Files: sl.h Log Message: Made member variables of slEnvelope "protected" again Index: sl.h =================================================================== RCS file: /cvsroot/plib/plib/src/sl/sl.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- sl.h 3 Mar 2002 15:28:16 -0000 1.10 +++ sl.h 14 Mar 2002 13:03:47 -0000 1.11 @@ -357,7 +357,7 @@ class slEnvelope { -public: /* SJB TESTING! */ +protected: float *time ; float *value ; |
From: Wolfram K. <wol...@us...> - 2002-03-09 20:01:50
|
Update of /cvsroot/plib/plib/src/ssg In directory usw-pr-cvs1:/tmp/cvs-serv32487 Modified Files: ssgLoadMDL.cxx Log Message: There was a "short" instead of an "unsigned short". This meant you could not load MDLs with more than approx. 32000 vertices. Index: ssgLoadMDL.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadMDL.cxx,v retrieving revision 1.34 retrieving revision 1.35 diff -u -d -r1.34 -r1.35 --- ssgLoadMDL.cxx 16 Dec 2001 18:25:06 -0000 1.34 +++ ssgLoadMDL.cxx 9 Mar 2002 20:01:47 -0000 1.35 @@ -153,9 +153,9 @@ sgVec3 n; for (int i = 0; i < curr_index_->getNum() - 2; i++) { - short ix0 = *curr_index_->get(i ); - short ix1 = *curr_index_->get(i + 1); - short ix2 = *curr_index_->get(i + 2); + unsigned short ix0 = *curr_index_->get(i ); + unsigned short ix1 = *curr_index_->get(i + 1); + unsigned short ix2 = *curr_index_->get(i + 2); sgMakeNormal( n, vertex_array_->get(ix0), |
From: Wolfram K. <wol...@us...> - 2002-03-09 16:33:54
|
Update of /cvsroot/plib/plib/src/js In directory usw-pr-cvs1:/tmp/cvs-serv21200 Modified Files: js.h Log Message: Fixing compiler warnings Index: js.h =================================================================== RCS file: /cvsroot/plib/plib/src/js/js.h,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- js.h 24 Jan 2002 15:14:09 -0000 1.13 +++ js.h 9 Mar 2002 16:33:50 -0000 1.14 @@ -614,16 +614,16 @@ // wk: I know of no define for PI that we could use here: // SG_PI would pull in sg, M_PI is undefined for MSVC // But the accuracy of the value of PI is very unimportant at this point. - float s = sin((js.dwPOV & 0xFFFF) * (0.01 * 3.1415926535f / 180)); - float c = cos((js.dwPOV & 0xFFFF) * (0.01 * 3.1415926535f / 180)); + float s = (float)sin((js.dwPOV & 0xFFFF) * (0.01 * 3.1415926535f / 180)); + float c = (float)cos((js.dwPOV & 0xFFFF) * (0.01 * 3.1415926535f / 180)); // Convert to coordinates on a square so that North-East // is (1,1) not (.7,.7), etc. // s and c cannot both be zero so we won't divide by zero. if (fabs(s) < fabs(c)) { axes[6] = (c < 0.0) ? -s/c : s/c; - axes[7] = (c < 0.0) ? -1.0 : 1.0; + axes[7] = (c < 0.0) ? -1.0f : 1.0f; } else { - axes[6] = (s < 0.0) ? -1.0 : 1.0; + axes[6] = (s < 0.0) ? -1.0f : 1.0f; axes[7] = (s < 0.0) ? -c/s : c/s; } } |
From: Sebastian U. <ud...@us...> - 2002-03-05 15:27:42
|
Update of /cvsroot/plib/plib/src/sl In directory usw-pr-cvs1:/tmp/cvs-serv12032 Modified Files: slDSP.cxx Log Message: Fixed typo Index: slDSP.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/sl/slDSP.cxx,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- slDSP.cxx 3 Mar 2002 15:28:17 -0000 1.12 +++ slDSP.cxx 5 Mar 2002 15:27:39 -0000 1.13 @@ -832,7 +832,7 @@ msg = "Buffer is too small." ; break; case paramErr: - msg = ("Invalid parameter specified." ; + msg = "Invalid parameter specified." ; break; } |