Thanks! I'm applying the patch. Greg
Richard Guenther <[EMAIL PROTECTED]> @opendx.watson.ibm.com on 05/24/2001 07:30:10 AM Please respond to [email protected] Sent by: [EMAIL PROTECTED] To: [email protected] cc: Subject: [opendx-dev] [PATCH] to allow compiling CVS Hi! I needed the following patch to compile the CVS verison of opendx. It corrects incorrect use of free() on a regex_t (should use regfree()) and a typo - should read HAVE_REGCMP, not HAVE_EGCMP. Please apply, Richard. -- Richard Guenther <[EMAIL PROTECTED]> WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/ The GLAME Project: http://www.glame.de/ Index: src/uipp/prompter/Browser.C =================================================================== RCS file: /src/master/dx/src/uipp/prompter/Browser.C,v retrieving revision 1.14 diff -u -r1.14 Browser.C --- Browser.C 2001/05/22 13:53:33 1.14 +++ Browser.C 2001/05/24 11:26:33 @@ -1631,7 +1631,9 @@ if(!found) WarningMessage("Pattern not found"); -#if (defined(HAVE_REGCOMP) && (defined(HAVE_REGEX_H) || defined(HAVE_REGEXP_H))) || defined(HAVE_REGCMP) +#if defined(HAVE_REGCOMP) && defined(HAVE_REGEX_H) + regfree(&search_for); +#elif (defined(HAVE_REGCOMP) && (defined(HAVE_REGEXP_H))) || defined(HAVE_REGCMP) free(search_for); #endif @@ -1843,7 +1845,9 @@ if(!found) WarningMessage("Pattern not found"); -#if (defined(HAVE_REGCOMP) && (defined(HAVE_REGEX_H) || defined(HAVE_REGEXP_H))) || defined(HAVE_EGCMP) +#if defined(HAVE_REGCOMP) && defined(HAVE_REGEX_H) + regfree(&search_for); +#elif (defined(HAVE_REGCOMP) && (defined(HAVE_REGEXP_H))) || defined(HAVE_REGCMP) free(search_for); #endif
