| 4174 | HWND LastErrorPopup = NULL; |
| 4175 | extern long SHOWWARNINGS; |
| 4176 | long GetCurrentLine(EERIE_SCRIPT * es, long poss) |
| 4177 | { |
| 4178 | long pos = 0; |
| 4179 | long linecount = -1; |
| 4180 | |
| 4181 | while ((pos < poss) && (pos < es->size)) |
| 4182 | { |
| 4183 | pos = GotoNextLine(es, pos); |
| 4184 | |
| 4185 | if (pos == -1) return -1; |
| 4186 | |
| 4187 | linecount++; |
| 4188 | } |
| 4189 | |
| 4190 | if (linecount == -1) return -1; |
| 4191 | |
| 4192 | return linecount + 1; |
| 4193 | } |
| 4194 | long GetLastLineNum(EERIE_SCRIPT * es) |
| 4195 | { |
| 4196 | long pos = 0; |
no test coverage detected