diff options
author | scuri <scuri> | 2009-11-30 19:27:33 +0000 |
---|---|---|
committer | scuri <scuri> | 2009-11-30 19:27:33 +0000 |
commit | efe09af4eef72f46dcaf50ced776ef7667a04087 (patch) | |
tree | 2355a4754590e0362a1ba8cf1e069662873c5375 /test/cdtest/cdtest.c | |
parent | 4c4866d151bbf664273b74e1cee817633881d38f (diff) |
*** empty log message ***
Diffstat (limited to 'test/cdtest/cdtest.c')
-rw-r--r-- | test/cdtest/cdtest.c | 14 |
1 files changed, 6 insertions, 8 deletions
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; } /*-------------------------------------------------------------------------*/ |