[xml] [PATCH] Enabling DEBUG_MEMORY breaks Win32 build



In http://mail.gnome.org/archives/xml/2004-July/msg00088.html I referred 
to a compiler error being produced when building with DEBUG_MEMORY 
#define'd, and described how I fixed it.

Attached is a contextual diff (against 2.6.11) of that fix, as requested 
by Daniel.

- Steve


------------------------------------------------
Radan Computational Ltd.

The information contained in this message and any files transmitted with it are confidential and intended for 
the addressee(s) only.  If you have received this message in error or there are any problems, please notify 
the sender immediately.  The unauthorized use, disclosure, copying or alteration of this message is strictly 
forbidden.  Note that any views or opinions presented in this email are solely those of the author and do not 
necessarily represent those of Radan Computational Ltd.  The recipient(s) of this message should check it and 
any attached files for viruses: Radan Computational will accept no liability for any damage caused by any 
virus transmitted by this email.
*** xmlmemory.c.orig    Fri Jul  2 12:49:14 2004
--- xmlmemory.c Tue Jul 13 14:13:32 2004
***************
*** 805,817 ****
  int
  xmlInitMemory(void)
  {
  #ifdef DEBUG_MEMORY
       xmlGenericError(xmlGenericErrorContext,
             "xmlInitMemory()\n");
  #endif     
- #ifdef HAVE_STDLIB_H
-      char *breakpoint;
- #endif     
      /*
       This is really not good code (see Bug 130419).  Suggestions for
       improvement will be welcome!
--- 805,817 ----
  int
  xmlInitMemory(void)
  {
+ #ifdef HAVE_STDLIB_H
+      char *breakpoint;
+ #endif     
  #ifdef DEBUG_MEMORY
       xmlGenericError(xmlGenericErrorContext,
             "xmlInitMemory()\n");
  #endif     
      /*
       This is really not good code (see Bug 130419).  Suggestions for
       improvement will be welcome!


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]