Considering that morse could use same beep dsp code, instead of repeating dsp code inside morse, why not use a dsp library or something so that morse could use it without duplicating code?
Hans Petter Selasky <[email protected]> escreveu no dia sábado, 29/10/2022 à(s) 19:22: > On 10/29/22 20:18, Nuno Teixeira wrote: > >> Technically you could symlink the two - yes. > > > > Can't understand how, what do I missing? > > > > In the main() routine, the name of the program name is passed. > > Then you just check if argv[0] == "morse" and invoke main_morse() > instead, if you see. Of course you need to write main_morse() first, but > you can re-use all the dsp code in there. > > --HPS > > > -- Nuno Teixeira FreeBSD Committer (ports)
