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

gEDA-cvs: gaf.git: branch: master updated (1.7.0-20110116-108-g014b30b)



The branch, master has been updated
       via  014b30b5f2475f89830fadd1eb4d8f9c2056e647 (commit)
      from  bd939b78afa64e27bd9366133ecf636b145c2fe7 (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
=========

 libgeda/src/g_smob.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


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

commit 014b30b5f2475f89830fadd1eb4d8f9c2056e647
Author: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>
Commit: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>

    libgeda: smob free functions now return 0
    
    In past guile required to return the size of deallocated memory.  Since
    commit 1735a9e0378290382ec9d0db83c76d039b0c5c7c memory for the smobs is
    allocated from heap and not from guile memory pool. In such case
    (and to be compliant with recent guile versions) the free functions must
    return 0.

:100644 100644 d3323e0... fadb2d1... M	libgeda/src/g_smob.c

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

commit 014b30b5f2475f89830fadd1eb4d8f9c2056e647
Author: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>
Commit: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>

    libgeda: smob free functions now return 0
    
    In past guile required to return the size of deallocated memory.  Since
    commit 1735a9e0378290382ec9d0db83c76d039b0c5c7c memory for the smobs is
    allocated from heap and not from guile memory pool. In such case
    (and to be compliant with recent guile versions) the free functions must
    return 0.

diff --git a/libgeda/src/g_smob.c b/libgeda/src/g_smob.c
index d3323e0..fadb2d1 100644
--- a/libgeda/src/g_smob.c
+++ b/libgeda/src/g_smob.c
@@ -49,7 +49,7 @@ static scm_sizet g_free_attrib_smob(SCM attrib_smob)
   scm_sizet size = sizeof(struct st_attrib_smob);
 
   free(attribute); /* this should stay as free (allocated from guile) */
-  return size;
+  return 0;
 }
 
 /*! \brief Prints attribute smob to port.
@@ -464,7 +464,7 @@ static scm_sizet g_free_object_smob(SCM object_smob)
   scm_sizet size = sizeof(struct st_object_smob);
 
   free(object); /* this should stay as free (allocated from guile) */
-  return size;
+  return 0;
 }
 
 /*! \brief Prints object smob to port.
@@ -729,7 +729,7 @@ static scm_sizet g_free_page_smob(SCM page_smob)
   scm_sizet size = sizeof(struct st_page_smob);
 
   free(page); /* this should stay as free (allocated from guile) */
-  return size;
+  return 0;
 }
 
 /*! \brief Prints page smob to port.



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