support long input in numerical, alpha and ip editing functions;

correct IPv4&IPv6 verify functions
This commit is contained in:
marschap
2005-06-27 09:11:10 +00:00
parent b9640e4390
commit 46183285b3
4 changed files with 107 additions and 56 deletions
+3
View File
@@ -157,6 +157,7 @@ typedef struct MenuItem {
int value; /**< Current value */
char *edit_str; /**< Value while being edited */
short edit_pos; /**< Position while editing */
short edit_offs; /**< Offset while editing */
short error_code;
} numeric;
struct alpha {
@@ -170,6 +171,7 @@ typedef struct MenuItem {
char *value; /**< Current value */
char *edit_str; /**< Value while being edited */
short edit_pos; /**< Position while editing */
short edit_offs; /**< Offset while editing */
short error_code;
} alpha;
struct ip {
@@ -178,6 +180,7 @@ typedef struct MenuItem {
short maxlength;
bool v6; /**< true if editing ipv6 addr */
short edit_pos; /**< Position while editing */
short edit_offs; /**< Offset while editing */
short error_code;
} ip;
} data;