]> granicus.if.org Git - gc/commit
Code refactoring regarding 'data start' definition for FreeBSD
authorIvan Maidanski <ivmai@mail.ru>
Sun, 12 Jul 2015 07:26:06 +0000 (10:26 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 12 Jul 2015 07:26:06 +0000 (10:26 +0300)
commitf13a9559ac3f48f2503822262223fd484e96fa5e
tree8e2077085cc74a4a69b80c602fad506f97f6efa3
parent1179fde261d2974f36ec5e2880a44028bd4a32ec
Code refactoring regarding 'data start' definition for FreeBSD

* include/private/gcconfig.h (DATASTART_USES_BSDGETDATASTART): New
macro defined for FreeBSD when DATASTART is defined to
GC_FreeBSDGetDataStart().
* include/private/gcconfig.h (GC_FreeBSDGetDataStart,
DATASTART_IS_FUNC): Move declare/definition from the place where
DATASTART defined for FreeBSD to common place guarded with the check
of DATASTART_USES_BSDGETDATASTART.
* include/private/gcconfig.h (GC_FreeBSDGetDataStart): Decorate with
GC_INNER.
* os_dep.c (GC_FreeBSDGetDataStart): Likewise.
* os_dep.c (GC_FreeBSDGetDataStart): Define only if
DATASTART_USES_BSDGETDATASTART (instead of checking FREEBSD and
CPU-specific macros).
include/private/gcconfig.h
os_dep.c