XS pleasures

After my rants about Halloween I decided to become a useful part of society again by turning back to my current XS port of the mplib.

Doing XS is actually pretty cool, despite what people generally tend to say about it. But sometimes it is just a little too verbose for my taste. Consider the following chatty code that maps and i3v1_tag structure to a Perl hash (HV):

The mplib's author had the guts to create all those pesky little mp_parse_FIELD functions so I can't that easily do that in a simple for-loop. I wish C had an eval() function! Perhaps I can come up with a macro that does this work for me.

If you wonder how I do the corresponding thing for id3v2 tags with 74 different frames: omission to the rescue! There are no such mp_parse_* functions for those so I have to do that myself. Thanks God!

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Without JavaScript enabled, you might want to
use the classic discussion system instead. If you login, you can remember this preference.