Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FP optional? #36

Open
polluks opened this issue Feb 23, 2021 · 4 comments
Open

FP optional? #36

polluks opened this issue Feb 23, 2021 · 4 comments

Comments

@polluks
Copy link
Contributor

polluks commented Feb 23, 2021

So far argparse always requires floating point support because of strtof().
What about some kind of optional implementation?

@cofyc
Copy link
Owner

cofyc commented Feb 25, 2021

use compiler macro to make it optional?

@polluks
Copy link
Contributor Author

polluks commented Feb 25, 2021

Yeah, so I get a non-FP version on request.

@cofyc
Copy link
Owner

cofyc commented Feb 25, 2021

Out of curiosity, in which environment there is no FP support?

@polluks
Copy link
Contributor Author

polluks commented Feb 25, 2021

There is FP support but there's some overhead...
http://aminet.net/package/dev/c/argparse
You see the difference

-rwx------ 1 nobody      nogroup 25952 Feb 26 01:26 test_argparse
-rwx------ 1 nobody      nogroup 15260 Feb 26 01:24 test_argparse_nofp

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

No branches or pull requests

2 participants