These strippings is no more necessary as GLib functions for building
filenames (in particular g_build_filename()) takes care of any
trailing directory separator for us.
---
 gnetlist/src/gnetlist.c   |    3 ---
 gschem/src/gschem.c       |    3 ---
 gsymcheck/src/gsymcheck.c |    3 ---
 libgeda/src/g_rc.c        |   12 ------------
 utils/gschlas/gschlas.c   |    3 ---
 5 files changed, 0 insertions(+), 24 deletions(-)

diff --git a/gnetlist/src/gnetlist.c b/gnetlist/src/gnetlist.c
index 3e98772..957d0f6 100644
--- a/gnetlist/src/gnetlist.c
+++ b/gnetlist/src/gnetlist.c
@@ -122,9 +122,6 @@ void main_prog(void *closure, int argc, char *argv[])
 
     argv_index = parse_commandline(argc, argv);
     cwd = g_get_current_dir();
-#ifdef __MINGW32__
-    u_basic_strip_trailing(cwd, G_DIR_SEPARATOR);
-#endif
 
     /* this is a kludge to make sure that spice mode gets set */
     /*  Hacked by SDB to allow spice netlisters of arbitrary name
diff --git a/gschem/src/gschem.c b/gschem/src/gschem.c
index feb447d..7958d23 100644
--- a/gschem/src/gschem.c
+++ b/gschem/src/gschem.c
@@ -168,9 +168,6 @@ void main_prog(void *closure, int argc, char *argv[])
 
   argv_index = parse_commandline(argc, argv);
   cwd = g_get_current_dir();
-#ifdef __MINGW32__
-    u_basic_strip_trailing(cwd, G_DIR_SEPARATOR);
-#endif
   
   libgeda_init();
   
diff --git a/gsymcheck/src/gsymcheck.c b/gsymcheck/src/gsymcheck.c
index 3742b0a..6861115 100644
--- a/gsymcheck/src/gsymcheck.c
+++ b/gsymcheck/src/gsymcheck.c
@@ -58,9 +58,6 @@ main_prog(void *closure, int argc, char *argv[])
   
   argv_index = parse_commandline(argc, argv);
   cwd = g_get_current_dir();
-#ifdef __MINGW32__
-  u_basic_strip_trailing(cwd, G_DIR_SEPARATOR);
-#endif
 
   libgeda_init();
 
diff --git a/libgeda/src/g_rc.c b/libgeda/src/g_rc.c
index 97e2f12..7124d20 100644
--- a/libgeda/src/g_rc.c
+++ b/libgeda/src/g_rc.c
@@ -425,9 +425,6 @@ SCM g_rc_component_library(SCM path, SCM name)
   } else {
     gchar *cwd = g_get_current_dir ();
     gchar *temp;
-#ifdef __MINGW32__
-    u_basic_strip_trailing(cwd, G_DIR_SEPARATOR);
-#endif
     temp = g_build_filename (cwd, string, NULL);
     s_clib_add_directory (temp, namestr);
     g_free(temp);
@@ -571,9 +568,6 @@ SCM g_rc_component_library_search(SCM path)
         } else {
           gchar *cwd = g_get_current_dir ();
           gchar *temp;
-#ifdef __MINGW32__
-          u_basic_strip_trailing(cwd, G_DIR_SEPARATOR);
-#endif
           temp = g_build_filename (cwd, fullpath, NULL);
           s_clib_add_directory (temp, NULL);
           g_free(temp);
@@ -620,9 +614,6 @@ SCM g_rc_source_library(SCM path)
   } else {
     gchar *cwd = g_get_current_dir ();
     gchar *temp;
-#ifdef __MINGW32__
-    u_basic_strip_trailing(cwd, G_DIR_SEPARATOR);
-#endif
     temp = g_build_filename (cwd, string, NULL);
     s_slib_add_entry (temp);
     g_free(temp);
@@ -686,9 +677,6 @@ SCM g_rc_source_library_search(SCM path)
           } else {
             gchar *cwd = g_get_current_dir ();
             gchar *temp;
-#ifdef __MINGW32__
-            u_basic_strip_trailing(cwd, G_DIR_SEPARATOR);
-#endif
             temp = g_build_filename (cwd, fullpath, NULL);
             s_slib_add_entry (temp);
             g_free(temp);
diff --git a/utils/gschlas/gschlas.c b/utils/gschlas/gschlas.c
index 701783c..53d7ae0 100644
--- a/utils/gschlas/gschlas.c
+++ b/utils/gschlas/gschlas.c
@@ -60,9 +60,6 @@ main_prog(void *closure, int argc, char *argv[])
 
   argv_index = parse_commandline(argc, argv);
   cwd = g_get_current_dir();
-#ifdef __MINGW32__
-  u_basic_strip_trailing(cwd, G_DIR_SEPARATOR);
-#endif
 
   libgeda_init();
 
-- 
1.5.6




_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to