From 3a27428194f866050472b0f7c7b9e55b19cec230 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sun, 15 Mar 2009 23:10:01 +0200 Subject: Remove old v1 code. Add an option for converting tags to v1. * libid3tag/file.c (SIZE_T_MAX): Rename to MALLOC_MAX. Use (size_t_max-1), due to a bug in glibc's malloc. (make_temp_file): Fix size calculation (memory overrun). (v2_write): data and/or length can be 0. (id3_file_update): Drop v2 header, if ID3_TAG_OPTION_NO_ID3V2 is set. * libid3tag/id3tag.h (ID3_TAG_OPTION_NO_ID3V2): New constant. * src/id3v1.c, src/id3v1.h: Remove. * src/id3v2.c: Rename to... * src/idop.c: ... this. (set_tags): Handle convert_version and version_option. * src/Makefile.am: Reflect the above. * src/cmdline.opt (--convert, -C): New option. * src/idest.h: Kick off id3v1.h. (convert_version, version_option): new externs. (set_id3v1, query_id3v1, del_id3v1) (set_id3v2, query_id3v2, del_id3v2): Remove. (set_tags, query_tags, del_tags): New prototypes. * src/main.c (convert_version): New variable. (query_id3): use all_frames to determine ed_list. (set_id3): Remove old v1 code. (main): Remove old v1 code. --- src/Makefile.am | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 3c9b876..a94be57 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -18,9 +18,7 @@ bin_PROGRAMS=idest idest_SOURCES=\ backup.c\ idest.h\ - id3v1.c\ - id3v1.h\ - id3v2.c\ + idop.c\ main.c\ cmdline.h\ slist.c -- cgit v1.2.1