Closed antipatico closed 1 month ago
This PR introduces very basic Linux support. Fixes #26.
These changes have been made to the source code to make this happen:
Immolate
MAX_PATH
_s
readlink
Additionally, some minor bugs have been fixed:
printf_s
"%s
main
\n
EXIT_SUCCESS
EXIT_FAILURE
Finally, some bare-bone documentation has been added for the Debian distribution, which should be similar to other distributions too.
It would be cool to include CI/CD building and/or Docker, but unfortunately I do not have time for that.
Thanks for the great project! I see that you are porting it to C++, I do understand if this MR does not get merged in!
I was able to build and run Immolate successfully on my WSL Ubuntu installation, will merge now...
This PR introduces very basic Linux support. Fixes #26.
These changes have been made to the source code to make this happen:
Immolate
executable path in its own function, which is platform dependentMAX_PATH
constant which is not defined in a Linux environment_s
variants of functions to non_s
variants ones since GCC / Clang do not ship those by defaultreadlink
functionAdditionally, some minor bugs have been fixed:
printf_s
which would use string buffers as formats instead of using"%s
main
function always return an integer\n
here and thereEXIT_SUCCESS
andEXIT_FAILURE
instead of 0 and 1Finally, some bare-bone documentation has been added for the Debian distribution, which should be similar to other distributions too.
It would be cool to include CI/CD building and/or Docker, but unfortunately I do not have time for that.
Thanks for the great project! I see that you are porting it to C++, I do understand if this MR does not get merged in!