Mark,

This change backs off some changes you make to supposedly allow the
code to compile on VC++ 6.  The original version was the correct one,
but I was ok with this change as long as it didn't cause problems
elsewhere.  It is appears it does.  I suspect this means we can't
support VC++ 6 any more.

Rick

On Fri, Oct 3, 2008 at 2:24 AM,  <[EMAIL PROTECTED]> wrote:
> Revision: 3424
>          http://oorexx.svn.sourceforge.net/oorexx/?rev=3424&view=rev
> Author:   antiguru
> Date:     2008-10-03 06:24:18 +0000 (Fri, 03 Oct 2008)
>
> Log Message:
> -----------
> Fix Linux compile warnings, complains about void* not deletable.
>
> Modified Paths:
> --------------
>    main/trunk/rexxapi/server/MacroSpaceManager.cpp
>    main/trunk/rexxapi/server/MacroSpaceManager.hpp
>    main/trunk/rexxapi/server/QueueManager.cpp
>    main/trunk/rexxapi/server/QueueManager.hpp
>    main/trunk/rexxapi/server/RegistrationManager.cpp
>
> Modified: main/trunk/rexxapi/server/MacroSpaceManager.cpp
> ===================================================================
> --- main/trunk/rexxapi/server/MacroSpaceManager.cpp     2008-10-03 00:17:08 
> UTC (rev 3423)
> +++ main/trunk/rexxapi/server/MacroSpaceManager.cpp     2008-10-03 06:24:18 
> UTC (rev 3424)
> @@ -65,7 +65,7 @@
>  */
>  void MacroItem::update(const char *data, size_t l, size_t p)
>  {
> -    delete (void *)imageBuffer;
> +    delete [] imageBuffer;
>     imageBuffer = data;
>     imageSize = l;
>     searchPosition = p;
>
> Modified: main/trunk/rexxapi/server/MacroSpaceManager.hpp
> ===================================================================
> --- main/trunk/rexxapi/server/MacroSpaceManager.hpp     2008-10-03 00:17:08 
> UTC (rev 3423)
> +++ main/trunk/rexxapi/server/MacroSpaceManager.hpp     2008-10-03 06:24:18 
> UTC (rev 3424)
> @@ -50,8 +50,8 @@
>     void update(const char *, size_t l, size_t p);
>     ~MacroItem()
>     {
> -        delete [] (void *)name;             // release the name and
> -        delete [] (void*)imageBuffer;      // image buffer
> +        delete [] name;             // release the name and
> +        delete [] imageBuffer;      // image buffer
>     }
>
>     MacroItem *next;                   // next macro in chain
>
> Modified: main/trunk/rexxapi/server/QueueManager.cpp
> ===================================================================
> --- main/trunk/rexxapi/server/QueueManager.cpp  2008-10-03 00:17:08 UTC (rev 
> 3423)
> +++ main/trunk/rexxapi/server/QueueManager.cpp  2008-10-03 06:24:18 UTC (rev 
> 3424)
> @@ -68,7 +68,7 @@
>  {
>     waitSem.close();     // make sure our semaphore cleans up if we've used 
> it.
>     clear();
> -    delete [] (void *)queueName;        // also delete the name
> +    delete [] queueName;        // also delete the name
>  }
>
>  /**
>
> Modified: main/trunk/rexxapi/server/QueueManager.hpp
> ===================================================================
> --- main/trunk/rexxapi/server/QueueManager.hpp  2008-10-03 00:17:08 UTC (rev 
> 3423)
> +++ main/trunk/rexxapi/server/QueueManager.hpp  2008-10-03 06:24:18 UTC (rev 
> 3424)
> @@ -63,7 +63,7 @@
>     {
>         if (elementData != NULL)
>         {
> -            delete [] (void *)elementData;      // release the element data 
> too
> +            delete [] elementData;      // release the element data too
>         }
>     }
>
>
> Modified: main/trunk/rexxapi/server/RegistrationManager.cpp
> ===================================================================
> --- main/trunk/rexxapi/server/RegistrationManager.cpp   2008-10-03 00:17:08 
> UTC (rev 3423)
> +++ main/trunk/rexxapi/server/RegistrationManager.cpp   2008-10-03 06:24:18 
> UTC (rev 3424)
> @@ -88,9 +88,9 @@
>  */
>  RegistrationData::~RegistrationData()
>  {
> -    delete [] (void *)name;
> -    delete [] (void *)moduleName;
> -    delete [] (void *)procedureName;
> +    delete [] name;
> +    delete [] moduleName;
> +    delete [] procedureName;
>
>     SessionCookie *cookie = references;
>     while (cookie != NULL)
>
>
> This was sent by the SourceForge.net collaborative development platform, the 
> world's largest Open Source development site.
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Oorexx-svn mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/oorexx-svn
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to