From ab1c18670a15560f378a34f2aa1ec2bac733c9f3 Mon Sep 17 00:00:00 2001 From: glyn Date: Mon, 5 Oct 2015 16:18:32 +0100 Subject: [PATCH] No need to escape standard characters. --- README.md | 32 ++++++++++++++++---------------- bin/dfregex.dll | Bin 31570 -> 31570 bytes src/c/gnuregex.c | 2 +- src/c/libdfregex.a | Bin 3614 -> 3614 bytes 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index f560778..25d0770 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@ -POSIX Regex functions for DataFlex 3.2 --------------------------------------- - -Requires: -* DataFlex 3.1c onwards -* GCC or compatible compiler like MinGW -* GNU regex libraries for windows - http://sourceforge.net/projects/mingw/files/Other/UserContributed/regex - -I created this because despite VDF (Visual Dataflex) users being able to leverage -vbscript.dll in Windows via COM to do regex operations, it seems that Console Mode -users are out of luck. - -Despite being GNU libraries, this is intended to be used on Microsoft Windows -using the DataFlex external_function import. No doubt if you're using DataFlex -on Unix you can get these to work with minimal modifications. +POSIX Regex functions for DataFlex 3.2 +-------------------------------------- + +Requires: + DataFlex 3.1c onwards + GCC or compatible compiler like MinGW + GNU regex libraries for windows + http://sourceforge.net/projects/mingw/files/Other/UserContributed/regex + +I created this because despite VDF (Visual Dataflex) users being able to leverage +vbscript.dll in Windows via COM to do regex operations, it seems that Console Mode +users are out of luck. + +Despite being GNU libraries, this is intended to be used on Microsoft Windows +using the DataFlex external_function import. No doubt if you're using DataFlex +on Unix you can get these to work with minimal modifications. diff --git a/bin/dfregex.dll b/bin/dfregex.dll index dd1766fccc974cc94476d6d9c5f2b63aa8ba5d24..68cc21d7eaf57787d0b1158ad36943a51021e2f8 100644 GIT binary patch delta 29 lcmccgjq%bq#tB`Fj1#+knXGnhyrrefY<IGrOL*F95>43s3+6 delta 29 lcmccgjq%bq#tB`F%oDqPnH2jr-qO-#*3Mwv%&zC{3jn<+3djHe diff --git a/src/c/gnuregex.c b/src/c/gnuregex.c index 611c990..409d4dd 100644 --- a/src/c/gnuregex.c +++ b/src/c/gnuregex.c @@ -30,7 +30,7 @@ static char * quote_output(char *str) { /* Check for characters that need quoting */ for (ptr = str; *ptr; ptr++) { char ch = *ptr; - if (ch == '\"' || ch =='\\' || ch == '\{' || ch == ',') { + if (ch == '"' || ch =='\\' || ch == '{' || ch == ',') { do_quote = 1; break; } diff --git a/src/c/libdfregex.a b/src/c/libdfregex.a index 575172c41d10c9b0c57fdb204b3356817d69b8e1..9be83588453ed55bf5faf23a96b99864d82ad2e7 100644 GIT binary patch delta 185 zcmbOyGf!rMG`op`skx=0@kFJYlDWy5C3^Y#3Q%BZVgi+%Jb_tkvlgQ-6G%x0RwbJ! yFfRv77aIV95kw8bgv|kL-3VzzEYeAgo5Q#?89_FHjW9r0GdX}wV)F*>JSG6L?k#cv delta 185 zcmbOyGf!rMG`q2(rHQGz`9!6glG$Y$C3^Y#3Q%BZVgi+%Jb_tkvlgQ-6G%x0RwbJ! yFfRv77aIV95kw8bgv|kL-3VzzEYeAgo5Q#?89_FHjW9r0GdX}wV)F*>JSG6)Wi9Lg -- 2.39.2