Page 1 of 1
Cleaning up harbour code
Posted: Tue Sep 01, 2020 2:21 pm
by HGAutomator
Hi,
Is there an existing utility to clean up some older code? You know, like identifying unused variables, and maybe re-indenting, that sort of thing?
Regards,
Re: Cleaning up harbour code
Posted: Tue Sep 01, 2020 2:36 pm
by srvet_claudio
Hi,
try with:
c:\hmg.3.4.4\build.bat filename.prg -w3 -es2
Re: Cleaning up harbour code
Posted: Tue Sep 01, 2020 3:07 pm
by danielmaximiliano
en tiempo de compilacion generando un log se obtiene las variables sin usar, esto esta descripto aqui
https://raw.githubusercontent.com/harbo ... ldnews.txt
puedes buscar en el navegador "Added detection of unused variable assigments"
Re: Cleaning up harbour code
Posted: Tue Sep 01, 2020 3:11 pm
by HGAutomator
Thanks, srvet.
srvet_claudio wrote: ↑Tue Sep 01, 2020 2:36 pm
Hi,
try with:
c:\hmg.3.4.4\build.bat filename.prg -w3 -es2