]> git.ozlabs.org Git - ccan/commit - tools/configurator/configurator.c
configurator: Inline err.h functions
authorKevin Locke <kevin@kevinlocke.name>
Thu, 29 Sep 2016 00:44:43 +0000 (18:44 -0600)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 30 Sep 2016 03:51:27 +0000 (13:51 +1000)
commit888660c3c11f15331e8a06a0e492d48650b2680f
tree4e74b3245806f0ff3b610288a09e0846f2767482
parent93992ee36410c42dd29bfb013c184ef9e9f360b3
configurator: Inline err.h functions

On systems where err.h is not provided (e.g. MSVC) configurator must
provide its own definition.  The err module can not be used by
configurator due to its dependency on config.h, so the relevant source
is copied into configurator with the minimum changes necessary.

Changes since v2:
- Use the CCAN err module sources instead of musl libc sources to avoid
  introducing another implementation of these functions.
- Prefix err.h functions with "c12r_" to avoid name conflicts and
  "static declaration follows non-static" errors.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
tools/configurator/configurator.c