delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Subject: | Regular expressions compile call. |
To: | cygwin AT cygwin DOT com |
X-Mailer: | Lotus Notes Release 5.0.1 (Intl) 16 July 1999 |
Message-ID: | <OFAF7FC14E.8BB28340-ONC1256A45.00445D13@stoltoffshore.no> |
From: | oddvard DOT myrnes AT stoltoffshore DOT no |
Date: | Mon, 7 May 2001 14:33:09 +0200 |
X-MIMETrack: | Serialize by Router on SCS-SVG-G01/SRV/SCS(Release 5.0.5 |September 22, 2000) at |
05/07/2001 02:33:10 PM | |
MIME-Version: | 1.0 |
I am working on a cygwin port from Linux. Straight forward, but one thing puzzels me. Why is the regcomp call diffrent. I have to use this pice of code to make it work on both platforms: #ifdef cygwin regex_t *re; #else regex_t a, *re; re = &a; #endif i = regcomp(re, filter, REG_EXTENDED); If I use a preallocated buffer in Cygwin i get an i = 269335288 = random. Program gets unstable after the call. If I use a pointer it works. On the linux box (Suse 7.0) I get a segmentation violation trying to run with a pointer. Will run fine with a preallocated buffer. They are oposite in behavior. What do I miss? Oddvard -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |