forked from len0rd/rockbox
lib/argparse fix red
Change-Id: I7bbac6de6319bf86189f079b7330d650ea95de3c
This commit is contained in:
parent
c04a944c98
commit
a8253c57dd
2 changed files with 7 additions and 6 deletions
|
@ -23,11 +23,12 @@
|
|||
|
||||
#include "plugin.h"
|
||||
|
||||
#define ARGP_MAX_FRAC_DIGITS 9 /* Uses 30 bits max (0.999999999) */
|
||||
#define ARGPARSE_MAX_FRAC_DIGITS 9 /* Uses 30 bits max (0.999999999) */
|
||||
|
||||
#define ARGP_EXP(a, b) (a ##E## b)
|
||||
#define ARGP_FRAC_DEC_MULTIPLIER(n) AP_EXP(1,n) /*1x10^n*/
|
||||
#define ARGPARSE_FRAC_DEC_MULTIPLIER (long) ARGP_FRAC_DEC_MULTIPLIER(ARGP_MAX_FRAC_DIGITS)
|
||||
#define ARGPARSE_FRAC_DEC_MULTIPLIER \
|
||||
(long)ARGP_FRAC_DEC_MULTIPLIER(ARGPARSE_MAX_FRAC_DIGITS)
|
||||
|
||||
/* fills buf with a string upto buf_sz, null terminates the buffer
|
||||
* strings break on WS by default but can be enclosed in single or double quotes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue