aboutsummaryrefslogtreecommitdiff
path: root/src/idop.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-07-13 00:53:12 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-07-13 00:57:04 +0300
commit8d89ce088cc25786cb9520f67e9fe81c86c70277 (patch)
tree000bce5f45503a1760a9ac38c32c17ebfe6d9ea2 /src/idop.c
parentb6fb320cbbddc73aa5bbe76310931ddfc2d15979 (diff)
downloadidest-8d89ce088cc25786cb9520f67e9fe81c86c70277.tar.gz
idest-8d89ce088cc25786cb9520f67e9fe81c86c70277.tar.bz2
Get rid of argmatch.
* gnulib.modules: Remove argmatch. * src/backup.c: Remove unused include. * src/idest.h: Remove unused include. (frame_id): Rename to frame_to_item_id. (ed_item_set_comment_fields): New proto. * src/main.c (item_ids, item_names) (item_frames) (item_id,frame_id) (ed_item_find): Remove. (item_table, item_count): New variables. (name_to_item_info) (frame_id_to_item_info) (frame_to_item_id): New functions.
Diffstat (limited to 'src/idop.c')
-rw-r--r--src/idop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/idop.c b/src/idop.c
index a906a8c..45fd148 100644
--- a/src/idop.c
+++ b/src/idop.c
@@ -26,13 +26,13 @@ set_frame_value(struct id3_frame *frame, const struct ed_item *item)
enum id3_field_textencoding encoding =
(latin1_option ? ID3_FIELD_TEXTENCODING_ISO_8859_1
: ID3_FIELD_TEXTENCODING_UTF_8);
id3_ucs4_t *ucs4;
const char *condesc;
- switch (frame_id(frame->id)) {
+ switch (frame_to_item_id(frame->id)) {
default:
field = id3_frame_field(frame, 0);
id3_field_settextencoding(field, encoding);
if (latin1_option)
ucs4 = id3_latin1_ucs4duplicate(
@@ -101,13 +101,12 @@ update_frame(struct id3_tag *tag, const struct ed_item *item)
if (id3_tag_attachframe(tag, frame))
error(1, 0, "cannot attach new frame");
} else if (strcmp(item->id, ID3_FRAME_COMMENT) == 0
&& item->condesc) {
/* Special handling for comments */
int i = 0;
- union id3_field *field;
do {
union id3_field *field = id3_frame_field(frame, 2);
char *s;
if (field && (s = field_to_string(field, 0))

Return to:

Send suggestions and report system problems to the System administrator.