/[pcre]/code/trunk/pcretest.c
ViewVC logotype

Diff of /code/trunk/pcretest.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 849 by zherczeg, Tue Jan 3 17:49:03 2012 UTC revision 850 by zherczeg, Wed Jan 4 17:29:11 2012 UTC
# Line 286  argument, the casting might be incorrect Line 286  argument, the casting might be incorrect
286  #define STRLEN16(p) ((int)strlen16((PCRE_SPTR16)p))  #define STRLEN16(p) ((int)strlen16((PCRE_SPTR16)p))
287    
288  #define SET_PCRE_CALLOUT16(callout) \  #define SET_PCRE_CALLOUT16(callout) \
289    pcre16_callout = callout    pcre16_callout = (int (*)(pcre16_callout_block *))callout
290    
291    
292  #define PCRE_COMPILE16(re, pat, options, error, erroffset, tables) \  #define PCRE_COMPILE16(re, pat, options, error, erroffset, tables) \
# Line 303  argument, the casting might be incorrect Line 303  argument, the casting might be incorrect
303    
304  #define PCRE_DFA_EXEC16(count, re, extra, bptr, len, start_offset, options, \  #define PCRE_DFA_EXEC16(count, re, extra, bptr, len, start_offset, options, \
305      offsets, size_offsets, workspace, size_workspace) \      offsets, size_offsets, workspace, size_workspace) \
306    count = pcre16_dfa_exec(re, extra, (PCRE_SPTR16)bptr, len, start_offset, \    count = pcre16_dfa_exec(re, (pcre16_extra *)extra, (PCRE_SPTR16)bptr, len, \
307      options, offsets, size_offsets, workspace, size_workspace)      start_offset, options, offsets, size_offsets, workspace, size_workspace)
308    
309  #define PCRE_EXEC16(count, re, extra, bptr, len, start_offset, options, \  #define PCRE_EXEC16(count, re, extra, bptr, len, start_offset, options, \
310      offsets, size_offsets) \      offsets, size_offsets) \
311    count = pcre16_exec(re, extra, (PCRE_SPTR16)bptr, len, start_offset, \    count = pcre16_exec(re, (pcre16_extra *)extra, (PCRE_SPTR16)bptr, len, \
312      options, offsets, size_offsets)      start_offset, options, offsets, size_offsets)
313    
314  #define PCRE_FREE_STUDY16(extra) \  #define PCRE_FREE_STUDY16(extra) \
315    pcre16_free_study(extra)    pcre16_free_study((pcre16_extra *)extra)
316    
317  #define PCRE_FREE_SUBSTRING16(substring) \  #define PCRE_FREE_SUBSTRING16(substring) \
318    pcre16_free_substring((PCRE_SPTR16)substring)    pcre16_free_substring((PCRE_SPTR16)substring)
# Line 337  argument, the casting might be incorrect Line 337  argument, the casting might be incorrect
337      (PCRE_SPTR16 **)(void*)listptr)      (PCRE_SPTR16 **)(void*)listptr)
338    
339  #define PCRE_PATTERN_TO_HOST_BYTE_ORDER16(rc, re, extra, tables) \  #define PCRE_PATTERN_TO_HOST_BYTE_ORDER16(rc, re, extra, tables) \
340    rc = pcre16_pattern_to_host_byte_order(re, extra, tables)    rc = pcre16_pattern_to_host_byte_order(re, (pcre16_extra *)extra, tables)
341    
342  #define PCRE_PRINTINT16(re, outfile, debug_lengths) \  #define PCRE_PRINTINT16(re, outfile, debug_lengths) \
343    pcre16_printint(re, outfile, debug_lengths)    pcre16_printint(re, outfile, debug_lengths)
344    
345  #define PCRE_STUDY16(extra, re, options, error) \  #define PCRE_STUDY16(extra, re, options, error) \
346    extra = pcre16_study(re, options, error)    extra = (pcre_extra *)pcre16_study(re, options, error)
347    
348  #endif /* SUPPORT_PCRE16 */  #endif /* SUPPORT_PCRE16 */
349    
# Line 1702  int rc; Line 1702  int rc;
1702    
1703  if (use_pcre16)  if (use_pcre16)
1704  #ifdef SUPPORT_PCRE16  #ifdef SUPPORT_PCRE16
1705    rc = pcre16_fullinfo(re, study, option, ptr);    rc = pcre16_fullinfo(re, (pcre16_extra *)study, option, ptr);
1706  #else  #else
1707    rc = PCRE_ERROR_BADMODE;    rc = PCRE_ERROR_BADMODE;
1708  #endif  #endif

Legend:
Removed from v.849  
changed lines
  Added in v.850

  ViewVC Help
Powered by ViewVC 1.1.5