From: Lutz M?l. <lu...@us...> - 2004-01-07 23:36:19
|
Update of /cvsroot/libexif/libexif/test In directory sc8-pr-cvs1:/tmp/cvs-serv22394/test Modified Files: Makefile.am test-mnote.c Log Message: 2004-01-08 Lutz Mueller <lu...@us...> * libexif/exif-entry.c (exif_entry_get_value_brief): merge into (exif_entry_get_value) and remove. * tests/test-mnote.c: Make it compile again. * tests/test-value.c: New. * configure.in: API-changes -> increment version. Index: test-mnote.c =================================================================== RCS file: /cvsroot/libexif/libexif/test/test-mnote.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- test-mnote.c 27 Oct 2003 22:34:30 -0000 1.3 +++ test-mnote.c 7 Jan 2004 23:36:16 -0000 1.4 @@ -9,7 +9,7 @@ test_exif_data (ExifData *d) { unsigned int i, c; - char *v; + char v[1024], *p; ExifMnoteData *md; fprintf (stdout, "Byte order: %s\n", @@ -40,11 +40,8 @@ exif_mnote_data_get_title (md, i)); fprintf (stdout, " Description: '%s'\n", exif_mnote_data_get_description (md, i)); - v = exif_mnote_data_get_value (md, i); - if (v) { - fprintf (stdout, " Value: '%s'\n", v); - free (v); - } + p = exif_mnote_data_get_value (md, i, v, sizeof (v)); + if (p) { fprintf (stdout, " Value: '%s'\n", v); } } return 0; Index: Makefile.am =================================================================== RCS file: /cvsroot/libexif/libexif/test/Makefile.am,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- Makefile.am 27 Oct 2003 22:46:08 -0000 1.9 +++ Makefile.am 7 Jan 2004 23:36:16 -0000 1.10 @@ -3,8 +3,9 @@ -I$(top_srcdir)intl \ -I$(top_srcdir) -noinst_PROGRAMS = test-mem test-tree test-mnote +noinst_PROGRAMS = test-mem test-tree test-mnote test-value test_tree_LDADD = $(top_builddir)/libjpeg/libjpeg.la $(top_builddir)/libexif/libexif.la $(INTLLIBS) -test_mem_LDADD = $(top_builddir)/libexif/libexif.la $(INTLLIBS) +test_mem_LDADD = $(top_builddir)/libexif/libexif.la $(INTLLIBS) test_mnote_LDADD = $(top_builddir)/libexif/libexif.la $(INTLLIBS) +test_value_LDADD = $(top_builddir)/libexif/libexif.la $(INTLLIBS) |