/[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

revision 1312 by chpe, Tue Oct 16 15:53:30 2012 UTC revision 1313 by ph10, Wed Apr 24 12:07:09 2013 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-2012 University of Cambridge             Copyright (c) 1997-2013 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 126  if (re->magic_number == MAGIC_NUMBER) Line 126  if (re->magic_number == MAGIC_NUMBER)
126    }    }
127    
128  if (re->magic_number != REVERSED_MAGIC_NUMBER) return PCRE_ERROR_BADMAGIC;  if (re->magic_number != REVERSED_MAGIC_NUMBER) return PCRE_ERROR_BADMAGIC;
129  if ((swap_uint16(re->flags) & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE;  if ((swap_uint32(re->flags) & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE;
130    
131  re->magic_number = MAGIC_NUMBER;  re->magic_number = MAGIC_NUMBER;
132  re->size = swap_uint32(re->size);  re->size = swap_uint32(re->size);
133  re->options = swap_uint32(re->options);  re->options = swap_uint32(re->options);
134  re->flags = swap_uint16(re->flags);  re->flags = swap_uint32(re->flags);
135  re->top_bracket = swap_uint16(re->top_bracket);  re->limit_match = swap_uint32(re->limit_match);
136  re->top_backref = swap_uint16(re->top_backref);  re->limit_recursion = swap_uint32(re->limit_recursion);
137    
138  #if defined COMPILE_PCRE8 || defined COMPILE_PCRE16  #if defined COMPILE_PCRE8 || defined COMPILE_PCRE16
139  re->first_char = swap_uint16(re->first_char);  re->first_char = swap_uint16(re->first_char);
140  re->req_char = swap_uint16(re->req_char);  re->req_char = swap_uint16(re->req_char);
# Line 141  re->req_char = swap_uint16(re->req_char) Line 142  re->req_char = swap_uint16(re->req_char)
142  re->first_char = swap_uint32(re->first_char);  re->first_char = swap_uint32(re->first_char);
143  re->req_char = swap_uint32(re->req_char);  re->req_char = swap_uint32(re->req_char);
144  #endif  #endif
145    
146    re->max_lookbehind = swap_uint16(re->max_lookbehind);
147    re->top_bracket = swap_uint16(re->top_bracket);
148    re->top_backref = swap_uint16(re->top_backref);
149  re->name_table_offset = swap_uint16(re->name_table_offset);  re->name_table_offset = swap_uint16(re->name_table_offset);
150  re->name_entry_size = swap_uint16(re->name_entry_size);  re->name_entry_size = swap_uint16(re->name_entry_size);
151  re->name_count = swap_uint16(re->name_count);  re->name_count = swap_uint16(re->name_count);
152  re->ref_count = swap_uint16(re->ref_count);  re->ref_count = swap_uint16(re->ref_count);
153  re->tables = tables;  re->tables = tables;
 #ifdef COMPILE_PCRE32  
 re->dummy1 = swap_uint16(re->dummy1);  
 re->dummy2 = swap_uint16(re->dummy2);  
 #endif  
154    
155  if (extra_data != NULL && (extra_data->flags & PCRE_EXTRA_STUDY_DATA) != 0)  if (extra_data != NULL && (extra_data->flags & PCRE_EXTRA_STUDY_DATA) != 0)
156    {    {

Legend:
Removed from v.1312  
changed lines
  Added in v.1313

  ViewVC Help
Powered by ViewVC 1.1.5