pspp-builds.git
20 years agoFixed intl/ and some tests, so that the project can be built and tested
John Darrington [Sat, 13 Dec 2003 11:18:31 +0000 (11:18 +0000)]
Fixed intl/ and some tests, so that the project can be built and tested
from outside of the source tree (or at least it will when some bugs are
squashed)

20 years agoFixed up the tests, so that make check now works
John Darrington [Sat, 13 Dec 2003 08:48:54 +0000 (08:48 +0000)]
Fixed up the tests, so  that make check now works

20 years ago * syntax: Run a diff when there's no expected output, too.
Ben Pfaff [Sat, 13 Dec 2003 08:13:10 +0000 (08:13 +0000)]
* syntax: Run a diff when there's no expected output, too.

20 years agoFri Dec 12 23:54:37 2003 Ben Pfaff <blp@gnu.org>
Ben Pfaff [Sat, 13 Dec 2003 08:11:55 +0000 (08:11 +0000)]
Fri Dec 12 23:54:37 2003  Ben Pfaff  <blp@gnu.org>

* autorecode.c: (recode) Replace stupid use of memcpy() by
memberwise copy.
(hash_alpha_value) Use hsh_hash_bytes().  Get rid of nasty casts.
(hash_numeric_value) Ditto.
(autorecode_proc_func) pool_strdup() was wrong here because the
source string was not null-terminated.  Use new pool_strndup()
instead.

* crosstabs.q: (enum_var_values) Remove superfluous and bizarre
use of hsh_iterator_init().

* data-in.c: (parse_N) Initialize i->v->f.

* flip.c: (cmd_flip) Use memmove(), not memcpy(), to copy
overlapping arrays.

* groff-font.c: Use power-of-2 hash table sizes, not prime.
(groff_read_font) Don't call hsh_next_prime().  Don't call
fclose(NULL).
(static var hash) Remove `size_p', `max_used' members.
(font_char_name_to_index) Don't call hsh_next_prime().  Use
hsh_hash_string() instead of hashpjw(), & instead of %.
(default_font) Don't call hsh_next_prime().

* pool.c: (pool_strndup) New function.
(pool_strdup) Reimplement in terms of pool_strndup.

* postscript.c: (hash_font_entry) Use hsh_hash_string().  Get rid
of nasty casts.
(hash_ps_encoding) Use hsh_hash_string().
(hash_ps_combo) Use hsh_hash_string(), hsh_hash_int().
(hash_filename2font) Use hsh_hash_string().

* som.c: Add #include <stdlib.h>.

* tab.c: (tab_destroy) Don't set t->container after freeing `t'
(by destroying its pool).

Fri Dec 12 23:18:59 2003  Ben Pfaff  <blp@gnu.org>

Miscellaneous hash table code cleanup:

* hash.h: (struct hsh_table) Moved into hash.c.
(hsh_count) Ditto, and transformed into function.
(hsh_compare_func) New typedef, used for defining otherwise-long
function types here and in hash.c
(hsh_hash_func) Ditto.
(hsh_free_func) Ditto.

* hash.c: (struct hsh_table) Renamed `n' to `used', `m' to `size',
`table' to `entries'.  Removed `mp'.  All references updated.
(hsh_clear) Don't shrink entries array; if the hash was this big
once, it probably will be again.
(hsh_rehash) Made static.
(force_hsh_insert) Renamed hsh_force_insert.
(force_hsh_find) Renamed hsh_force_find.

Made hash table sizes powers of 2, because that's fine with any
reasonable hash function and because taking a power-of-2 modulus
is faster than any other:

(hsh_prime_tab) Removed;
(hsh_next_prime) Ditto.
(next_power_of_2) New function.
(hsh_create) Use next_power_of_2.
(hsh_rehash) Use & instead of %.

Cleaned up hsh_sort:

(internal_comparison_fn) Removed.
(sort_nulls_last) New function.
(hsh_sort) Removed second parameter, switched to using the new
quicksort() function from quicksort.h to avoid using nasty need
for static variables with qsort().  All references updated.

Changed the hash functions offered, because there are better hash
functions than the ones we had, and cleaned up the names to boot:

* hash.c: (hashpjw_d) Removed.
(hashpjw) Ditto.
(hsh_hash_bytes) New function.
(hsh_hash_string) New function.
(hsh_hash_int) New function.

Improved the hash table iteration interface:

* hash.h: (hsh_iterator_init) Removed.
(struct hsh_iterator) Removed `init' member, change `next' to
size_t.

* hash.c: (hsh_foreach) Removed.  All references updated to use
hsh_first/hsh_next instead.
(hsh_first) New function.  Notably, unlike hsh_foreach() it does
not treat a null pointer as an empty hash table.
(hsh_next) New function.

Made deletion possible, though slow:

* hash.c: (locate_matching_entry) New function.
(hsh_find) Use locate_matching_entry().
(hsh_delete) New function also using locate_matching_entry().
(hsh_force_delete) New function.

Fri Dec 12 23:16:10 2003  Ben Pfaff  <blp@gnu.org>

* quicksort.c: New file implementing a sort routine with a
interface better than qsort() because it passes a user-provided
parameter to the sort routine.

* Makefile.am: Add quicksort.c, quicksort.h.

20 years ago * qsort.c: Removed because it was unused.
Ben Pfaff [Sat, 13 Dec 2003 07:17:25 +0000 (07:17 +0000)]
* qsort.c: Removed because it was unused.

* Makefile.am: Revised accordingly, and simplified because
Automake 1.7 is smarter than 1.4 was.

20 years agoAdd lots of files that should be ignored.
Ben Pfaff [Sat, 13 Dec 2003 06:56:11 +0000 (06:56 +0000)]
Add lots of files that should be ignored.

