Torsten Neuer (email@example.com)
Mon, 15 Mar 1999 08:52:16 +0100
On Son, 14 Mär 1999, you wrote:
>At 7:32 AM -0500 3/14/99, Torsten Neuer wrote:
>>Well, we use soundex on our system and the German affix stuff is really
>>huge, so the change would be nice.. although I'm afraid of redoing the
>>German db again (last time took a couple of days) ,-)
>Heh, it turns out there's an easy speedup for the Endings DB... I've been
>hoping to switch from rx to the glibc regex code simply for cutting down on
>the size of the distribution and getting rid of the tsort requirement.
>As it turns out, switching gave a reported speedup on the Swedish affix
>file from 5 days to 5 minutes!!! If you have the CVS copy, it's already in
>there. If not, edit EndingsDB.cc and remove the 'extern "C"' portion and
>replace it with:
Would be nice if if were >:-]
With just that line I get the following:
EndingsDB.cc: In method `void Endings::expandWord(class String &, class List &, class Dictionary &, char *, char *)':
EndingsDB.cc:321: `regex_t' undeclared (first use this function)
EndingsDB.cc:321: (Each undeclared identifier is reported only once
EndingsDB.cc:321: for each function it appears in.)
EndingsDB.cc:321: parse error before `;'
EndingsDB.cc:327: warning: implicit declaration of function `int regcomp(...)'
EndingsDB.cc:327: `reg' undeclared (first use this function)
EndingsDB.cc:327: `REG_ICASE' undeclared (first use this function)
EndingsDB.cc:327: `REG_NOSUB' undeclared (first use this function)
EndingsDB.cc:327: `REG_EXTENDED' undeclared (first use this function)
EndingsDB.cc:328: warning: implicit declaration of function `int regexec(...)'
EndingsDB.cc:356: warning: implicit declaration of function `int regfree(...)'
My /usr/include/regex.h is a wrapper to /usr/include/rx.h:
/* Copyright (C) 1992, 1993 Free Software Foundation, Inc.
This file is part of the librx library.
Librx is free software; you can redistribute it and/or modify it under
the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
Librx is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU Library General Public
License along with this software; see the file COPYING.LIB. If not,
write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA
02139, USA. */
That version does not define regex_t, but /usr/include/regexp.h does.
However, it turned out not to be working either (hmm.. today is Monday..)
Maybe it'd be better to have a working copy of regex.h included in the
distribution which should be used in case the system's regex.h is out
of date ,-)
-- InWise - Wirtschaftlich-Wissenschaftlicher Internet Service GmbH Waldhofstraße 14 Tel: +49-4101-403605 D-25474 Ellerbek Fax: +49-4101-403606 E-Mail: firstname.lastname@example.org Internet: http://www.inwise.de
------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to email@example.com containing the single word "unsubscribe" in the SUBJECT of the message.
This archive was generated by hypermail 2.0b3 on Mon Mar 15 1999 - 00:30:10 PST