projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a couple of bugs reported by Ben Kujala
[pspp-builds.git]
/
src
/
case.h
diff --git
a/src/case.h
b/src/case.h
index 7312aa9458942e9b6780e47b78476c56887ad46b..c7d7e9fbbc108fdade4f3a6af1f88554ddbfdb24 100644
(file)
--- a/
src/case.h
+++ b/
src/case.h
@@
-56,6
+56,9
@@
CASE_INLINE void case_clone (struct ccase *, const struct ccase *);
CASE_INLINE void case_move (struct ccase *, struct ccase *);
CASE_INLINE void case_destroy (struct ccase *);
CASE_INLINE void case_move (struct ccase *, struct ccase *);
CASE_INLINE void case_destroy (struct ccase *);
+void case_resize (struct ccase *, size_t old_cnt, size_t new_cnt);
+void case_swap (struct ccase *, struct ccase *);
+
int case_try_create (struct ccase *, size_t value_cnt);
int case_try_clone (struct ccase *, const struct ccase *);
int case_try_create (struct ccase *, size_t value_cnt);
int case_try_clone (struct ccase *, const struct ccase *);
@@
-131,10
+134,10
@@
case_copy (struct ccase *dst, size_t dst_idx,
static inline void
case_to_values (const struct ccase *c, union value *output,
static inline void
case_to_values (const struct ccase *c, union value *output,
- size_t output_size
UNUSED
)
+ size_t output_size )
{
memcpy (output, c->case_data->values,
{
memcpy (output, c->case_data->values,
-
c->case_data->value_cnt
* sizeof *output);
+
output_size
* sizeof *output);
}
static inline void
}
static inline void