develooper Front page | perl.perl5.changes | Postings from November 2010

[perl.git] branch blead, updated. v5.13.7-186-ga932d54

From:
Tony Cook
Date:
November 29, 2010 03:38
Subject:
[perl.git] branch blead, updated. v5.13.7-186-ga932d54
Message ID:
E1PN24F-0005Wm-DJ@camel.ams6.corp.booking.com
In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/a932d541326b1fef3943a730adb350592857f19a?hp=f5122dbf0e65ac96618bf95b58dbfac3cfb31c75>

- Log -----------------------------------------------------------------
commit a932d541326b1fef3943a730adb350592857f19a
Author: Tony Cook <tony@develop-help.com>
Date:   Mon Nov 29 22:36:35 2010 +1100

    Fix C++ build problems introduced in 9a5a5549
    
    Fixes the following compilation errors:
    regexec.c: In function 'char* S_find_byclass(regexp*, const regnode*, char*,
    const char*, regmatch_info*)':
    regexec.c:1525: error: invalid conversion from 'I32 (*)(const char*, const
    char*, I32)' to 'I32 (*)()'
    regexec.c:1525: error: too many arguments to function
    regexec.c:1527: error: invalid conversion from 'I32 (*)(const char*, const
    char*, I32)' to 'I32 (*)()'
    regexec.c:1527: error: too many arguments to function
-----------------------------------------------------------------------

Summary of changes:
 perl.h    |    1 +
 regexec.c |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/perl.h b/perl.h
index 4f66da2..901e33e 100644
--- a/perl.h
+++ b/perl.h
@@ -4905,6 +4905,7 @@ typedef char*   (*re_intuit_start_t) (pTHX_ regexp *prog, SV *sv,
 typedef SV*	(*re_intuit_string_t) (pTHX_ regexp *prog);
 typedef void	(*regfree_t) (pTHX_ struct regexp* r);
 typedef regexp* (*regdupe_t) (pTHX_ const regexp* r, CLONE_PARAMS *param);
+typedef I32     (*re_fold_t)(const char *, char const *, I32);
 
 typedef void (*DESTRUCTORFUNC_NOCONTEXT_t) (void*);
 typedef void (*DESTRUCTORFUNC_t) (pTHX_ void*);
diff --git a/regexec.c b/regexec.c
index 129b297..ff76c84 100644
--- a/regexec.c
+++ b/regexec.c
@@ -1245,7 +1245,7 @@ s += len
 
 #define REXEC_FBC_EXACTISH_SCAN(CoNd)                     \
 STMT_START {                                              \
-    I32 (*folder)();                                      \
+    re_fold_t folder;                                   \
     switch (OP(c)) {                                      \
 	case EXACTFU: folder = foldEQ_latin1; break;      \
 	case EXACTFL: folder = foldEQ_locale; break;      \
@@ -3558,7 +3558,7 @@ S_regmatch(pTHX_ regmatch_info *reginfo, regnode *prog)
 	    break;
 	    }
 	case EXACTFL: {
-	    I32 (*folder)();                                      \
+	    re_fold_t folder;
 	    const U8 * fold_array;
 	    const char * s;
 

--
Perl5 Master Repository



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About