cofyc/argparse

FP optional?

polluks opened this issue · 4 comments

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

cofyc commented

use compiler macro to make it optional?

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

cofyc commented

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

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