Skip to content

bin2txt: Remove extra new line when version is printed, optimize Makefile as well#193

Merged
RetroAntho merged 3 commits intoalekmaul:developfrom
kobenairb:makefile_bin2txt
Apr 10, 2023
Merged

bin2txt: Remove extra new line when version is printed, optimize Makefile as well#193
RetroAntho merged 3 commits intoalekmaul:developfrom
kobenairb:makefile_bin2txt

Conversation

@kobenairb
Copy link
Copy Markdown
Contributor

Hi all,

Some small improvements for bin2txt. I slighty optimized the Makefile and remove useless new lines in bin2txt.c when printing version.

Here the changes performed on the Makefile:

  • Uses := instead of = for variable assignment to prevent unnecessary re-evaluation.
  • Uses $(shell date +%Y%m%d) instead of invoking the date command multiple times.
  • Uses automatic variable expansion to reduce duplication in the Makefile.

For the bin2txt.c source file, I just removed the \n\n for the PrintVersion function and applied some formating (extra spaces, sort include ...).

@RetroAntho RetroAntho merged commit a7b68f0 into alekmaul:develop Apr 10, 2023
@kobenairb kobenairb deleted the makefile_bin2txt branch April 13, 2023 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants