projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[kdbus] Add SipHash algorithm
[platform/upstream/glib.git]
/
glib
/
gslice.c
diff --git
a/glib/gslice.c
b/glib/gslice.c
index
d3a5adc
..
0563d80
100644
(file)
--- a/
glib/gslice.c
+++ b/
glib/gslice.c
@@
-96,17
+96,17
@@
* gchar *mem[10000];
* gint i;
*
* gchar *mem[10000];
* gint i;
*
- * /
* Allocate 10000 blocks. */
+ * /
/ Allocate 10000 blocks.
* for (i = 0; i < 10000; i++)
* {
* mem[i] = g_slice_alloc (50);
*
* for (i = 0; i < 10000; i++)
* {
* mem[i] = g_slice_alloc (50);
*
- * /
* Fill in the memory with some junk. */
+ * /
/ Fill in the memory with some junk.
* for (j = 0; j < 50; j++)
* mem[i][j] = i * j;
* }
*
* for (j = 0; j < 50; j++)
* mem[i][j] = i * j;
* }
*
- * /
* Now free all of the blocks. */
+ * /
/ Now free all of the blocks.
* for (i = 0; i < 10000; i++)
* g_slice_free1 (50, mem[i]);
* ]|
* for (i = 0; i < 10000; i++)
* g_slice_free1 (50, mem[i]);
* ]|
@@
-116,10
+116,10
@@
* |[<!-- language="C" -->
* GRealArray *array;
*
* |[<!-- language="C" -->
* GRealArray *array;
*
- * /
* Allocate one block, using the g_slice_new() macro. */
+ * /
/ Allocate one block, using the g_slice_new() macro.
* array = g_slice_new (GRealArray);
* array = g_slice_new (GRealArray);
- * /
* We can now use array just like a normal pointer to a structure. */
+ * /
/ We can now use array just like a normal pointer to a structure.
* array->data = NULL;
* array->len = 0;
* array->alloc = 0;
* array->data = NULL;
* array->len = 0;
* array->alloc = 0;
@@
-127,7
+127,7
@@
* array->clear = (clear ? 1 : 0);
* array->elt_size = elt_size;
*
* array->clear = (clear ? 1 : 0);
* array->elt_size = elt_size;
*
- * /
* We can free the block, so it can be reused. */
+ * /
/ We can free the block, so it can be reused.
* g_slice_free (GRealArray, array);
* ]|
*/
* g_slice_free (GRealArray, array);
* ]|
*/