[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug37999 01/11] casegrouper: Add comments.
From: |
Ben Pfaff |
Subject: |
[bug37999 01/11] casegrouper: Add comments. |
Date: |
Thu, 31 Jan 2013 22:03:23 -0800 |
---
src/data/casegrouper.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/src/data/casegrouper.c b/src/data/casegrouper.c
index 52238c8..48560bb 100644
--- a/src/data/casegrouper.c
+++ b/src/data/casegrouper.c
@@ -1,5 +1,5 @@
/* PSPP - a program for statistical analysis.
- Copyright (C) 2007, 2009, 2011 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009, 2011, 2013 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -47,6 +47,8 @@ struct casegrouper
the casegrouper is destroyed and should free any storage
needed by SAME_GROUP.
+ Takes ownerhip of READER.
+
SAME_GROUP may be a null pointer. If so, READER's entire
contents is considered to be a single group. */
struct casegrouper *
@@ -167,7 +169,9 @@ static void casegrouper_vars_destroy (void *);
/* Creates and returns a casegrouper that reads data from READER
and breaks it into contiguous groups of cases that have equal
values for the VAR_CNT variables in VARS. If VAR_CNT is 0,
- then all the cases will be put in a single group. */
+ then all the cases will be put in a single group.
+
+ Takes ownerhip of READER. */
struct casegrouper *
casegrouper_create_vars (struct casereader *reader,
const struct variable *const *vars,
@@ -188,7 +192,9 @@ casegrouper_create_vars (struct casereader *reader,
and breaks it into contiguous groups of cases that have equal
values for the SPLIT FILE variables in DICT. If DICT has no
SPLIT FILE variables, then all the cases will be put into a
- single group. */
+ single group.
+
+ Takes ownerhip of READER. */
struct casegrouper *
casegrouper_create_splits (struct casereader *reader,
const struct dictionary *dict)
@@ -202,7 +208,9 @@ casegrouper_create_splits (struct casereader *reader,
and breaks it into contiguous groups of cases that have equal
values for the variables used for sorting in SC. If SC is
empty (contains no fields), then all the cases will be put
- into a single group. */
+ into a single group.
+
+ Takes ownerhip of READER. */
struct casegrouper *
casegrouper_create_subcase (struct casereader *reader,
const struct subcase *sc)
--
1.7.10.4
- [bug37999 00/11] Make RANK work with TEMPORARY., Ben Pfaff, 2013/02/01
- [bug37999 01/11] casegrouper: Add comments.,
Ben Pfaff <=
- [bug37999 04/11] RANK: Lowercase the name of "enum RANK_FUNC"., Ben Pfaff, 2013/02/01
- [bug37999 05/11] RANK: Remove write-only struct member 'ascending'., Ben Pfaff, 2013/02/01
- [bug37999 03/11] transformations: Relax the rules for transformation finalizing., Ben Pfaff, 2013/02/01
- [bug37999 06/11] RANK: Put #include directives into typical order., Ben Pfaff, 2013/02/01
- [bug37999 02/11] subcase: New function subcase_add_vars_always()., Ben Pfaff, 2013/02/01
- [bug37999 07/11] RANK: Simplify fraction_name() function., Ben Pfaff, 2013/02/01
- [bug37999 08/11] RANK: Simplify rank_sorted_file() with new function sum_weights()., Ben Pfaff, 2013/02/01