projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug opening the find dialog.
[pspp-builds.git]
/
src
/
data
/
short-names.c
diff --git
a/src/data/short-names.c
b/src/data/short-names.c
index 08bf7587876b4ac56d2b54bd8cc801c00bdd04f2..1b8be927a69c70f918f47ba1505d59787ae6fa03 100644
(file)
--- a/
src/data/short-names.c
+++ b/
src/data/short-names.c
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* PSPP - a program for statistical analysis.
- Copyright (C) 2007 Free Software Foundation, Inc.
+ Copyright (C) 2007
, 2009
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
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
@@
-39,9
+39,9
@@
compare_strings (const void *a, const void *b, const void *aux UNUSED)
/* Hashes a string. */
static unsigned
/* Hashes a string. */
static unsigned
-hash_string (const void *s, const void *aux UNUSED)
+
do_
hash_string (const void *s, const void *aux UNUSED)
{
{
- return h
sh_hash_string (s
);
+ return h
ash_string (s, 0
);
}
/* Sets V's short name to BASE, followed by a suffix of the form
}
/* Sets V's short name to BASE, followed by a suffix of the form
@@
-128,7
+128,7
@@
short_names_assign (struct dictionary *d)
the hash table point to strings owned by dictionary
variables, not by us, so we don't need to provide a free
function. */
the hash table point to strings owned by dictionary
variables, not by us, so we don't need to provide a free
function. */
- short_names = hsh_create (var_cnt, compare_strings, hash_string,
+ short_names = hsh_create (var_cnt, compare_strings,
do_
hash_string,
NULL, NULL);
/* Clear short names that conflict with a variable name. */
NULL, NULL);
/* Clear short names that conflict with a variable name. */