mirror of
				https://github.com/michaelrsweet/pdfio.git
				synced 2025-10-30 18:05:39 +01:00 
			
		
		
		
	Fix testpdfio build - dependencies on pdfio-private.h were missing.
This commit is contained in:
		
							
								
								
									
										7
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								Makefile
									
									
									
									
									
								
							| @@ -16,8 +16,8 @@ ARFLAGS		=	cr | |||||||
| CC		=	cc | CC		=	cc | ||||||
| CFLAGS		= | CFLAGS		= | ||||||
| CODESIGN_IDENTITY =	Developer ID | CODESIGN_IDENTITY =	Developer ID | ||||||
| #COMMONFLAGS	=	-Os -g | COMMONFLAGS	=	-Os -g | ||||||
| COMMONFLAGS	=	-O0 -g -fsanitize=address | #COMMONFLAGS	=	-O0 -g -fsanitize=address | ||||||
| CPPFLAGS	=	'-DPDFIO_VERSION="$(VERSION)"' | CPPFLAGS	=	'-DPDFIO_VERSION="$(VERSION)"' | ||||||
| DESTDIR		=	$(DSTROOT) | DESTDIR		=	$(DSTROOT) | ||||||
| DSO		=	cc | DSO		=	cc | ||||||
| @@ -160,8 +160,7 @@ testpdfio:		testpdfio.o libpdfio.a | |||||||
|  |  | ||||||
|  |  | ||||||
| # Dependencies | # Dependencies | ||||||
| $(OBJS):		pdfio.h Makefile | $(OBJS):		pdfio.h pdfio-private.h Makefile | ||||||
| $(LIBOBJS):		pdfio-private.h |  | ||||||
| pdfio-content.o:	pdfio-content.h ttf.h | pdfio-content.o:	pdfio-content.h ttf.h | ||||||
| ttf.o:			ttf.h | ttf.o:			ttf.h | ||||||
|  |  | ||||||
|   | |||||||
| @@ -971,7 +971,7 @@ do_unit_tests(void) | |||||||
|   fputs("_pdfioValueRead(complex_dict): ", stdout); |   fputs("_pdfioValueRead(complex_dict): ", stdout); | ||||||
|   s = complex_dict; |   s = complex_dict; | ||||||
|   _pdfioTokenInit(&tb, inpdf, (_pdfio_tconsume_cb_t)token_consume_cb, (_pdfio_tpeek_cb_t)token_peek_cb, (void *)&s); |   _pdfioTokenInit(&tb, inpdf, (_pdfio_tconsume_cb_t)token_consume_cb, (_pdfio_tpeek_cb_t)token_peek_cb, (void *)&s); | ||||||
|   if (_pdfioValueRead(inpdf, NULL, &tb, &value)) |   if (_pdfioValueRead(inpdf, NULL, &tb, &value, 0)) | ||||||
|   { |   { | ||||||
|     // TODO: Check value... |     // TODO: Check value... | ||||||
|     fputs("PASS: ", stdout); |     fputs("PASS: ", stdout); | ||||||
| @@ -985,7 +985,7 @@ do_unit_tests(void) | |||||||
|   fputs("_pdfioValueRead(cid_dict): ", stdout); |   fputs("_pdfioValueRead(cid_dict): ", stdout); | ||||||
|   s = cid_dict; |   s = cid_dict; | ||||||
|   _pdfioTokenInit(&tb, inpdf, (_pdfio_tconsume_cb_t)token_consume_cb, (_pdfio_tpeek_cb_t)token_peek_cb, (void *)&s); |   _pdfioTokenInit(&tb, inpdf, (_pdfio_tconsume_cb_t)token_consume_cb, (_pdfio_tpeek_cb_t)token_peek_cb, (void *)&s); | ||||||
|   if (_pdfioValueRead(inpdf, NULL, &tb, &value)) |   if (_pdfioValueRead(inpdf, NULL, &tb, &value, 0)) | ||||||
|   { |   { | ||||||
|     // TODO: Check value... |     // TODO: Check value... | ||||||
|     fputs("PASS: ", stdout); |     fputs("PASS: ", stdout); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user