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

gEDA-cvs: gaf.git: branch: master updated (1.5.2-20090328-97-g74227a0)



The branch, master has been updated
       via  74227a00faff800831eb04c31a04760216ebc12b (commit)
       via  a8d4c630292368994eddcc4d2320db0298d6062a (commit)
      from  ad38ef86300b9eae33e241333863201b7b28b688 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 gnetlist/src/g_netlist.c  |    7 +++++--
 libgeda/src/o_pin_basic.c |    4 ++--
 2 files changed, 7 insertions(+), 4 deletions(-)


=================
 Commit Messages
=================

commit 74227a00faff800831eb04c31a04760216ebc12b
Author: Peter TB Brett <peter@xxxxxxxxxxxxx>
Commit: Peter TB Brett <peter@xxxxxxxxxxxxx>

    libgeda: Fix some compiler warnings.
    
    Fixes some "may be used uninitialized" warnings.

:100644 100644 858b820... 0de72e4... M	libgeda/src/o_pin_basic.c

commit a8d4c630292368994eddcc4d2320db0298d6062a
Author: Peter TB Brett <peter@xxxxxxxxxxxxx>
Commit: Peter TB Brett <peter@xxxxxxxxxxxxx>

    gnetlist: Remove some uses of SCM_STRING_CHARS.
    
    This is required to get gnetlist's `make check' to work on recent
    releases of Guile 1.8.

:100644 100644 9c87e81... 2169ac5... M	gnetlist/src/g_netlist.c

=========
 Changes
=========

commit 74227a00faff800831eb04c31a04760216ebc12b
Author: Peter TB Brett <peter@xxxxxxxxxxxxx>
Commit: Peter TB Brett <peter@xxxxxxxxxxxxx>

    libgeda: Fix some compiler warnings.
    
    Fixes some "may be used uninitialized" warnings.

diff --git a/libgeda/src/o_pin_basic.c b/libgeda/src/o_pin_basic.c
index 858b820..0de72e4 100644
--- a/libgeda/src/o_pin_basic.c
+++ b/libgeda/src/o_pin_basic.c
@@ -421,8 +421,8 @@ void o_pin_update_whichend(TOPLEVEL *toplevel,
 {
   OBJECT *o_current;
   GList *iter;
-  int top, left;
-  int right, bottom;
+  int top = 0, left = 0;
+  int right = 0, bottom = 0;
   int d1, d2, d3, d4;
   int min0, min1;
   int min0_whichend, min1_whichend;

commit a8d4c630292368994eddcc4d2320db0298d6062a
Author: Peter TB Brett <peter@xxxxxxxxxxxxx>
Commit: Peter TB Brett <peter@xxxxxxxxxxxxx>

    gnetlist: Remove some uses of SCM_STRING_CHARS.
    
    This is required to get gnetlist's `make check' to work on recent
    releases of Guile 1.8.

diff --git a/gnetlist/src/g_netlist.c b/gnetlist/src/g_netlist.c
index 9c87e81..2169ac5 100644
--- a/gnetlist/src/g_netlist.c
+++ b/gnetlist/src/g_netlist.c
@@ -486,8 +486,8 @@ SCM g_get_package_attribute(SCM scm_uref, SCM scm_wanted_attrib)
     SCM_ASSERT(scm_is_string (scm_wanted_attrib),
 	       scm_wanted_attrib, SCM_ARG2, "gnetlist:get-package-attribute");
 
-    uref          = SCM_STRING_CHARS (scm_uref);
-    wanted_attrib = SCM_STRING_CHARS (scm_wanted_attrib);
+    uref          = scm_to_locale_string (scm_uref);
+    wanted_attrib = scm_to_locale_string (scm_wanted_attrib);
 
     /* here is where you make it multi page aware */
     nl_current = netlist_head;
@@ -514,6 +514,9 @@ SCM g_get_package_attribute(SCM scm_uref, SCM scm_wanted_attrib)
       scm_return_value = scm_makfrom0str ("unknown");
     }
 
+    free (uref);
+    free (wanted_attrib);
+
     return (scm_return_value);
 }
 




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs