Make obstack_strdup inline
authorTom Tromey <tom@tromey.com>
Sat, 13 Jul 2019 18:03:07 +0000 (12:03 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 7 Aug 2019 02:08:48 +0000 (20:08 -0600)
commitf25102f7b100337923d2c81ecc12a64d428e98fe
tree42b40c62e5761a94b63167ea044f18652d2974ac
parent021887d88a040cf39f3afbd7da10bbe3ff1ad6c3
Make obstack_strdup inline

This changes obstack_strdup to be an inline function.  This seems
better to me, considering how small it is; but also it follows what
the code did before the previous patch.

gdb/ChangeLog
2019-08-06  Tom Tromey  <tom@tromey.com>

* gdb_obstack.h (obstack_strdup): Define.
* gdb_obstack.c (obstack_strdup): Don't define.
gdb/ChangeLog
gdb/gdb_obstack.c
gdb/gdb_obstack.h