From 8ed0a59a384e00681b3217cc2354594fe58fdf64 Mon Sep 17 00:00:00 2001 From: mazze Date: Sat, 20 Jul 2013 12:41:47 +0000 Subject: [PATCH] Autodoc formatting fixes. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@47742 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/all-hosted/hostlib/dropinterface.c | 2 +- arch/all-hosted/hostlib/freeerrorstr.c | 2 +- arch/all-hosted/hostlib/getinterface.c | 2 +- arch/all-hosted/hostlib/{unlock.c => getpointer.c} | 31 +++++++++++++--------- arch/all-hosted/hostlib/lock.c | 2 +- arch/all-hosted/hostlib/unlock.c | 2 +- arch/all-pc/acpi/findsdt.c | 2 +- arch/all-pc/acpi/readreg.c | 2 +- arch/all-pc/acpi/scanentries.c | 2 +- arch/all-pc/acpi/scansdt.c | 4 +-- arch/all-pc/acpi/writereg.c | 2 +- arch/all-pc/hpet/allochpetunit.c | 2 +- arch/all-pc/hpet/freehpetunit.c | 2 +- arch/all-pc/hpet/gethpetcount.c | 2 +- arch/all-pc/hpet/getunitattrsa.c | 2 +- 15 files changed, 34 insertions(+), 27 deletions(-) copy arch/all-hosted/hostlib/{unlock.c => getpointer.c} (52%) diff --git a/arch/all-hosted/hostlib/dropinterface.c b/arch/all-hosted/hostlib/dropinterface.c index 65a4301fdc..90632f0068 100644 --- a/arch/all-hosted/hostlib/dropinterface.c +++ b/arch/all-hosted/hostlib/dropinterface.c @@ -5,7 +5,7 @@ NAME */ #include -AROS_LH1I(void, HostLib_DropInterface, + AROS_LH1I(void, HostLib_DropInterface, /* SYNOPSIS */ AROS_LHA(APTR *, interface, A0), diff --git a/arch/all-hosted/hostlib/freeerrorstr.c b/arch/all-hosted/hostlib/freeerrorstr.c index 88ccc96f15..5d970255de 100644 --- a/arch/all-hosted/hostlib/freeerrorstr.c +++ b/arch/all-hosted/hostlib/freeerrorstr.c @@ -5,7 +5,7 @@ NAME */ #include -AROS_LH1(void, HostLib_FreeErrorStr, + AROS_LH1(void, HostLib_FreeErrorStr, /* SYNOPSIS */ AROS_LHA(char *, error, A0), diff --git a/arch/all-hosted/hostlib/getinterface.c b/arch/all-hosted/hostlib/getinterface.c index 22d9406972..36c18a05ae 100644 --- a/arch/all-hosted/hostlib/getinterface.c +++ b/arch/all-hosted/hostlib/getinterface.c @@ -8,7 +8,7 @@ NAME */ #include -AROS_LH3(APTR *, HostLib_GetInterface, + AROS_LH3(APTR *, HostLib_GetInterface, /* SYNOPSIS */ AROS_LHA(void *, handle, A0), diff --git a/arch/all-hosted/hostlib/unlock.c b/arch/all-hosted/hostlib/getpointer.c similarity index 52% copy from arch/all-hosted/hostlib/unlock.c copy to arch/all-hosted/hostlib/getpointer.c index cbe8ea2993..372dbe4cbf 100644 --- a/arch/all-hosted/hostlib/unlock.c +++ b/arch/all-hosted/hostlib/getpointer.c @@ -1,28 +1,30 @@ -#include #include +#include + +#include +#include "hostinterface.h" #include "hostlib_intern.h" /***************************************************************************** NAME */ -#include -AROS_LH0(void, HostLib_Unlock, + AROS_LH3(void *, HostLib_GetPointer, /* SYNOPSIS */ + AROS_LHA(void *, handle, A0), + AROS_LHA(const char *, symbol, A1), + AROS_LHA(char **, error, A2), /* LOCATION */ - struct HostLibBase *, HostLibBase, 8, HostLib) - + struct HostLibBase *, HostLibBase, 3, HostLib) + /* FUNCTION - Release global host OS call semaphore. INPUTS - None. RESULT - None. NOTES @@ -31,18 +33,23 @@ AROS_LH0(void, HostLib_Unlock, BUGS SEE ALSO - HostLib_Lock() INTERNALS - The actual implementation of this function depends on - the host OS. Do not assume anything particular about it. - For example under Windows it's Permit(), not a semaphore. *****************************************************************************/ { AROS_LIBFUNC_INIT + void *ret; + + HOSTLIB_LOCK(); + + ret = HostLibBase->HostIFace->hostlib_GetPointer(handle, symbol, error); + AROS_HOST_BARRIER + HOSTLIB_UNLOCK(); + return ret; + AROS_LIBFUNC_EXIT } diff --git a/arch/all-hosted/hostlib/lock.c b/arch/all-hosted/hostlib/lock.c index 63b054340a..531cf72d3c 100644 --- a/arch/all-hosted/hostlib/lock.c +++ b/arch/all-hosted/hostlib/lock.c @@ -8,7 +8,7 @@ NAME */ #include -AROS_LH0(void, HostLib_Lock, + AROS_LH0(void, HostLib_Lock, /* SYNOPSIS */ diff --git a/arch/all-hosted/hostlib/unlock.c b/arch/all-hosted/hostlib/unlock.c index cbe8ea2993..c279cf2f63 100644 --- a/arch/all-hosted/hostlib/unlock.c +++ b/arch/all-hosted/hostlib/unlock.c @@ -8,7 +8,7 @@ NAME */ #include -AROS_LH0(void, HostLib_Unlock, + AROS_LH0(void, HostLib_Unlock, /* SYNOPSIS */ diff --git a/arch/all-pc/acpi/findsdt.c b/arch/all-pc/acpi/findsdt.c index 317dfb69f9..f08f980baf 100644 --- a/arch/all-pc/acpi/findsdt.c +++ b/arch/all-pc/acpi/findsdt.c @@ -6,7 +6,7 @@ NAME */ #include -AROS_LH1(APTR, ACPI_FindSDT, + AROS_LH1(APTR, ACPI_FindSDT, /* SYNOPSIS */ AROS_LHA(ULONG, id, D0), diff --git a/arch/all-pc/acpi/readreg.c b/arch/all-pc/acpi/readreg.c index 3878414d6e..680eb9166c 100644 --- a/arch/all-pc/acpi/readreg.c +++ b/arch/all-pc/acpi/readreg.c @@ -8,7 +8,7 @@ NAME */ #include -AROS_LH1I(IPTR, ACPI_ReadReg, + AROS_LH1I(IPTR, ACPI_ReadReg, /* SYNOPSIS */ AROS_LHA(struct GENERIC_ACPI_ADDR *, reg, A0), diff --git a/arch/all-pc/acpi/scanentries.c b/arch/all-pc/acpi/scanentries.c index 24792b951c..51971b8f44 100644 --- a/arch/all-pc/acpi/scanentries.c +++ b/arch/all-pc/acpi/scanentries.c @@ -18,7 +18,7 @@ static const struct HeaderData headers[] = NAME */ #include -AROS_LH4(ULONG, ACPI_ScanEntries, + AROS_LH4(ULONG, ACPI_ScanEntries, /* SYNOPSIS */ AROS_LHA(struct ACPI_TABLE_DEF_HEADER *, table, A0), diff --git a/arch/all-pc/acpi/scansdt.c b/arch/all-pc/acpi/scansdt.c index ee41e77df6..89a0f23c9c 100644 --- a/arch/all-pc/acpi/scansdt.c +++ b/arch/all-pc/acpi/scansdt.c @@ -6,7 +6,7 @@ NAME */ #include -AROS_LH3(ULONG, ACPI_ScanSDT, + AROS_LH3(ULONG, ACPI_ScanSDT, /* SYNOPSIS */ AROS_LHA(ULONG, id, D0), @@ -41,7 +41,7 @@ AROS_LH3(ULONG, ACPI_ScanSDT, BUGS SEE ALSO - ACPI_FindSDT + ACPI_FindSDT() INTERNALS diff --git a/arch/all-pc/acpi/writereg.c b/arch/all-pc/acpi/writereg.c index 1cdb45fb8f..6c9950a3da 100644 --- a/arch/all-pc/acpi/writereg.c +++ b/arch/all-pc/acpi/writereg.c @@ -8,7 +8,7 @@ NAME */ #include -AROS_LH2I(void, ACPI_WriteReg, + AROS_LH2I(void, ACPI_WriteReg, /* SYNOPSIS */ AROS_LHA(struct GENERIC_ACPI_ADDR *, reg, A0), diff --git a/arch/all-pc/hpet/allochpetunit.c b/arch/all-pc/hpet/allochpetunit.c index 38be79221a..0ae470b590 100644 --- a/arch/all-pc/hpet/allochpetunit.c +++ b/arch/all-pc/hpet/allochpetunit.c @@ -7,7 +7,7 @@ NAME */ #include -AROS_LH1(ULONG, AllocHPETUnit, + AROS_LH1(ULONG, AllocHPETUnit, /* SYNOPSIS */ AROS_LHA(const char *, user, A0), diff --git a/arch/all-pc/hpet/freehpetunit.c b/arch/all-pc/hpet/freehpetunit.c index 65968c2510..d5f8adee52 100644 --- a/arch/all-pc/hpet/freehpetunit.c +++ b/arch/all-pc/hpet/freehpetunit.c @@ -5,7 +5,7 @@ NAME */ #include -AROS_LH1(void, FreeHPETUnit, + AROS_LH1(void, FreeHPETUnit, /* SYNOPSIS */ AROS_LHA(ULONG, unit, D0), diff --git a/arch/all-pc/hpet/gethpetcount.c b/arch/all-pc/hpet/gethpetcount.c index b8ab62f665..fe0eea9405 100644 --- a/arch/all-pc/hpet/gethpetcount.c +++ b/arch/all-pc/hpet/gethpetcount.c @@ -5,7 +5,7 @@ NAME */ #include -AROS_LH0(ULONG, GetHPETCount, + AROS_LH0(ULONG, GetHPETCount, /* SYNOPSIS */ diff --git a/arch/all-pc/hpet/getunitattrsa.c b/arch/all-pc/hpet/getunitattrsa.c index b2fd4bb1d2..671a187e5b 100644 --- a/arch/all-pc/hpet/getunitattrsa.c +++ b/arch/all-pc/hpet/getunitattrsa.c @@ -8,7 +8,7 @@ NAME */ #include -AROS_LH2(BOOL, GetUnitAttrsA, + AROS_LH2(BOOL, GetUnitAttrsA, /* SYNOPSIS */ AROS_LHA(ULONG, unit, D0), -- 2.11.4.GIT