comparison src/http/ngx_http_parse.c @ 5757:c5ec6944de98

Style: add whitespace between control statement and parentheses. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
author Piotr Sikora <piotr@cloudflare.com>
date Tue, 08 Jul 2014 03:03:13 -0700
parents 3a48775f1535
children e370c5fdf4c8
comparison
equal deleted inserted replaced
5756:5b7276408565 5757:c5ec6944de98
1285 *u++ = ch; 1285 *u++ = ch;
1286 ch = *p++; 1286 ch = *p++;
1287 break; 1287 break;
1288 } 1288 }
1289 1289
1290 switch(ch) { 1290 switch (ch) {
1291 #if (NGX_WIN32) 1291 #if (NGX_WIN32)
1292 case '\\': 1292 case '\\':
1293 if (u - 2 >= r->uri.data 1293 if (u - 2 >= r->uri.data
1294 && *(u - 1) == '.' && *(u - 2) != '.') 1294 && *(u - 1) == '.' && *(u - 2) != '.')
1295 { 1295 {
1355 *u++ = ch; 1355 *u++ = ch;
1356 ch = *p++; 1356 ch = *p++;
1357 break; 1357 break;
1358 } 1358 }
1359 1359
1360 switch(ch) { 1360 switch (ch) {
1361 #if (NGX_WIN32) 1361 #if (NGX_WIN32)
1362 case '\\': 1362 case '\\':
1363 break; 1363 break;
1364 #endif 1364 #endif
1365 case '/': 1365 case '/':
1398 *u++ = ch; 1398 *u++ = ch;
1399 ch = *p++; 1399 ch = *p++;
1400 break; 1400 break;
1401 } 1401 }
1402 1402
1403 switch(ch) { 1403 switch (ch) {
1404 #if (NGX_WIN32) 1404 #if (NGX_WIN32)
1405 case '\\': 1405 case '\\':
1406 #endif 1406 #endif
1407 case '/': 1407 case '/':
1408 state = sw_slash; 1408 state = sw_slash;
1439 *u++ = ch; 1439 *u++ = ch;
1440 ch = *p++; 1440 ch = *p++;
1441 break; 1441 break;
1442 } 1442 }
1443 1443
1444 switch(ch) { 1444 switch (ch) {
1445 #if (NGX_WIN32) 1445 #if (NGX_WIN32)
1446 case '\\': 1446 case '\\':
1447 #endif 1447 #endif
1448 case '/': 1448 case '/':
1449 state = sw_slash; 1449 state = sw_slash;