Diff for libcfg+/src/shared.c between version 1.30 and 1.31
| version 1.30, 2003/02/25 12:58:41 |
version 1.31, 2003/02/26 21:44:04 |
|
|
| * http://www.platon.sk/projects/libcfg+/ |
* http://www.platon.sk/projects/libcfg+/ |
| */ |
*/ |
| |
|
| /* $Platon: libcfg+/src/shared.c,v 1.29 2003/02/24 21:13:40 nepto Exp $ */ |
/* $Platon: libcfg+/src/shared.c,v 1.30 2003/02/25 12:58:41 nepto Exp $ */ |
| |
|
| /* Includes {{{ */ |
/* Includes {{{ */ |
| #ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
| Line 712 store_single_arg(type, arg, where) |
|
| Line 712 store_single_arg(type, arg, where) |
|
| long_val = strtol(arg, &end, 0); |
long_val = strtol(arg, &end, 0); |
| } |
} |
| if (! (end == NULL || *end != '\0')) |
if (! (end == NULL || *end != '\0')) |
| /* Decimal number conversion suceed */ |
/* Decimal number conversion succeed */ |
| break; |
break; |
| |
|
| /* If conversion for integer number failed, we are going to try |
/* If conversion for integer number failed, we are going to try |
| Line 739 store_single_arg(type, arg, where) |
|
| Line 739 store_single_arg(type, arg, where) |
|
| |
|
| if (! f_integer) |
if (! f_integer) |
| break; |
break; |
| |
|
| if (double_val - floor(double_val) != 0.0) |
if (double_val - floor(double_val) != 0.0) |
| return CFG_ERROR_BADNUMBER; |
return CFG_ERROR_BADNUMBER; |
| |
|
Platon Group <platon@platon.org> http://platon.org/
|
|