diff options
Diffstat (limited to 'apps/plugins/lib/arg_helper.h')
-rw-r--r-- | apps/plugins/lib/arg_helper.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/lib/arg_helper.h b/apps/plugins/lib/arg_helper.h index 248e8e4eaf..c7b14f7f7a 100644 --- a/apps/plugins/lib/arg_helper.h +++ b/apps/plugins/lib/arg_helper.h | |||
@@ -23,11 +23,12 @@ | |||
23 | 23 | ||
24 | #include "plugin.h" | 24 | #include "plugin.h" |
25 | 25 | ||
26 | #define ARGP_MAX_FRAC_DIGITS 9 /* Uses 30 bits max (0.999999999) */ | 26 | #define ARGPARSE_MAX_FRAC_DIGITS 9 /* Uses 30 bits max (0.999999999) */ |
27 | 27 | ||
28 | #define ARGP_EXP(a, b) (a ##E## b) | 28 | #define ARGP_EXP(a, b) (a ##E## b) |
29 | #define ARGP_FRAC_DEC_MULTIPLIER(n) AP_EXP(1,n) /*1x10^n*/ | 29 | #define ARGP_FRAC_DEC_MULTIPLIER(n) AP_EXP(1,n) /*1x10^n*/ |
30 | #define ARGPARSE_FRAC_DEC_MULTIPLIER (long) ARGP_FRAC_DEC_MULTIPLIER(ARGP_MAX_FRAC_DIGITS) | 30 | #define ARGPARSE_FRAC_DEC_MULTIPLIER \ |
31 | (long)ARGP_FRAC_DEC_MULTIPLIER(ARGPARSE_MAX_FRAC_DIGITS) | ||
31 | 32 | ||
32 | /* fills buf with a string upto buf_sz, null terminates the buffer | 33 | /* fills buf with a string upto buf_sz, null terminates the buffer |
33 | * strings break on WS by default but can be enclosed in single or double quotes | 34 | * strings break on WS by default but can be enclosed in single or double quotes |