X-Git-Url: http://git.droids-corp.org/?p=libcmdline.git;a=blobdiff_plain;f=src%2Flib%2Fcmdline_parse_num.h;h=1b8c79dbf245ae20b56b7d97bc3ecb07e53f36e0;hp=45db43ac964eaa5333ce1ecef9e765e64645c688;hb=b1d5b169352e57df3fc14c51ffad4b83f3e5613f;hpb=289e62983cdc8579a78be38f6b30545fe5a9f0bf diff --git a/src/lib/cmdline_parse_num.h b/src/lib/cmdline_parse_num.h index 45db43a..1b8c79d 100644 --- a/src/lib/cmdline_parse_num.h +++ b/src/lib/cmdline_parse_num.h @@ -68,11 +68,13 @@ enum cmdline_numtype { UINT8 = 0, UINT16, UINT32, + UINT64, INT8, INT16, INT32, + INT64 #ifndef NO_PARSE_FLOAT - FLOAT, + ,FLOAT #endif }; @@ -89,7 +91,7 @@ typedef struct cmdline_token_num cmdline_parse_token_num_t; extern struct cmdline_token_ops cmdline_token_num_ops; int cmdline_parse_num(cmdline_parse_token_hdr_t *tk, - const char *srcbuf, void *res); + const char *srcbuf, void *res, unsigned ressize); int cmdline_get_help_num(cmdline_parse_token_hdr_t *tk, char *dstbuf, unsigned int size);