Am 17.06.2014 18:46, schrieb Paolo Bonzini: > Il 17/06/2014 18:37, Andreas Färber ha scritto: >>> > >>> > Longer term, should "child" and "link" be macrofied and these >>> > hardcoded strlen's be fixed to avoid difficult developer traps if >>> > anyone ever tries to change the literal strings? >> I think my preference would be a helper function that returns the T from >> link<T> (non-dup'ed), which could then here be used as "link<%s>". > > How can you return it non-dup'ed? The trailing > gets in the way.
Crap, didn't think of >. > For now I just used strlen("child"). Works for me. Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg