projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a64ef16
)
src/dictionary.c: Move dict_ref next to dict_unref
author
John Darrington
<john@darrington.wattle.id.au>
Sat, 27 Jun 2020 05:27:25 +0000
(07:27 +0200)
committer
John Darrington
<john@darrington.wattle.id.au>
Sat, 27 Jun 2020 05:27:25 +0000
(07:27 +0200)
This make it easier for me to hack when I'm tracking
down memory (de)allocation errors.
src/data/dictionary.c
patch
|
blob
|
history
diff --git
a/src/data/dictionary.c
b/src/data/dictionary.c
index 40352b0f2ba9e97708fb21c8aec422c75dddb4b7..a04fcaed447c393e5df6960e8295eef9121dbff6 100644
(file)
--- a/
src/data/dictionary.c
+++ b/
src/data/dictionary.c
@@
-186,13
+186,6
@@
dict_create (const char *encoding)
return d;
}
-struct dictionary *
-dict_ref (struct dictionary *s)
-{
- s->ref_cnt++;
- return s;
-}
-
/* Creates and returns a (deep) copy of an existing
dictionary.
@@
-314,6
+307,13
@@
_dict_destroy (struct dictionary *d)
free (d);
}
+struct dictionary *
+dict_ref (struct dictionary *d)
+{
+ d->ref_cnt++;
+ return d;
+}
+
void
dict_unref (struct dictionary *d)
{