Fix testpdfio build - dependencies on pdfio-private.h were missing.

This commit is contained in:
Michael R Sweet 2021-11-29 17:57:49 -05:00
parent a431d7806f
commit 001dcbb123
No known key found for this signature in database
GPG Key ID: 999559A027815955
2 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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);