/[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 809 by zherczeg, Mon Dec 19 11:04:45 2011 UTC revision 811 by zherczeg, Mon Dec 19 14:05:44 2011 UTC
# Line 84  return (value >> 8) | (value << 8); Line 84  return (value >> 8) | (value << 8);
84  *************************************************/  *************************************************/
85    
86  /* This function swaps the bytes of a compiled pattern usually  /* This function swaps the bytes of a compiled pattern usually
87  loaeded form the disk. It also sets the tables pointer, which  loaded form the disk. It also sets the tables pointer, which
88  is likely an invalid pointer after reload.  is likely an invalid pointer after reload.
89    
90  Arguments:  Arguments:
# Line 123  if (re->magic_number == MAGIC_NUMBER) Line 123  if (re->magic_number == MAGIC_NUMBER)
123    }    }
124    
125  if (re->magic_number != REVERSED_MAGIC_NUMBER) return PCRE_ERROR_BADMAGIC;  if (re->magic_number != REVERSED_MAGIC_NUMBER) return PCRE_ERROR_BADMAGIC;
126  if ((swap_uint16(re->flags)  & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE;  if ((swap_uint16(re->flags) & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE;
127    
128  re->magic_number = MAGIC_NUMBER;  re->magic_number = MAGIC_NUMBER;
129  re->size = swap_uint32(re->size);  re->size = swap_uint32(re->size);
# Line 137  re->name_table_offset = swap_uint16(re-> Line 137  re->name_table_offset = swap_uint16(re->
137  re->name_entry_size = swap_uint16(re->name_entry_size);  re->name_entry_size = swap_uint16(re->name_entry_size);
138  re->name_count = swap_uint16(re->name_count);  re->name_count = swap_uint16(re->name_count);
139  re->ref_count = swap_uint16(re->ref_count);  re->ref_count = swap_uint16(re->ref_count);
140    re->tables = tables;
141    
142  if (extra_data != NULL && (re->flags & PCRE_EXTRA_STUDY_DATA) != 0)  if (extra_data != NULL && (re->flags & PCRE_EXTRA_STUDY_DATA) != 0)
143    {    {

Legend:
Removed from v.809  
changed lines
  Added in v.811

  ViewVC Help
Powered by ViewVC 1.1.5