Demonstration of groff .psbb request handling code, for EPS and PDF input files
修訂 | 7cf9469ac1d6b6df5730e3ee336620856f5286e2 (tree) |
---|---|
時間 | 2017-10-11 20:24:05 |
作者 | Keith Marshall <keith@user...> |
Commiter | Keith Marshall |
Add DEBUGGING mode "next object" reference logging.
* psbblex.l (PDFSCANOBJECT): Add DEBUG_MSG request, to report the...
(PDFENDOBJ) [DEBUGGING]: ...next object to be scanned, after this.
@@ -553,7 +553,12 @@ static int pdf_trailer( void ) | ||
553 | 553 | */ |
554 | 554 | <PDFSCANOBJECT>{ |
555 | 555 | {SEP}*"<<" { yy_push_state( PDFDICT ); } |
556 | -"endobj"/{SEP} { DEBUG_ECHO; RETURN(PDFENDOBJ); } | |
556 | +"endobj"/{SEP} { DEBUG_ECHO; | |
557 | + DEBUG_MSG(("%d: next object reference: %d %d\n", | |
558 | + YYSTATE, ref[0], ref[1] | |
559 | + )); | |
560 | + RETURN(PDFENDOBJ); | |
561 | + } | |
557 | 562 | (.|\n) |
558 | 563 | } |
559 | 564 |