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

Diff of /code/trunk/pcre_try_flipped.c

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

revision 77 by nigel, Sat Feb 24 21:40:45 2007 UTC revision 91 by nigel, Sat Feb 24 21:41:34 2007 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-2005 University of Cambridge             Copyright (c) 1997-2006 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 62  Arguments: Line 62  Arguments:
62  Returns:       the flipped value  Returns:       the flipped value
63  */  */
64    
65  static long int  static unsigned long int
66  byteflip(long int value, int n)  byteflip(unsigned long int value, int n)
67  {  {
68  if (n == 2) return ((value & 0x00ff) << 8) | ((value & 0xff00) >> 8);  if (n == 2) return ((value & 0x00ff) << 8) | ((value & 0xff00) >> 8);
69  return ((value & 0x000000ff) << 24) |  return ((value & 0x000000ff) << 24) |
# Line 94  Returns: the new block if is i Line 94  Returns: the new block if is i
94                     NULL if it is not                     NULL if it is not
95  */  */
96    
97  EXPORT real_pcre *  real_pcre *
98  _pcre_try_flipped(const real_pcre *re, real_pcre *internal_re,  _pcre_try_flipped(const real_pcre *re, real_pcre *internal_re,
99    const pcre_study_data *study, pcre_study_data *internal_study)    const pcre_study_data *study, pcre_study_data *internal_study)
100  {  {

Legend:
Removed from v.77  
changed lines
  Added in v.91

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12