VirtualBox

Ignore:
Timestamp:
Jul 8, 2020 11:42:18 PM (4 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: Made DECLHIDDEN imply nothrow and restrict its use to function (just like the newly added DECL_HIDDEN_NOTHROW). Added DECL_HIDDEN_ONLY and DECL_HIDDEN_THROW to accompany it. bugref:9794

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPR3HardenedNoCrt.cpp

    r85119 r85127  
    4141
    4242/** memcmp */
    43 DECL_HIDDEN_NOTHROW(int) suplibHardenedMemComp(void const *pvDst, const void *pvSrc, size_t cbToComp)
     43DECLHIDDEN(int) suplibHardenedMemComp(void const *pvDst, const void *pvSrc, size_t cbToComp)
    4444{
    4545    size_t const   *puDst = (size_t const *)pvDst;
     
    7575
    7676/** memcpy */
    77 DECL_HIDDEN_NOTHROW(void *) suplibHardenedMemCopy(void *pvDst, const void *pvSrc, size_t cbToCopy)
     77DECLHIDDEN(void *) suplibHardenedMemCopy(void *pvDst, const void *pvSrc, size_t cbToCopy)
    7878{
    7979    size_t         *puDst = (size_t *)pvDst;
     
    9898
    9999/** memset */
    100 DECL_HIDDEN_NOTHROW(void *) suplibHardenedMemSet(void *pvDst, int ch, size_t cbToSet)
     100DECLHIDDEN(void *) suplibHardenedMemSet(void *pvDst, int ch, size_t cbToSet)
    101101{
    102102    uint8_t *pbDst = (uint8_t *)pvDst;
     
    112112
    113113/** strcpy */
    114 DECL_HIDDEN_NOTHROW(char *) suplibHardenedStrCopy(char *pszDst, const char *pszSrc)
     114DECLHIDDEN(char *) suplibHardenedStrCopy(char *pszDst, const char *pszSrc)
    115115{
    116116    char *pszRet = pszDst;
     
    126126
    127127/** strlen */
    128 DECL_HIDDEN_NOTHROW(size_t) suplibHardenedStrLen(const char *psz)
     128DECLHIDDEN(size_t) suplibHardenedStrLen(const char *psz)
    129129{
    130130    const char *pszStart = psz;
     
    136136
    137137/** strcat */
    138 DECL_HIDDEN_NOTHROW(char *) suplibHardenedStrCat(char *pszDst, const char *pszSrc)
     138DECLHIDDEN(char *) suplibHardenedStrCat(char *pszDst, const char *pszSrc)
    139139{
    140140    char *pszRet = pszDst;
     
    147147
    148148/** strcmp */
    149 DECL_HIDDEN_NOTHROW(int) suplibHardenedStrCmp(const char *psz1, const char *psz2)
     149DECLHIDDEN(int) suplibHardenedStrCmp(const char *psz1, const char *psz2)
    150150{
    151151    for (;;)
     
    162162
    163163/** strncmp */
    164 DECL_HIDDEN_NOTHROW(int) suplibHardenedStrNCmp(const char *psz1, const char *psz2, size_t cchMax)
     164DECLHIDDEN(int) suplibHardenedStrNCmp(const char *psz1, const char *psz2, size_t cchMax)
    165165{
    166166    while (cchMax-- > 0)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette