oops. fixie fixie. NOw its all workign and happy :)
authorCarsten Haitzler <raster@rasterman.com>
Tue, 19 Oct 2004 07:41:37 +0000 (07:41 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Tue, 19 Oct 2004 07:41:37 +0000 (07:41 +0000)
SVN revision: 11904

legacy/ecore/src/lib/ecore_config/ecore_config_db.c
legacy/ecore/src/lib/ecore_config/ecore_config_storage.c

index 771f5bb..3fb56b0 100644 (file)
@@ -141,6 +141,7 @@ _ecore_config_db_key_int_get(Ecore_Config_DB_File *db, char *key, int *dest)
        *dest = atoi(data + l + 1);
        if (prev_locale) setlocale(LC_NUMERIC, prev_locale);
        free(data);
+       return 1;
      }
    return 0;
 }
@@ -179,6 +180,7 @@ _ecore_config_db_key_float_get(Ecore_Config_DB_File *db, char *key, double *dest
        *dest = atof(data + l + 1);
        if (prev_locale) setlocale(LC_NUMERIC, prev_locale);
        free(data);
+       return 1;
      }
    return 0;
 }
@@ -282,10 +284,8 @@ _ecore_config_db_key_float_set(Ecore_Config_DB_File *db, char *key, double val)
    prev_locale = setlocale(LC_NUMERIC, "C");
    num = snprintf(buf, sizeof(buf), "%s %16.16f ", "float", val);
    if (prev_locale) setlocale(LC_NUMERIC, prev_locale);
-   printf("WRITE \"%s\"\n", buf);
    buf[5] = 0;
    buf[num - 1] = 0;
-   printf("--P2 \"%s\"\n", buf + 6);
    eet_write(db->ef, key, buf, num, 1);
 }
 
index 3042257..7278ad7 100644 (file)
@@ -75,13 +75,11 @@ ecore_config_file_load(char *file)
      }
    key_count = 0;   
    keys = _ecore_config_db_keys_get(db, &key_count);
-   printf("keys = %p, %i\n", keys, key_count);
    if (keys)
      {
        for (x = 0; x < key_count; x++)
          {
             type = _ecore_config_db_key_type_get(db, keys[x]);
-            printf("\"%s\" == \"%s\"\n", keys[x], type);
             if (!type) type = "?";
             if (!strcmp(type, "int"))
               {