20 years ago * All source files: Get rid of nasty special cases for
Ben Pfaff [Fri, 12 Dec 2003 21:39:53 +0000 (21:39 +0000)]
* All source files: Get rid of nasty special cases for
Checker, which is pretty obsolete now.

20 years agoFixed my immediately preceeding error
John Darrington [Fri, 12 Dec 2003 08:38:56 +0000 (08:38 +0000)]
Fixed my immediately preceeding error

20 years agoPut back a bug fix which accidently got reverted.
John Darrington [Fri, 12 Dec 2003 08:32:08 +0000 (08:32 +0000)]
Put back a bug fix which accidently got reverted.

20 years agoRemoved reconfigure from the EXTRA_dist target, cos it doesn't exist any
John Darrington [Fri, 12 Dec 2003 08:25:45 +0000 (08:25 +0000)]
Removed reconfigure from the EXTRA_dist target, cos it doesn't exist any
more

20 years agoFixed buglet where the default config path was getting set wrong
John Darrington [Fri, 12 Dec 2003 08:24:42 +0000 (08:24 +0000)]
Fixed buglet where the default config path was getting set wrong

20 years ago#include "common.h" should be #include "alloc.h" (again).
Ben Pfaff [Fri, 12 Dec 2003 04:07:41 +0000 (04:07 +0000)]
#include "common.h" should be #include "alloc.h" (again).

20 years agoFixed some problems building under cygwin
John Darrington [Fri, 12 Dec 2003 03:36:19 +0000 (03:36 +0000)]
Fixed some problems building under cygwin

20 years agoNot needed anymore.
Ben Pfaff [Fri, 12 Dec 2003 03:18:53 +0000 (03:18 +0000)]
Not needed anymore.

20 years agoFixed a bug apparent when using the FREQUENCIES command with the html driver
John Darrington [Thu, 11 Dec 2003 13:40:08 +0000 (13:40 +0000)]
Fixed a bug apparent when using the FREQUENCIES command with the html driver

20 years agoAdded a READMe.developer file
John Darrington [Thu, 11 Dec 2003 11:37:52 +0000 (11:37 +0000)]
Added a READMe.developer file

20 years agoRemoved auto generated files from the repository
John Darrington [Thu, 11 Dec 2003 11:32:27 +0000 (11:32 +0000)]
Removed auto generated files from the repository

20 years agoGNU_PACKAGE no longer exists; use "GNU @PACKAGE@" instead.
Ben Pfaff [Thu, 11 Dec 2003 08:31:25 +0000 (08:31 +0000)]
GNU_PACKAGE no longer exists; use "GNU @PACKAGE@" instead.

20 years agoUpdate build system to Autoconf 2.58, Automake 1.7, gettext 0.12.1.
Ben Pfaff [Thu, 11 Dec 2003 08:26:16 +0000 (08:26 +0000)]
Update build system to Autoconf 2.58, Automake 1.7, gettext 0.12.1.

20 years agoUpdate build system to Autoconf 2.58, Automake 1.7, gettext 0.12.1.
Ben Pfaff [Thu, 11 Dec 2003 08:17:58 +0000 (08:17 +0000)]
Update build system to Autoconf 2.58, Automake 1.7, gettext 0.12.1.

20 years agoWed Dec 10 23:36:16 2003 Ben Pfaff <blp@gnu.org>
Ben Pfaff [Thu, 11 Dec 2003 07:40:52 +0000 (07:40 +0000)]
Wed Dec 10 23:36:16 2003  Ben Pfaff  <blp@gnu.org>

* lib/gmp/: Removed, because it no longer compiles with recent GCC
versions.

20 years agoWed Dec 10 23:32:47 2003 Ben Pfaff <blp@gnu.org>
Ben Pfaff [Thu, 11 Dec 2003 07:37:23 +0000 (07:37 +0000)]
Wed Dec 10 23:32:47 2003  Ben Pfaff  <blp@gnu.org>

* sysdeps/: Removed, because everything was too old to be useful
anymore.

20 years agoFixed bug where pspp would crash if no startup files could be found.
John Darrington [Thu, 11 Dec 2003 07:16:50 +0000 (07:16 +0000)]
Fixed bug where pspp would crash if no startup files could be found.

20 years ago*** empty log message ***
John Darrington [Thu, 11 Dec 2003 07:16:07 +0000 (07:16 +0000)]
*** empty log message ***

20 years agoadded a changelog entr ywhich I\'d forgotten'
John Darrington [Thu, 11 Dec 2003 07:11:03 +0000 (07:11 +0000)]
added a changelog entr ywhich I\'d forgotten'

20 years agoFixed memory problem in frequencies.q
John Darrington [Thu, 11 Dec 2003 06:58:56 +0000 (06:58 +0000)]
Fixed memory problem in frequencies.q

20 years ago * glob.c: Add #include <stdio.h> the readline.h #include, which
Ben Pfaff [Thu, 11 Dec 2003 06:17:20 +0000 (06:17 +0000)]
* glob.c: Add #include <stdio.h> the readline.h #include, which
fixes problems for some readline versions that refer to FILE but
don't #include <stdio.h> themselves.

20 years ago * getdelim.c, alloca.c: common.h is no longer, but alloc.h
Ben Pfaff [Thu, 11 Dec 2003 06:06:01 +0000 (06:06 +0000)]
* getdelim.c, alloca.c: common.h is no longer, but alloc.h
declares the allocation functions.

20 years agocheckin of 0.3.0
John Darrington [Wed, 10 Dec 2003 23:56:04 +0000 (23:56 +0000)]
checkin of 0.3.0

20 years agocheckin of 0.3.0
John Darrington [Wed, 10 Dec 2003 23:27:28 +0000 (23:27 +0000)]
checkin of 0.3.0