home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dbmalloc.zip / patchnew.emx < prev    next >
Text File  |  1995-04-26  |  4KB  |  175 lines

  1. *** Makefile    Tue Jul 27 16:59:58 1993
  2. --- ..\dbmalloc\Makefile    Wed Apr 26 18:31:34 1995
  3. ***************
  4. *** 99,112 ****
  5.   SHARCMD=makekit -p -m -nmallocshar.
  6.   #SHELL=/bin/sh
  7.   
  8. ! LIB=libdbmalloc.a
  9.   LINTLIB=llib-ldbmal.ln
  10.   
  11.   #
  12.   # You shouldn't have to modify anything below this line
  13.   #
  14.   LIBSRCS=    malloc.c    \
  15. -         datamc.c    \
  16.           datams.c    \
  17.           dgmalloc.c    \
  18.           fill.c        \
  19. --- 99,111 ----
  20.   SHARCMD=makekit -p -m -nmallocshar.
  21.   #SHELL=/bin/sh
  22.   
  23. ! LIB=dbmalloc.a
  24.   LINTLIB=llib-ldbmal.ln
  25.   
  26.   #
  27.   # You shouldn't have to modify anything below this line
  28.   #
  29.   LIBSRCS=    malloc.c    \
  30.           datams.c    \
  31.           dgmalloc.c    \
  32.           fill.c        \
  33. ***************
  34. *** 131,137 ****
  35.           leak.c    
  36.   
  37.   LIBOBJS=    malloc.o    \
  38. -         datamc.o    \
  39.           datams.o    \
  40.           dgmalloc.o    \
  41.           fill.o        \
  42. --- 130,135 ----
  43. ***************
  44. *** 323,329 ****
  45.   # special rules for building datams.o and datamc.o
  46.   #
  47.   datams.o: datams.c malloc.h mallocin.h sysdefs.h
  48. - datamc.o: datamc.c malloc.h mallocin.h sysdefs.h
  49.   
  50.   #
  51.   # include file dependencies
  52. --- 321,326 ----
  53. *** memory.c    Mon Jan 04 09:53:44 1993
  54. --- ..\dbmalloc\memory.c    Wed Apr 26 18:35:22 1995
  55. ***************
  56. *** 78,84 ****
  57.       malloc_check_data("memccpy", file, line, ptr1, i);
  58.       malloc_check_data("memccpy", file, line, ptr2, i);
  59.   
  60. !     DataMC(ptr1,ptr2,i);
  61.       
  62.       return( rtn );
  63.   }
  64. --- 78,84 ----
  65.       malloc_check_data("memccpy", file, line, ptr1, i);
  66.       malloc_check_data("memccpy", file, line, ptr2, i);
  67.   
  68. !     memmove(ptr1,ptr2,i);
  69.       
  70.       return( rtn );
  71.   }
  72. ***************
  73. *** 129,143 ****
  74.    * memmove - copy one memory area to another
  75.    */
  76.   MEMDATA  * 
  77. - memmove(ptr1, ptr2, len)
  78. -     MEMDATA         * ptr1;
  79. -     CONST MEMDATA         * ptr2;
  80. -     register MEMSIZE       len;
  81. - {
  82. -     return( DBmemmove( (char *) NULL, 0,ptr1, ptr2, len) );
  83. - }
  84. - MEMDATA  * 
  85.   DBmemmove(file,line,ptr1, ptr2, len)
  86.       CONST char        * file;
  87.       int              line;
  88. --- 129,134 ----
  89. ***************
  90. *** 183,189 ****
  91.       malloc_check_data(func, file, line, ptr1, len);
  92.       malloc_check_data(func, file, line, ptr2, len);
  93.   
  94. !     DataMC(ptr1,ptr2,len);
  95.       
  96.       return(rtn);
  97.   }
  98. --- 174,180 ----
  99.       malloc_check_data(func, file, line, ptr1, len);
  100.       malloc_check_data(func, file, line, ptr2, len);
  101.   
  102. !     memmove(ptr1,ptr2,len);
  103.       
  104.       return(rtn);
  105.   }
  106. *** prototypes.h    Mon Jan 04 09:53:44 1993
  107. --- ..\dbmalloc\prototypes.h    Wed Apr 26 18:36:56 1995
  108. ***************
  109. *** 19,26 ****
  110.   CONST char *MallocFuncName __stdcargs((CONST struct mlist *mptr));
  111.   CONST char *FreeFuncName __stdcargs((CONST struct mlist *mptr));
  112.   void InitMlist __stdcargs((struct mlist *mptr, int type));
  113. - /* datamc.c */
  114. - void DataMC __stdcargs((MEMDATA *ptr1, CONST MEMDATA *ptr2, MEMSIZE len));
  115.   /* datams.c */
  116.   void DataMS __stdcargs((MEMDATA *ptr1, int ch, register MEMSIZE len));
  117.   /* dgmalloc.c */
  118. --- 19,24 ----
  119. *** realloc.c    Mon Jan 04 09:53:46 1993
  120. --- ..\dbmalloc\realloc.c    Wed Apr 26 18:35:48 1995
  121. ***************
  122. *** 306,312 ****
  123.            * copy data from the current space to the new space.  Note
  124.             * that the data areas for this copy will likely overlap.
  125.            */
  126. !         DataMC(ptr->data,optr->data,ptr->r_size);
  127.   
  128.           /*
  129.            * note that we don't fill in the areas here.  It will be
  130. --- 306,312 ----
  131.            * copy data from the current space to the new space.  Note
  132.             * that the data areas for this copy will likely overlap.
  133.            */
  134. !         memmove(ptr->data,optr->data,ptr->r_size);
  135.   
  136.           /*
  137.            * note that we don't fill in the areas here.  It will be
  138. *** string.c    Mon Jan 04 09:53:46 1993
  139. --- ..\dbmalloc\string.c    Wed Apr 26 18:36:16 1995
  140. ***************
  141. *** 478,484 ****
  142.   
  143.       rtn = str1;
  144.   
  145. !     DataMC(str1, str2, len);
  146.   
  147.       return(rtn);
  148.   }
  149. --- 478,484 ----
  150.   
  151.       rtn = str1;
  152.   
  153. !     memmove(str1, str2, len);
  154.   
  155.       return(rtn);
  156.   }
  157. ***************
  158. *** 518,524 ****
  159.       /*
  160.        * copy the real data
  161.        */
  162. !     DataMC(str1,str2,i);
  163.   
  164.       /*
  165.        * if there is data left over
  166. --- 518,524 ----
  167.       /*
  168.        * copy the real data
  169.        */
  170. !     memmove(str1,str2,i);
  171.   
  172.       /*
  173.        * if there is data left over
  174.