>>>> Okay, that won't work as one has to call error_print only once. Maybe >>>> something like the following will work: >>>> >>>> const char *msg, *msg2; >>>> char *buffer; >>>> msg = _("Warning: "); >>>> msg2 = _("Deleted feature:"); >>>> buffer = (char *) alloca (strlen (msg) + strlen (msg2)+1); >>>> strcpy(buffer, msg); >>>> strcat (buffer, msg2); >>>> error_print (buffer, _(gmsgid), argp); >>>> >>>> where the buffer itself is not send through _(). >>> >>> With this you are almost back to my last version, except that you >>> allocate the buffer dynamically. >> ... which is better ;-). > > Yes, of course it's better :) > > Attached is a new version, which uses the dynamic allocation as > proposed by Tobias. > > >> Nice patch anyway. > > Thanks. In case there are more comments on the patch, just keep it > coming. Otherwise I'll commit the attached version soon (once I'm done > with the tedious task of writing a ChangeLog for this baby).
Committed as r189589. Cheers, Janus