OSSP CVS Repository

ossp - Check-in [931]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 931
Date: 2001-Sep-11 12:40:56 (local)
2001-Sep-11 10:40:56 (UTC)
User:thl
Branch:
Comment: add Dmalloc support to Str
Tickets:
Inspections:
Files:
ossp-pkg/str/acconfig.h      added-> 1.3
ossp-pkg/str/configure.ac      1.4 -> 1.5     2 inserted, 0 deleted
ossp-pkg/str/str_p.h      1.16 -> 1.17     4 inserted, 0 deleted

ossp-pkg/str/acconfig.h -> 1.3

*** /dev/null    Sat Nov 23 01:01:13 2024
--- -    Sat Nov 23 01:01:27 2024
***************
*** 0 ****
--- 1,6 ----
+ 
+ /* optional Dmalloc support */
+ #undef WITH_DMALLOC
+ 
+ #undef STR_DEBUG
+ 


ossp-pkg/str/configure.ac 1.4 -> 1.5

--- configure.ac 2001/09/10 09:55:13     1.4
+++ configure.ac 2001/09/11 10:40:56     1.5
@@ -35,6 +35,8 @@
 
 AC_CHECK_FUNC(modf, , AC_CHECK_LIB(m, modf))
 
+AC_CHECK_EXTLIB([Dmalloc], dmalloc, dmalloc_debug, dmalloc.h, AC_DEFINE(WITH_DMALLOC))
+
 AC_OUTPUT(dnl
 Makefile dnl
 str.h dnl


ossp-pkg/str/str_p.h 1.16 -> 1.17

--- str_p.h      2001/08/16 13:21:22     1.16
+++ str_p.h      2001/09/11 10:40:56     1.17
@@ -38,6 +38,10 @@
 
 #include "str_pcre.h"
 
+#if defined(HAVE_DMALLOC_H) && defined(WITH_DMALLOC)
+#include "dmalloc.h"
+#endif
+
 /* explicit support for unsigned char based ctype stuff */
 #define str_isalpha(c)  (isalpha(((unsigned char)(c))))
 #define str_isdigit(c)  (isdigit(((unsigned char)(c))))

CVSTrac 2.0.1