Changeset 13660


Ignore:
Timestamp:
2007-01-17T12:13:03+13:00 (17 years ago)
Author:
kjdon
Message:

added some x++ -> ++x changes submitted by Emanuel Dejanu

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/packages/mg/src/text/hash.h

    r3745 r13660  
    3434        register unsigned long hval;        \
    3535        if (len>25) len = 25;           \
    36         for (hval=0; len; len--)        \
     36        for (hval=0; len; --len)        \
    3737          hval = (hval << 5) - hval + *p++; \
    3838        step = hval % (tablesize - 2) + 1;  \
  • trunk/gsdl3/src/packages/mg/src/text/words.h

    r8694 r13660  
    8484        /* It determines whether a given place in a UTF-8 encoded
    8585       Unicode string is a unicode space. */
    86 
     86 
    8787u_char *skipspace(u_char *here, u_char *end);
    88         /* Return a the UTF-8 encoded Unicode string with
    89        begining unicode spaces skipped. */
     88        /* Return a the UTF-8 encoded Unicode string with beginning
     89       unicode spaces skipped. */
     90 
    9091
    9192/* =========================================================================
     
    115116                     ++numeric <= maxnumeric))) {  \
    116117      while (charlength-- > 0) {                                   \
    117         *wptr++ = *(s_in)++; length++;                             \
     118        *wptr++ = *(s_in)++; ++length;                             \
    118119      }                                                            \
    119120      charlength = parse_utf8_char((s_in),(end),&c);               \
     
    135136        break;                                               \
    136137          *wptr++ = c;                                           \
    137           length++;                                              \
     138          ++length;                                              \
    138139          c = *++(s_in);                                         \
    139140        }                                                        \
     
    162163       !is_unicode_letdig(c)) {                                \
    163164      while (charlength-- > 0) {                                   \
    164         *wptr++ = *(s_in)++; length++;                             \
     165        *wptr++ = *(s_in)++; ++length;                             \
    165166      }                                                            \
    166167      charlength = parse_utf8_char((s_in),(end),&c);               \
     
    179180        {                                                      \
    180181          *wptr++ = c;                                         \
    181           length++;                                            \
     182          ++length;                                            \
    182183          c = *++(s_in);                                       \
    183184        }                                                      \
     
    213214                     ++numeric <= maxnumeric))) {  \
    214215      while (charlength-- > 0) {                                   \
    215         *wptr++ = *(s_in)++; length++;                             \
     216        *wptr++ = *(s_in)++; ++length;                             \
    216217      }                                                            \
    217218      charlength = parse_utf8_char((s_in),(end),&c);               \
     
    233234        break;                                            \
    234235      *wptr++ = c;                                        \
    235       length++;                                           \
     236      ++length;                                           \
    236237      c = *++(s_in);                                      \
    237238    }                                                     \
     
    346347        {                                                          \
    347348               *wptr++ = c;                                            \
    348                length++;                                               \
     349               ++length;                                               \
    349350               c = *++(s_in);                                          \
    350351            }                                                          \
  • trunk/indexers/mg/src/text/hash.h

    r3745 r13660  
    3434        register unsigned long hval;        \
    3535        if (len>25) len = 25;           \
    36         for (hval=0; len; len--)        \
     36        for (hval=0; len; --len)        \
    3737          hval = (hval << 5) - hval + *p++; \
    3838        step = hval % (tablesize - 2) + 1;  \
  • trunk/indexers/mg/src/text/words.h

    r8694 r13660  
    8484        /* It determines whether a given place in a UTF-8 encoded
    8585       Unicode string is a unicode space. */
    86 
     86 
    8787u_char *skipspace(u_char *here, u_char *end);
    88         /* Return a the UTF-8 encoded Unicode string with
    89        begining unicode spaces skipped. */
     88        /* Return a the UTF-8 encoded Unicode string with beginning
     89       unicode spaces skipped. */
     90 
    9091
    9192/* =========================================================================
     
    115116                     ++numeric <= maxnumeric))) {  \
    116117      while (charlength-- > 0) {                                   \
    117         *wptr++ = *(s_in)++; length++;                             \
     118        *wptr++ = *(s_in)++; ++length;                             \
    118119      }                                                            \
    119120      charlength = parse_utf8_char((s_in),(end),&c);               \
     
    135136        break;                                               \
    136137          *wptr++ = c;                                           \
    137           length++;                                              \
     138          ++length;                                              \
    138139          c = *++(s_in);                                         \
    139140        }                                                        \
     
    162163       !is_unicode_letdig(c)) {                                \
    163164      while (charlength-- > 0) {                                   \
    164         *wptr++ = *(s_in)++; length++;                             \
     165        *wptr++ = *(s_in)++; ++length;                             \
    165166      }                                                            \
    166167      charlength = parse_utf8_char((s_in),(end),&c);               \
     
    179180        {                                                      \
    180181          *wptr++ = c;                                         \
    181           length++;                                            \
     182          ++length;                                            \
    182183          c = *++(s_in);                                       \
    183184        }                                                      \
     
    213214                     ++numeric <= maxnumeric))) {  \
    214215      while (charlength-- > 0) {                                   \
    215         *wptr++ = *(s_in)++; length++;                             \
     216        *wptr++ = *(s_in)++; ++length;                             \
    216217      }                                                            \
    217218      charlength = parse_utf8_char((s_in),(end),&c);               \
     
    233234        break;                                            \
    234235      *wptr++ = c;                                        \
    235       length++;                                           \
     236      ++length;                                           \
    236237      c = *++(s_in);                                      \
    237238    }                                                     \
     
    346347        {                                                          \
    347348               *wptr++ = c;                                            \
    348                length++;                                               \
     349               ++length;                                               \
    349350               c = *++(s_in);                                          \
    350351            }                                                          \
Note: See TracChangeset for help on using the changeset viewer.