Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for libcfg+/src/shared.c between version 1.28 and 1.29

version 1.28, 2003/02/17 17:12:07 version 1.29, 2003/02/24 21:13:40
Line 16 
Line 16 
  * http://www.platon.sk/projects/libcfg+/   * http://www.platon.sk/projects/libcfg+/
  */   */
   
 /* $Platon: libcfg+/src/shared.c,v 1.27 2003/01/07 16:02:29 nepto Exp $ */  /* $Platon: libcfg+/src/shared.c,v 1.28 2003/02/17 17:12:07 nepto Exp $ */
   
 /* Includes {{{ */  /* Includes {{{ */
 #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
Line 615  store_multi_arg(type, multi_arg, ar)
Line 615  store_multi_arg(type, multi_arg, ar)
                         break;                          break;
   
                 case CFG_INT:                  case CFG_INT:
                         ptr_len = sizeof(int *);                          ptr_len  = sizeof(int *);
                         item_len = sizeof(int);                          item_len = sizeof(int);
                         break;                          break;
   
                 case CFG_UINT:                  case CFG_UINT:
                         ptr_len = sizeof(unsigned int *);                          ptr_len  = sizeof(unsigned int *);
                         item_len = sizeof(unsigned int);                          item_len = sizeof(unsigned int);
                         break;                          break;
   
                 case CFG_LONG:                  case CFG_LONG:
                         ptr_len = sizeof(long *);                          ptr_len  = sizeof(long *);
                         item_len = sizeof(long);                          item_len = sizeof(long);
                         break;                          break;
   
                 case CFG_ULONG:                  case CFG_ULONG:
                         ptr_len = sizeof(unsigned long *);                          ptr_len  = sizeof(unsigned long *);
                         item_len = sizeof(unsigned long);                          item_len = sizeof(unsigned long);
                         break;                          break;
   
                 case CFG_FLOAT:                  case CFG_FLOAT:
                         ptr_len = sizeof(float *);                          ptr_len  = sizeof(float *);
                         item_len = sizeof(float);                          item_len = sizeof(float);
                         break;                          break;
   
                 case CFG_DOUBLE:                  case CFG_DOUBLE:
                         ptr_len = sizeof(double *);                          ptr_len  = sizeof(double *);
                         item_len = sizeof(double);                          item_len = sizeof(double);
                         break;                          break;
         }          }
Line 686  store_single_arg(type, arg, where)
Line 686  store_single_arg(type, arg, where)
         const char *arg;          const char *arg;
         const void *where;          const void *where;
 { /* {{{ */  { /* {{{ */
         register long long_val = 0;          register long          long_val   = 0;
         register unsigned long ulong_val = 0;          register unsigned long ulong_val  = 0;
         register double double_val = 0.0;          register double        double_val = 0.0;
         char *end;          char *end;
   
         if (where == NULL)          if (where == NULL)
Line 728  store_single_arg(type, arg, where)
Line 728  store_single_arg(type, arg, where)
         }          }
   
         /* Validating coversion results. */          /* Validating coversion results. */
         if (!(end && *end == '\0'))          if (end == NULL || *end != '\0')
                 return CFG_ERROR_BADNUMBER;                  return CFG_ERROR_BADNUMBER;
   
         /* Range checking and value storing. */          /* Range checking and value storing. */

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top