| 354 | |
| 355 | |
| 356 | static const char * |
| 357 | parse_string(const char *ptr, const char *end, MEM_ROOT *mem_root, |
| 358 | LEX_STRING *str) |
| 359 | { |
| 360 | // get string length |
| 361 | const char *eol= strchr(ptr, '\n'); |
| 362 | |
| 363 | if (eol >= end) |
| 364 | return 0; |
| 365 | |
| 366 | str->length= eol - ptr; |
| 367 | |
| 368 | if (!(str->str= strmake_root(mem_root, ptr, str->length))) |
| 369 | return 0; |
| 370 | return eol+1; |
| 371 | } |
| 372 | |
| 373 | |
| 374 | /** |