** Return true if string z[] has nothing but whitespace and comments to the ** end of the first line. */
| 11981 | ** end of the first line. |
| 11982 | */ |
| 11983 | static int wsToEol(const char *z){ |
| 11984 | int i; |
| 11985 | for(i=0; z[i]; i++){ |
| 11986 | if( z[i]=='\n' ) return 1; |
| 11987 | if( IsSpace(z[i]) ) continue; |
| 11988 | if( z[i]=='-' && z[i+1]=='-' ) return 1; |
| 11989 | return 0; |
| 11990 | } |
| 11991 | return 1; |
| 11992 | } |
| 11993 | |
| 11994 | /* |
| 11995 | ** Add a new entry to the EXPLAIN QUERY PLAN data |