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

Diff of /code/trunk/pcre_byte_order.c

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

code/branches/pcre16/pcre_byte_order.c revision 816 by zherczeg, Wed Dec 21 23:08:51 2011 UTC code/trunk/pcre_byte_order.c revision 850 by zherczeg, Wed Jan 4 17:29:11 2012 UTC
# Line 6  Line 6 
6  and semantics are as close as possible to those of the Perl 5 language.  and semantics are as close as possible to those of the Perl 5 language.
7    
8                         Written by Philip Hazel                         Written by Philip Hazel
9             Copyright (c) 1997-2009 University of Cambridge             Copyright (c) 1997-2012 University of Cambridge
10    
11  -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
12  Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
# Line 100  PCRE_EXP_DECL int pcre_pattern_to_host_b Line 100  PCRE_EXP_DECL int pcre_pattern_to_host_b
100    pcre_extra *extra_data, const unsigned char *tables)    pcre_extra *extra_data, const unsigned char *tables)
101  #else  #else
102  PCRE_EXP_DECL int pcre16_pattern_to_host_byte_order(pcre *argument_re,  PCRE_EXP_DECL int pcre16_pattern_to_host_byte_order(pcre *argument_re,
103    pcre_extra *extra_data, const unsigned char *tables)    pcre16_extra *extra_data, const unsigned char *tables)
104  #endif  #endif
105  {  {
106  real_pcre *re = (real_pcre *)argument_re;  real_pcre *re = (real_pcre *)argument_re;
# Line 139  re->name_count = swap_uint16(re->name_co Line 139  re->name_count = swap_uint16(re->name_co
139  re->ref_count = swap_uint16(re->ref_count);  re->ref_count = swap_uint16(re->ref_count);
140  re->tables = tables;  re->tables = tables;
141    
142  if (extra_data != NULL && (re->flags & PCRE_EXTRA_STUDY_DATA) != 0)  if (extra_data != NULL && (extra_data->flags & PCRE_EXTRA_STUDY_DATA) != 0)
143    {    {
144    study = (pcre_study_data *)extra_data->study_data;    study = (pcre_study_data *)extra_data->study_data;
145    study->size = swap_uint32(study->size);    study->size = swap_uint32(study->size);

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

  ViewVC Help
Powered by ViewVC 1.1.5