[babl] babl, babl-cache: enable cache write, fix cache path processing



commit bd688b725ee8674b879415258b26ef0339f54fbc
Author: Edward E <develinthedetail gmail com>
Date:   Wed Nov 23 16:33:29 2016 -0600

    babl, babl-cache: enable cache write, fix cache path processing
    
    1. babl.c/babl_exit(): Remove fixme to enable babl cache writing on windows.
    2. babl-cache.c/mk_ancestry(): pass the modified path to mk_ancestry_iter().

 babl/babl-cache.c |    2 +-
 babl/babl.c       |    3 ---
 2 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/babl/babl-cache.c b/babl/babl-cache.c
index 005fda2..b215128 100644
--- a/babl/babl-cache.c
+++ b/babl/babl-cache.c
@@ -64,7 +64,7 @@ mk_ancestry (const char *path)
     if (*c == '\\')
       *c = '/';
 #endif
-  return mk_ancestry_iter (path);
+  return mk_ancestry_iter (copy);
 }
 
 static const char *fish_cache_path (void)
diff --git a/babl/babl.c b/babl/babl.c
index 2b53d68..935a860 100644
--- a/babl/babl.c
+++ b/babl/babl.c
@@ -160,10 +160,7 @@ babl_exit (void)
 {
   if (!-- ref_count)
     {
-#ifdef _WIN32  // XXX: fixme - make this work on windows
-#else
       babl_store_db ();
-#endif
 
       babl_extension_deinit ();
       babl_free (babl_extension_db ());;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]