** Test to see if a line consists entirely of whitespace. */
| 1268 | ** Test to see if a line consists entirely of whitespace. |
| 1269 | */ |
| 1270 | static int _all_whitespace(const char *z){ |
| 1271 | for(; *z; z++){ |
| 1272 | if( isspace(*(unsigned char*)z) ) continue; |
| 1273 | if( *z=='/' && z[1]=='*' ){ |
| 1274 | z += 2; |
| 1275 | while( *z && (*z!='*' || z[1]!='/') ){ z++; } |
| 1276 | if( *z==0 ) return 0; |
| 1277 | z++; |
| 1278 | continue; |
| 1279 | } |
| 1280 | if( *z=='-' && z[1]=='-' ){ |
| 1281 | z += 2; |
| 1282 | while( *z && *z!='\n' ){ z++; } |
| 1283 | if( *z==0 ) return 1; |
| 1284 | continue; |
| 1285 | } |
| 1286 | return 0; |
| 1287 | } |
| 1288 | return 1; |
| 1289 | } |
| 1290 | |
| 1291 | |
| 1292 | /* |
no outgoing calls
no test coverage detected