I'm writing some software using GCC 2.95.3. At the moment its all contained in one executable, but later on I'm going to put a lot of the routines in a shared library.
Because of this, a lot of my routines expect taglists. At the moment i'm calling them like this:
struct TagItem mytags[2];
mytags[0].ti_Tag = TAG_SOMETHING_OR_OTHER;
mytags[0].ti_Data = 1234;
mytags[1].ti_Tag =TAG_DONE
mytags[1].ti_Data = 0;
myDoSomethingA( mytags )
Which is quite untidy, and annoying. Is it possible to call the function and specify the tags like you do normally? If so, how?