]> Savannah Git Hosting - gnulib.git/commit
obstack: tidy part 1
authorAlan Modra <amodra@gmail.com>
Wed, 29 Oct 2014 03:32:13 +0000 (14:02 +1030)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 29 Oct 2014 07:23:38 +0000 (00:23 -0700)
commitec1a9f7b6f2eab974ec8b2086c9f9c137b921a7d
treed39bec245cc088262c675e2253252046cd5b953a
parent8415b6792e53f9aa309caedda799f9d9f3dffc53
obstack: tidy part 1

a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
   to me, and result in overlong lines after later patches.
b) Move error handling code, to avoid a forward declaration and to
   simplify later patches in this series.

* lib/obstack.h (struct obstack <temp>): Rename fields of union
and update all uses.
* lib/obstack.c: Include stdlib.h earlier.
(obstack_exit_failure, obstack_alloc_failed_handler): Move later
in file.
(print_and_abort): Remove now redundant forward declaration.
lib/obstack.c
lib/obstack.h