Ticket #1795: libpcre.pir.patch
| File libpcre.pir.patch, 1.2 KB (added by jkeenan, 3 years ago) |
|---|
-
runtime/parrot/library/libpcre.pir
19 19 .param string pat 20 20 .param int options 21 21 22 .local string error23 22 .local pmc PCRE_NCI_compile 24 .local int error_size25 23 26 24 .local pmc NULL 27 25 null NULL 28 26 27 .local pmc errstr_p 28 errstr_p = new ['Pointer'] 29 29 30 .local pmc errptr 30 31 errptr= new 'Integer' 31 32 32 ## error message string size33 error_size= 50034 35 ## allocate space in string for error message36 repeat error, " ", error_size37 38 33 PCRE_NCI_compile = get_hll_global ['PCRE'; 'NCI'], 'PCRE_compile' 39 34 40 35 .local pmc code 41 36 42 code = PCRE_NCI_compile( pat, options, err or, errptr, NULL )37 code = PCRE_NCI_compile( pat, options, errstr_p, errptr, NULL ) 43 38 44 39 .local int is_code_defined 40 .local string errstr 45 41 is_code_defined = defined code 46 unless is_code_defined goto RETURN 42 if is_code_defined goto RETURN 43 errstr = errstr_p 47 44 48 error = ""49 50 45 RETURN: 51 .return( code, err or, errptr )46 .return( code, errstr, errptr ) 52 47 .end 53 48 54 49
