dictionary: Get rid of case indexes.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 5 Mar 2023 06:26:03 +0000 (22:26 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 5 Mar 2023 19:24:28 +0000 (11:24 -0800)
commit9cf53942f5772eb7b928955f6e7e0ba950381bfc
treea0c3f4a1e40f4f124771768d10631efea8479617
parent66f75a6ba7c0e51f41ddba7b1c82c6e6b5279ed1
dictionary: Get rid of case indexes.

Dictionary index (the index into the variables in the dictionary)
and case index (the index into struct ccase for a variable from
the dictionary) have always been independent, but they are
*usually* the same.  It is much cleaner to have an invariant
that they are *always* the same.  This commit makes that the case.
31 files changed:
src/data/case-map.c
src/data/case.c
src/data/caseinit.c
src/data/csv-file-writer.c
src/data/dataset.c
src/data/dataset.h
src/data/dictionary.c
src/data/dictionary.h
src/data/por-file-writer.c
src/data/subcase.c
src/data/sys-file-private.c
src/data/transformations.c
src/data/transformations.h
src/data/vardict.h
src/data/variable.c
src/data/variable.h
src/language/commands/autorecode.c
src/language/commands/data-list.c
src/language/commands/examine.c
src/language/commands/get-data.c
src/language/commands/jonckheere-terpstra.c
src/language/commands/rank.c
src/language/commands/roc.c
src/language/commands/sort-variables.c
src/math/order-stats.c
src/ui/gui/find-dialog.c
src/ui/gui/marshaller-list
src/ui/gui/psppire-data-sheet.c
src/ui/gui/psppire-data-store.c
src/ui/gui/psppire-data-store.h
src/ui/gui/psppire-dict.c