TRE 0.8.0 Released

by Ville Laurikari on September 20, 2009

Download here. New in this release:

  • Added tre_ prefix to all functions exported from libtre. This changes the binary interface (ABI). The old source interface (API) is still available in <tre/regex.h>.  New code should use <tre/tre.h> which exports functions that have the prefix.
  • Visual C++ 6 project files replaced with Visual Studio 2008 files.
  • Bug fixes.

{ 7 comments… read them below or add one }

1 Bang Jun-young October 2, 2009 at 14:03

Thanks for the work but what are actually included in the tarballs are Visual C++ 6 files.

2 Ville Laurikari October 2, 2009 at 14:10

Oh, drats. I forgot to update something and the old files still got into the packages. Thanks for letting me know!

I’ve now fixed this for the next release. Until then, you can download the project (.vcproj) and solution (.sln) files for Visual Studio 2008 from the darcs repository here.

3 GregK October 5, 2009 at 19:18

TRE is mentioned on Wikipedia, but the reference to LGPL is outdated now.
http://en.wikipedia.org/wiki/Agrep

4 Ville Laurikari October 7, 2009 at 21:19

Indeed. I went and updated the agrep page regarding TRE license.

5 Bang Jun-young November 10, 2009 at 03:34

Checked out the sources with command ‘darcs get –set-scripts-executable http://laurikari.net/tre/darcs/stable/‘ as described on the download page, but I still can’t find Visual Studio 2008 files there.

Downloading the files from the darcs web interface by clicking on the ‘plain’ link doesn’t work either. What I actually got were HTML-decorated text (< garbled with &lt\;) rather than plain text.

Downloading from the browser's view-source page doesn't work either. This time the server refuses to send data to the browser. :-(

6 Ville Laurikari December 2, 2009 at 12:45

Sorry about that, and sorry for the delay (your comment got caught in the spam filter). Now the darcs repo is properly updated.

I have no problems downloading files from the web interface.

7 Steve Teale January 29, 2010 at 12:57

I am trying to translate the non-fuzzy part of TRE into D. I noticed this:

tre_ctype_t tre_ctype(const char *name)
{
int i;
for (i = 0; tre_ctype_map[i].name != NULL; i++)
{
if (strcmp(name, tre_ctype_map[i].name) == 0)
return tre_ctype_map[i].func;
}
return (tre_ctype_t)0;
}

It is prototyped as returning a character type, but if name is found, it returns a pointer to a function. The parsing code behaves as if it returned a character (I think). Could you possibly explain?

Thanks Steve

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Previous post: NetBSD Taking TRE in the C Library