[hatari-devel] STE dmaSnd.c with better sound

Nicolas Pomarède npomarede at corp.free.fr
Sun Jan 30 16:10:00 CET 2011


Le 30/01/2011 15:55, Laurent Sallafranque a écrit :
> - the goto and the return at end of function (I've duplicated the call
> to filters for Yamaha's sound only)

Hello

regarding the goto / code duplication in that case, I would agree with 
David that a goto is better.

Duplicating ~20-30 lines is not very good, both for readibility and 
maintainability.
Maybe a new function could be created to handle this case if you don't 
want to use the "goto".

Nicolas



More information about the hatari-devel mailing list