malloca: port to compilers that reject size-zero arrays
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 May 2013 19:58:53 +0000 (12:58 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 May 2013 19:59:23 +0000 (12:59 -0700)
commit571f20db52d2165d6cce4b2aacdedb123330d90f
tree75f757cec3669720db51ad902e8f4a6830950229
parent12335899d0089131d854aa1b074f0c4d841dff42
malloca: port to compilers that reject size-zero arrays

This fixes a bug introduced in my previous patch.
* lib/malloca.c (struct preliminary_header): Use an int
rather than a character array of size int; that's simpler.
(struct header): Remove, replacing with ...
(union header): New type.  This avoids the need for declaring a
character array of size zero, which is not allowed on some platforms.
All uses changed.
ChangeLog
lib/malloca.c