From efe09af4eef72f46dcaf50ced776ef7667a04087 Mon Sep 17 00:00:00 2001 From: scuri Date: Mon, 30 Nov 2009 19:27:33 +0000 Subject: *** empty log message *** --- test/cdtest/cdtest.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'test/cdtest/cdtest.c') diff --git a/test/cdtest/cdtest.c b/test/cdtest/cdtest.c index 9180bf4..82cc812 100644 --- a/test/cdtest/cdtest.c +++ b/test/cdtest/cdtest.c @@ -2079,11 +2079,10 @@ int fInteger(Ihandle *self, int c) ignore(self); if (isdigit(c) || c == '-') return IUP_DEFAULT; - else if ((c==K_TAB) || (c==K_CR) || (c==K_LEFT) || - (c==K_RIGHT) || (c==K_DEL) || (c==K_BS) || (c==K_sTAB)) - return IUP_DEFAULT; - else + else if (c) return IUP_IGNORE; + else + return IUP_DEFAULT; } /*-------------------------------------------------------------------------*/ @@ -2094,13 +2093,12 @@ int fReal(Ihandle *self, int c) ignore(self); if (isdigit(c)) return IUP_DEFAULT; - else if ((c==K_TAB) || (c==K_CR) || (c==K_LEFT) || - (c==K_RIGHT) || (c==K_DEL) || (c==K_BS) || (c==K_sTAB)) - return IUP_DEFAULT; else if ((c=='.') || (c=='e') || (c=='E') || (c=='+') || (c=='-')) return IUP_DEFAULT; - else + else if (c) return IUP_IGNORE; + else + return IUP_DEFAULT; } /*-------------------------------------------------------------------------*/ -- cgit v1.2.3