Skip to content

FP optional? #36

Open
Open

Description

@polluks

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

Activity

  1. cofyc commented on Feb 25, 2021

    @cofyc
    Owner

    use compiler macro to make it optional?

  2. polluks commented on Feb 25, 2021

    @polluks
    Author

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

  3. cofyc commented on Feb 25, 2021

    @cofyc
    Owner

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

  4. polluks commented on Feb 25, 2021

    @polluks
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions