summary refs log tree commit diff
path: root/locale
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-06-22 09:00:11 +0000
committerRoland McGrath <roland@gnu.org>1995-06-22 09:00:11 +0000
commit487253ea1f81b8223334200ada86a3d3b7de6d9c (patch)
tree0befcdc81388e86f1e550635437ffa0385cf34dc /locale
parentb1099b2fba10e78325715f65e23af286705bf86e (diff)
downloadglibc-487253ea1f81b8223334200ada86a3d3b7de6d9c.tar.gz
glibc-487253ea1f81b8223334200ada86a3d3b7de6d9c.tar.xz
glibc-487253ea1f81b8223334200ada86a3d3b7de6d9c.zip
Tue Jun 20 02:18:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
	* Makerules (lib%.so: lib%_pic.a): Pass -soname switch giving the
 	library's name including $(libprefix) and major version number.

	* locale/locale-ctype.c (allocate_arrays): Use xmalloc and bzero
 	in place of xcalloc.

	* Makeconfig (prefix, exec_prefix, libprefix): Instead of
 	`ifndef', use the $(origin) function to only set these if they are
 	undefined, and not if they are defined to empty.

	* gnu-versions.h: New file.
	* features.h (__GNU_LIBRARY__): Increase value to 5.
Diffstat (limited to 'locale')
-rw-r--r--locale/locale-ctype.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/locale/locale-ctype.c b/locale/locale-ctype.c
index 1ce09bab2b..e7a1e97960 100644
--- a/locale/locale-ctype.c
+++ b/locale/locale-ctype.c
@@ -534,16 +534,20 @@ allocate_arrays (void)
       char *ptr;
       int size = charmap_data.hash_size * charmap_data.hash_layers;
 
-      ctype_b = (u16 *) xcalloc (size - (-128), sizeof (u16));
+      ctype_b = xmalloc ((size - (-128)) * sizeof (u16));
+      bzero (ctype_b, (size - (-128)) * sizeof (u16));
       ctype_b += 128;
 
 
-      names_b = (i32 *) xcalloc (size, sizeof (i32));
+      names_b = xmalloc (size * sizeof (i32));
+      bzero (names_b, size * sizeof (i32));
 
-      toupper_b = (i32 *) xcalloc ((size - (-128)), sizeof  (i32));
+      toupper_b = xmalloc ((size - (-128)) * sizeof (i32));
+      bzero (toupper_b, (size - (-128)) * sizeof (i32));
       toupper_b += 128;
 
-      tolower_b = (i32 *) xcalloc ((size - (-128)), sizeof (i32));
+      tolower_b = xmalloc ((size - (-128)) * sizeof (i32));
+      bzero (tolower_b, (size - (-128)) * sizeof (i32));
       tolower_b += 128;
 
       ptr = NULL;