summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/arg_helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lib/arg_helper.h')
-rw-r--r--apps/plugins/lib/arg_helper.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/lib/arg_helper.h b/apps/plugins/lib/arg_helper.h
index 7c770e0162..248e8e4eaf 100644
--- a/apps/plugins/lib/arg_helper.h
+++ b/apps/plugins/lib/arg_helper.h
@@ -23,6 +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) */
27
28#define ARGP_EXP(a, b) (a ##E## b)
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)
31
26/* fills buf with a string upto buf_sz, null terminates the buffer 32/* fills buf with a string upto buf_sz, null terminates the buffer
27 * strings break on WS by default but can be enclosed in single or double quotes 33 * strings break on WS by default but can be enclosed in single or double quotes
28 * opening and closing quotes will not be included in the buffer but will be counted 34 * opening and closing quotes will not be included in the buffer but will be counted