Author: dmacvicar
Date: Fri Aug 22 18:10:19 2008
New Revision: 10889
URL: http://svn.opensuse.org/viewcvs/zypp?rev=10889&view=rev
Log:
- comment function
Modified:
trunk/sat-solver/src/util.h
Modified: trunk/sat-solver/src/util.h
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/src/util.h?rev=10889&r1=10888&r2=10889&view=diff
==============================================================================
--- trunk/sat-solver/src/util.h (original)
+++ trunk/sat-solver/src/util.h Fri Aug 22 18:10:19 2008
@@ -16,6 +16,10 @@
#include
#include
+/**
+ * malloc
+ * exits with error message on error
+ */
extern void *sat_malloc(size_t);
extern void *sat_malloc2(size_t, size_t);
extern void *sat_calloc(size_t, size_t);
@@ -39,6 +43,14 @@
return buf;
}
+/**
+ * extend an array by reallocation and zero's the new section
+ * buf old pointer
+ * len current size
+ * nmbemb number of elements to add
+ * size size of each element
+ * block block size used to allocate the elements
+ */
static inline void *sat_zextend(void *buf, size_t len, size_t nmemb, size_t size, size_t block)
{
buf = sat_extend(buf, len, nmemb, size, block);
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org