Changeset 9598


Ignore:
Timestamp:
2005-04-07T17:18:18+12:00 (19 years ago)
Author:
kjdon
Message:

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

Location:
trunk/gsdl/src/w32server
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/w32server/cgiwrapper.cpp

    r9138 r9598  
    120120  if (casostr != NULL) {
    121121    char *thepbase=pbase();
    122     for (int i=0;i<(pptr()-pbase());i++) (*casostr).put(thepbase[i]);
     122    for (int i=0;i<(pptr()-pbase());++i) (*casostr).put(thepbase[i]);
    123123  }
    124124 
     
    436436        }
    437437      }
    438       colhere ++;
     438      ++colhere;
    439439    }
    440440    gdbmhomes.insert ((*this_info).second.gsdl_gdbmhome);
    441441      }
    442       this_info ++;
     442      ++this_info;
    443443    }
    444444 
     
    456456    tmp.gsdl_gdbmhome = gsdl_gdbmhome;
    457457    translated_collectinfo[*colhere] = tmp;
    458     colhere ++;
     458    ++colhere;
    459459      }
    460460      gdbmhomes.insert (gsdl_gdbmhome);
     
    469469    // ignore the modelcol
    470470    if (*thiscol == "modelcol") {
    471       thiscol ++;
     471      ++thiscol;
    472472      continue;
    473473    }
     
    483483    cservers->add_collection (*thiscol, this_gsdlhome);
    484484
    485     thiscol ++;
     485    ++thiscol;
    486486  }
    487487
     
    616616    tmpconf.push_back ((*this_info).second.gsdl_gdbmhome);
    617617    recpt.configure ("collectinfo", tmpconf);
    618     this_info ++;
     618    ++this_info;
    619619  }
    620620
     
    632632      return 0;
    633633    }
    634     thome ++;
     634    ++thome;
    635635  }
    636636
     
    671671  while ((it = findchar(it, end, '.')) != end) {
    672672    lastdot = it;
    673     it++;
     673    ++it;
    674674  }
    675675  if (lastdot < end) ext = substr(lastdot+1, end);
     
    842842  cerr << flush;
    843843 
    844   libaccessnum++;
     844  ++libaccessnum;
    845845}
    846846
     
    925925    // POST data
    926926    URIStr.push_back('?');
    927     for (int i = 0; i < RequestFields->ContentLength; i++) {
     927    for (int i = 0; i < RequestFields->ContentLength; ++i) {
    928928      URIStr.push_back(RequestFields->Content[i]);
    929929    }
  • trunk/gsdl/src/w32server/fnord.cpp

    r7610 r9598  
    276276          startline = here+1;
    277277        }
    278         here++;
     278        ++here;
    279279      }
    280280      // output any remaining text
     
    425425  int len = strlen (installpath);
    426426  while ((len > 0) && ((installpath[len-1] == '\\') || (installpath[len-1] == '/'))) {
    427     len--;
     427    --len;
    428428  }
    429429  // remove '\gsdl'
     
    492492  int len = strlen (topdir);
    493493  while ((len > 0) && ((topdir[len-1] == '\\') || (topdir[len-1] == '/'))) {
    494     len--;
     494    --len;
    495495  }
    496496  // remove the '\gsdl'
     
    651651    int len = strlen (winsockpath);
    652652    while ((len > 0) && ((winsockpath[len-1] == '\\') || (winsockpath[len-1] == '/'))) {
    653       len--;
     653      --len;
    654654    }
    655655    winsockpath[len] = '\0';
     
    859859  while (here != end) {
    860860    if (*here == '-' && ((here+1) != end) && (*(here+1) == '-')) {
    861       here++;
     861      ++here;
    862862      if (name == "location") {
    863863    location = val;
     
    881881      }
    882882    }
    883     here++;
     883    ++here;
    884884  }
    885885  if (name == "location") {
  • trunk/gsdl/src/w32server/httpreq.cpp

    r3810 r9598  
    281281      RequestFields.URIStr.push_back(*here);
    282282    }
    283     here++;
     283    ++here;
    284284  }
    285285
     
    372372      RequestFields.OtherHeaders[RequestFields.NumOtherHeaders].Var = FieldNameStr;
    373373      RequestFields.OtherHeaders[RequestFields.NumOtherHeaders].Val = FieldValStr;
    374       RequestFields.NumOtherHeaders++;
     374      ++RequestFields.NumOtherHeaders;
    375375    }
    376376    CurLine = NextLine;
  • trunk/gsdl/src/w32server/locate.cpp

    r4642 r9598  
    6868    send = strrchr(here,'\\');
    6969    if (send != NULL) {
    70       send++;
     70      ++send;
    7171    } else {
    7272      send = strchr(here,':');
    7373      if (send != NULL) {
    74         send++;
     74        ++send;
    7575      } else {
    7676        send = here;
     
    130130  for (e = console_buffer;;) {
    131131    b = e;
    132     while (*e >= ' ') e++;
     132    while (*e >= ' ') ++e;
    133133    TextOut(dc,0,loc,b,e-b);
    134134    loc += line_spacing;
    135135    if (*e == 0) break;
    136     e++;
     136    ++e;
    137137    if (*e == 0) break;
    138138    }
     
    157157  char *bin, *bout;
    158158  bin = bout = console_buffer;
    159   while (*bin >= ' ') bin++;
     159  while (*bin >= ' ') ++bin;
    160160  if (*bin != 0) {
    161     bin++;
     161    ++bin;
    162162    if (*bin != 0) {
    163163      while (*bin != 0) *bout++ = *bin++;
     
    195195  if (*next_console != 0) {
    196196    last_console = next_console;
    197     next_console++;
     197    ++next_console;
    198198    *next_console = 0;
    199199    }
     
    207207      if (*bp == '\t') *bp = ' ';
    208208      if (*bp < ' ') break;
    209       bp++;
     209      ++bp;
    210210      }
    211211    if (*bp != 0) *bp = '\n';
     
    238238    while (len < n) {
    239239      fputc (msg[len], log_file);
    240       len++;
     240      ++len;
    241241    }
    242242    fflush(log_file);
  • trunk/gsdl/src/w32server/netio.cpp

    r3810 r9598  
    212212 
    213213  bind_port = PortNum;
    214   for (bind_count=0; bind_count < MAXBINDCOUNT; bind_count++) {
     214  for (bind_count=0; bind_count < MAXBINDCOUNT; ++bind_count) {
    215215    // Set up the Server Socket Address
    216216    memset(&ServerSockAddr, 0, sizeof(ServerSockAddr)); //Needed?
     
    234234    if (bind_port == 80) bind_port = IPPORT_RESERVED+1;
    235235    else if (bind_count == 0) bind_port = 80;
    236     else bind_port++;
     236    else ++bind_port;
    237237  }
    238238 
     
    349349    }
    350350    CurChar = IOBuffer[BufferIndex];
    351     BufferIndex++;
     351    ++BufferIndex;
    352352    if ((CurChar != 10) && (CurChar != 13))  {
    353353      OutStr.push_back(CurChar);
  • trunk/gsdl/src/w32server/parse.cpp

    r3810 r9598  
    5858  //Find the first non-space charactor
    5959  while ( (TargetStr[i] == ' ') || (TargetStr[i] == '\t') ) {
    60     i++;
     60    ++i;
    6161  }
    6262  //If we have space to get rid of, move the string
     
    7373  i = strlen(TargetStr) - 1;
    7474  while ((i >= 0) && ((TargetStr[i] == ' ') || (TargetStr[i] == '\t')) ) {
    75     i--;
     75    --i;
    7676  }
    7777  //Set the NULL 1 after the last non-space charactor
     
    9292  while (first != last) {
    9393    if (*first == ' ' || *first == '\t') {
    94       first++;
     94      ++first;
    9595      while ((first != last) && ((*first == ' ') || (*first == '\t'))) {
    96     first++;
     96    ++first;
    9797      }
    9898      next = first;
     
    101101      DestStr.push_back(*first);
    102102    }
    103     first++;
     103    ++first;
    104104  }
    105105}
     
    119119      DestStr.push_back(*first);
    120120    }
    121     first ++;
     121    ++first;
    122122  }
    123123}
     
    127127  SplitPoint = strlen(Path) - 1;
    128128  while ((SplitPoint > 0) && (Path[SplitPoint] != '\\')) {
    129     SplitPoint--;
     129    --SplitPoint;
    130130  }
    131131  if ((SplitPoint == 0) && (Path[SplitPoint] != '\\')) {
     
    136136  else {
    137137    //Move past the last slash
    138     SplitPoint++;
     138    ++SplitPoint;
    139139   
    140140    //Directory
     
    142142    while (i < SplitPoint) {
    143143      Dir[i] = Path[i];
    144       i++;
     144      ++i;
    145145    }
    146146    Dir[i] = 0;
     
    150150    while (Path[i] != 0) {
    151151      FileName[j] = Path[i];
    152       j++;
    153       i++;
     152      ++j;
     153      ++i;
    154154    }
    155155    FileName[j] = 0;
     
    164164  Dot = PathLen;
    165165  while ((Dot > 0) && (Path[Dot] != '.')) {
    166     Dot--;
     166    --Dot;
    167167  }
    168168  if (Dot > 0) {
     
    188188    else {
    189189      TargetStr[j] = TargetStr[i];
    190       i++;
    191     }
    192     j++;
     190      ++i;
     191    }
     192    ++j;
    193193  }
    194194  TargetStr[j] = 0;
  • trunk/gsdl/src/w32server/settings.cpp

    r9526 r9598  
    8383  int len = strlen (str);
    8484  while ((len > 0) && ((str[len-1] == '\\') || (str[len-1] == '/'))) {
    85     len --;
     85    --len;
    8686  }
    8787  str[len] = '\0';
     
    152152          state = 1;
    153153          path[len] = path[i];
    154           len++;
     154          ++len;
    155155        }
    156156      } else {
    157157        if (path[i] == endchar) break;
    158158        path[len] = path[i];
    159         len++;
     159        ++len;
    160160      }
    161       i++;
     161      ++i;
    162162    }
    163163    path[len] = '\0';
     
    322322    write_ini_line(fout, "gdbmhome", (*here).second.gsdl_gdbmhome);
    323323     
    324       here ++;
     324      ++here;
    325325    }
    326326    fout.close();
     
    503503    remove_end_slashes ((*here).second.gsdl_gsdlhome);
    504504    remove_end_slashes ((*here).second.gsdl_gdbmhome);
    505     here ++;
     505    ++here;
    506506  }
    507507
  • trunk/gsdl/src/w32server/startbrowser.cpp

    r2286 r9598  
    240240  if (res <= 31) return SB_FAIL_NORESOURCES;
    241241 
    242   numbrowserstarted++;
     242  ++numbrowserstarted;
    243243 
    244244  // if we aren't using iexplore then the url was
  • trunk/gsdl/src/w32server/wincgiutils.cpp

    r2338 r9598  
    5454  while (it < end) {
    5555    if (*it == ':') {
    56       it++;
     56      ++it;
    5757      text_t portstr;
    5858      while (it != end && (*it >= '0' && *it <= '9')) {
    5959    portstr.push_back(*it);
    60     it++;
     60    ++it;
    6161      }
    6262      *port = portstr.getint();
     
    6767      while (it != end) {
    6868    name.push_back(*it);
    69     it++;
     69    ++it;
    7070      }
    7171      break;
     
    7373
    7474    machine.push_back(*it);
    75     it ++;
     75    ++it;
    7676  }
    7777  return http_ok;
Note: See TracChangeset for help on using the changeset viewer.