File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,8 @@ namespace lsp
311311 // Read lines
312312 while ((res = read_line ()) == STATUS_OK)
313313 {
314+ fprintf (stderr, " READ LINE: %s\n " , sLine .get_utf8 ());
315+
314316 // Check that line is not empty
315317 const char *l = skip_spaces (sLine .get_utf8 ());
316318 if ((l == NULL ) || (*l == ' \0 ' ))
@@ -530,10 +532,13 @@ namespace lsp
530532 return true ;
531533 }
532534
533- status_t PullParser::parse_line (const char *s )
535+ status_t PullParser::parse_line (const char *line )
534536 {
535537 status_t result = ((nLines++) > 0 ) ? STATUS_CORRUPTED_FILE : STATUS_BAD_FORMAT;
536538
539+ fprintf (stderr, " PARSE LINE: %s\n " , line);
540+
541+ const char *s = line;
537542 switch (*(s++))
538543 {
539544 case ' b' : // bmat, bevel
@@ -858,6 +863,9 @@ namespace lsp
858863 break ;
859864 }
860865
866+ if (result != STATUS_OK)
867+ lsp::debug::dumpb (" Could not parse line" , line, strlen (line));
868+
861869 return result;
862870 }
863871
You can’t perform that action at this time.
0 commit comments