Changeset 9598
- Timestamp:
- 2005-04-07T17:18:18+12:00 (19 years ago)
- Location:
- trunk/gsdl/src/w32server
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/w32server/cgiwrapper.cpp
r9138 r9598 120 120 if (casostr != NULL) { 121 121 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]); 123 123 } 124 124 … … 436 436 } 437 437 } 438 colhere ++;438 ++colhere; 439 439 } 440 440 gdbmhomes.insert ((*this_info).second.gsdl_gdbmhome); 441 441 } 442 this_info ++;442 ++this_info; 443 443 } 444 444 … … 456 456 tmp.gsdl_gdbmhome = gsdl_gdbmhome; 457 457 translated_collectinfo[*colhere] = tmp; 458 colhere ++;458 ++colhere; 459 459 } 460 460 gdbmhomes.insert (gsdl_gdbmhome); … … 469 469 // ignore the modelcol 470 470 if (*thiscol == "modelcol") { 471 thiscol ++;471 ++thiscol; 472 472 continue; 473 473 } … … 483 483 cservers->add_collection (*thiscol, this_gsdlhome); 484 484 485 thiscol ++;485 ++thiscol; 486 486 } 487 487 … … 616 616 tmpconf.push_back ((*this_info).second.gsdl_gdbmhome); 617 617 recpt.configure ("collectinfo", tmpconf); 618 this_info ++;618 ++this_info; 619 619 } 620 620 … … 632 632 return 0; 633 633 } 634 thome ++;634 ++thome; 635 635 } 636 636 … … 671 671 while ((it = findchar(it, end, '.')) != end) { 672 672 lastdot = it; 673 it++;673 ++it; 674 674 } 675 675 if (lastdot < end) ext = substr(lastdot+1, end); … … 842 842 cerr << flush; 843 843 844 libaccessnum++;844 ++libaccessnum; 845 845 } 846 846 … … 925 925 // POST data 926 926 URIStr.push_back('?'); 927 for (int i = 0; i < RequestFields->ContentLength; i++) {927 for (int i = 0; i < RequestFields->ContentLength; ++i) { 928 928 URIStr.push_back(RequestFields->Content[i]); 929 929 } -
trunk/gsdl/src/w32server/fnord.cpp
r7610 r9598 276 276 startline = here+1; 277 277 } 278 here++;278 ++here; 279 279 } 280 280 // output any remaining text … … 425 425 int len = strlen (installpath); 426 426 while ((len > 0) && ((installpath[len-1] == '\\') || (installpath[len-1] == '/'))) { 427 len--;427 --len; 428 428 } 429 429 // remove '\gsdl' … … 492 492 int len = strlen (topdir); 493 493 while ((len > 0) && ((topdir[len-1] == '\\') || (topdir[len-1] == '/'))) { 494 len--;494 --len; 495 495 } 496 496 // remove the '\gsdl' … … 651 651 int len = strlen (winsockpath); 652 652 while ((len > 0) && ((winsockpath[len-1] == '\\') || (winsockpath[len-1] == '/'))) { 653 len--;653 --len; 654 654 } 655 655 winsockpath[len] = '\0'; … … 859 859 while (here != end) { 860 860 if (*here == '-' && ((here+1) != end) && (*(here+1) == '-')) { 861 here++;861 ++here; 862 862 if (name == "location") { 863 863 location = val; … … 881 881 } 882 882 } 883 here++;883 ++here; 884 884 } 885 885 if (name == "location") { -
trunk/gsdl/src/w32server/httpreq.cpp
r3810 r9598 281 281 RequestFields.URIStr.push_back(*here); 282 282 } 283 here++;283 ++here; 284 284 } 285 285 … … 372 372 RequestFields.OtherHeaders[RequestFields.NumOtherHeaders].Var = FieldNameStr; 373 373 RequestFields.OtherHeaders[RequestFields.NumOtherHeaders].Val = FieldValStr; 374 RequestFields.NumOtherHeaders++;374 ++RequestFields.NumOtherHeaders; 375 375 } 376 376 CurLine = NextLine; -
trunk/gsdl/src/w32server/locate.cpp
r4642 r9598 68 68 send = strrchr(here,'\\'); 69 69 if (send != NULL) { 70 send++;70 ++send; 71 71 } else { 72 72 send = strchr(here,':'); 73 73 if (send != NULL) { 74 send++;74 ++send; 75 75 } else { 76 76 send = here; … … 130 130 for (e = console_buffer;;) { 131 131 b = e; 132 while (*e >= ' ') e++;132 while (*e >= ' ') ++e; 133 133 TextOut(dc,0,loc,b,e-b); 134 134 loc += line_spacing; 135 135 if (*e == 0) break; 136 e++;136 ++e; 137 137 if (*e == 0) break; 138 138 } … … 157 157 char *bin, *bout; 158 158 bin = bout = console_buffer; 159 while (*bin >= ' ') bin++;159 while (*bin >= ' ') ++bin; 160 160 if (*bin != 0) { 161 bin++;161 ++bin; 162 162 if (*bin != 0) { 163 163 while (*bin != 0) *bout++ = *bin++; … … 195 195 if (*next_console != 0) { 196 196 last_console = next_console; 197 next_console++;197 ++next_console; 198 198 *next_console = 0; 199 199 } … … 207 207 if (*bp == '\t') *bp = ' '; 208 208 if (*bp < ' ') break; 209 bp++;209 ++bp; 210 210 } 211 211 if (*bp != 0) *bp = '\n'; … … 238 238 while (len < n) { 239 239 fputc (msg[len], log_file); 240 len++;240 ++len; 241 241 } 242 242 fflush(log_file); -
trunk/gsdl/src/w32server/netio.cpp
r3810 r9598 212 212 213 213 bind_port = PortNum; 214 for (bind_count=0; bind_count < MAXBINDCOUNT; bind_count++) {214 for (bind_count=0; bind_count < MAXBINDCOUNT; ++bind_count) { 215 215 // Set up the Server Socket Address 216 216 memset(&ServerSockAddr, 0, sizeof(ServerSockAddr)); //Needed? … … 234 234 if (bind_port == 80) bind_port = IPPORT_RESERVED+1; 235 235 else if (bind_count == 0) bind_port = 80; 236 else bind_port++;236 else ++bind_port; 237 237 } 238 238 … … 349 349 } 350 350 CurChar = IOBuffer[BufferIndex]; 351 BufferIndex++;351 ++BufferIndex; 352 352 if ((CurChar != 10) && (CurChar != 13)) { 353 353 OutStr.push_back(CurChar); -
trunk/gsdl/src/w32server/parse.cpp
r3810 r9598 58 58 //Find the first non-space charactor 59 59 while ( (TargetStr[i] == ' ') || (TargetStr[i] == '\t') ) { 60 i++;60 ++i; 61 61 } 62 62 //If we have space to get rid of, move the string … … 73 73 i = strlen(TargetStr) - 1; 74 74 while ((i >= 0) && ((TargetStr[i] == ' ') || (TargetStr[i] == '\t')) ) { 75 i--;75 --i; 76 76 } 77 77 //Set the NULL 1 after the last non-space charactor … … 92 92 while (first != last) { 93 93 if (*first == ' ' || *first == '\t') { 94 first++;94 ++first; 95 95 while ((first != last) && ((*first == ' ') || (*first == '\t'))) { 96 first++;96 ++first; 97 97 } 98 98 next = first; … … 101 101 DestStr.push_back(*first); 102 102 } 103 first++;103 ++first; 104 104 } 105 105 } … … 119 119 DestStr.push_back(*first); 120 120 } 121 first ++;121 ++first; 122 122 } 123 123 } … … 127 127 SplitPoint = strlen(Path) - 1; 128 128 while ((SplitPoint > 0) && (Path[SplitPoint] != '\\')) { 129 SplitPoint--;129 --SplitPoint; 130 130 } 131 131 if ((SplitPoint == 0) && (Path[SplitPoint] != '\\')) { … … 136 136 else { 137 137 //Move past the last slash 138 SplitPoint++;138 ++SplitPoint; 139 139 140 140 //Directory … … 142 142 while (i < SplitPoint) { 143 143 Dir[i] = Path[i]; 144 i++;144 ++i; 145 145 } 146 146 Dir[i] = 0; … … 150 150 while (Path[i] != 0) { 151 151 FileName[j] = Path[i]; 152 j++;153 i++;152 ++j; 153 ++i; 154 154 } 155 155 FileName[j] = 0; … … 164 164 Dot = PathLen; 165 165 while ((Dot > 0) && (Path[Dot] != '.')) { 166 Dot--;166 --Dot; 167 167 } 168 168 if (Dot > 0) { … … 188 188 else { 189 189 TargetStr[j] = TargetStr[i]; 190 i++;191 } 192 j++;190 ++i; 191 } 192 ++j; 193 193 } 194 194 TargetStr[j] = 0; -
trunk/gsdl/src/w32server/settings.cpp
r9526 r9598 83 83 int len = strlen (str); 84 84 while ((len > 0) && ((str[len-1] == '\\') || (str[len-1] == '/'))) { 85 len --;85 --len; 86 86 } 87 87 str[len] = '\0'; … … 152 152 state = 1; 153 153 path[len] = path[i]; 154 len++;154 ++len; 155 155 } 156 156 } else { 157 157 if (path[i] == endchar) break; 158 158 path[len] = path[i]; 159 len++;159 ++len; 160 160 } 161 i++;161 ++i; 162 162 } 163 163 path[len] = '\0'; … … 322 322 write_ini_line(fout, "gdbmhome", (*here).second.gsdl_gdbmhome); 323 323 324 here ++;324 ++here; 325 325 } 326 326 fout.close(); … … 503 503 remove_end_slashes ((*here).second.gsdl_gsdlhome); 504 504 remove_end_slashes ((*here).second.gsdl_gdbmhome); 505 here ++;505 ++here; 506 506 } 507 507 -
trunk/gsdl/src/w32server/startbrowser.cpp
r2286 r9598 240 240 if (res <= 31) return SB_FAIL_NORESOURCES; 241 241 242 numbrowserstarted++;242 ++numbrowserstarted; 243 243 244 244 // if we aren't using iexplore then the url was -
trunk/gsdl/src/w32server/wincgiutils.cpp
r2338 r9598 54 54 while (it < end) { 55 55 if (*it == ':') { 56 it++;56 ++it; 57 57 text_t portstr; 58 58 while (it != end && (*it >= '0' && *it <= '9')) { 59 59 portstr.push_back(*it); 60 it++;60 ++it; 61 61 } 62 62 *port = portstr.getint(); … … 67 67 while (it != end) { 68 68 name.push_back(*it); 69 it++;69 ++it; 70 70 } 71 71 break; … … 73 73 74 74 machine.push_back(*it); 75 it ++;75 ++it; 76 76 } 77 77 return http_ok;
Note:
See TracChangeset
for help on using the changeset viewer.