Changeset 57432 in vbox for trunk/include/iprt
- Timestamp:
- Aug 18, 2015 2:57:46 PM (9 years ago)
- Location:
- trunk/include/iprt
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cdefs.h
r57430 r57432 877 877 #endif 878 878 879 /** @def RT_NO_THROW 879 /** @def RT_NO_THROW_PROTO 880 880 * How to express that a function doesn't throw C++ exceptions 881 881 * and the compiler can thus save itself the bother of trying … … 883 883 * and the semicolon in function prototypes (and implementation if C++). 884 884 * 885 * @remarks May not work on C++ methods, mainly intented for C-style APIs. 886 * 885 887 * @remarks The use of the nothrow attribute with GCC is because old compilers 886 888 * (4.1.1, 32-bit) leaking the nothrow into global space or something 887 * when used with RTDECL or similar. 889 * when used with RTDECL or similar. Using this forces use to have two 890 * macros, as the nothrow attribute is not for the function definition. 888 891 */ 889 892 #ifdef RT_EXCEPTIONS_ENABLED 890 893 # ifdef __GNUC__ 891 # define RT_NO_THROW __attribute__((nothrow))894 # define RT_NO_THROW_PROTO __attribute__((__nothrow__)) 892 895 # else 893 # define RT_NO_THROW throw() 894 # endif 895 #else 896 # define RT_NO_THROW 896 # define RT_NO_THROW_PROTO throw() 897 # endif 898 #else 899 # define RT_NO_THROW_PROO 900 #endif 901 902 /** @def RT_NO_THROW_DEF 903 * The counter part to RT_NO_THROW_PROTO that is added to the function 904 * definition. 905 */ 906 #if defined(RT_EXCEPTIONS_ENABLED) && !defined(__GNUC__) 907 # define RT_NO_THROW_DEF RT_NO_THROW_PROTO 908 #else 909 # define RT_NO_THROW_DEF 897 910 #endif 898 911 -
trunk/include/iprt/mem.h
r56291 r57432 103 103 * @param pszTag Allocation tag used for statistics and such. 104 104 */ 105 RTDECL(void *) RTMemTmpAllocTag(size_t cb, const char *pszTag) RT_NO_THROW ;105 RTDECL(void *) RTMemTmpAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 106 106 107 107 /** … … 126 126 * @param pszTag Allocation tag used for statistics and such. 127 127 */ 128 RTDECL(void *) RTMemTmpAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW ;128 RTDECL(void *) RTMemTmpAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 129 129 130 130 /** … … 133 133 * @param pv Pointer to memory block. 134 134 */ 135 RTDECL(void) RTMemTmpFree(void *pv) RT_NO_THROW ;135 RTDECL(void) RTMemTmpFree(void *pv) RT_NO_THROW_PROTO; 136 136 137 137 /** @} */ … … 156 156 * @param pszTag Allocation tag used for statistics and such. 157 157 */ 158 RTDECL(void *) RTMemAllocTag(size_t cb, const char *pszTag) RT_NO_THROW ;158 RTDECL(void *) RTMemAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 159 159 160 160 /** … … 183 183 * @param pszTag Allocation tag used for statistics and such. 184 184 */ 185 RTDECL(void *) RTMemAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW ;185 RTDECL(void *) RTMemAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 186 186 187 187 /** … … 202 202 * @param pszTag Allocation tag used for statistics and such. 203 203 */ 204 RTDECL(void *) RTMemAllocVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW ;204 RTDECL(void *) RTMemAllocVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_PROTO; 205 205 206 206 /** … … 221 221 * @param pszTag Allocation tag used for statistics and such. 222 222 */ 223 RTDECL(void *) RTMemAllocZVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW ;223 RTDECL(void *) RTMemAllocZVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_PROTO; 224 224 225 225 /** … … 242 242 * @param pszTag Allocation tag used for statistics and such. 243 243 */ 244 RTDECL(void *) RTMemDupTag(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW ;244 RTDECL(void *) RTMemDupTag(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 245 245 246 246 /** … … 267 267 * @param pszTag Allocation tag used for statistics and such. 268 268 */ 269 RTDECL(void *) RTMemDupExTag(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW ;269 RTDECL(void *) RTMemDupExTag(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW_PROTO; 270 270 271 271 /** … … 288 288 * @param pszTag Allocation tag used for statistics and such. 289 289 */ 290 RTDECL(void *) RTMemReallocTag(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW ;290 RTDECL(void *) RTMemReallocTag(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_PROTO; 291 291 292 292 /** … … 295 295 * @param pv Pointer to memory block. 296 296 */ 297 RTDECL(void) RTMemFree(void *pv) RT_NO_THROW ;297 RTDECL(void) RTMemFree(void *pv) RT_NO_THROW_PROTO; 298 298 299 299 … … 362 362 * @param ppv Where to return the memory. 363 363 */ 364 RTDECL(int) RTMemAllocExTag(size_t cb, size_t cbAlignment, uint32_t fFlags, const char *pszTag, void **ppv) RT_NO_THROW ;364 RTDECL(int) RTMemAllocExTag(size_t cb, size_t cbAlignment, uint32_t fFlags, const char *pszTag, void **ppv) RT_NO_THROW_PROTO; 365 365 366 366 /** … … 375 375 * RTMEMALLOCEX_FLAGS_EXEC if used. 376 376 */ 377 RTDECL(void) RTMemFreeEx(void *pv, size_t cb) RT_NO_THROW ;377 RTDECL(void) RTMemFreeEx(void *pv, size_t cb) RT_NO_THROW_PROTO; 378 378 379 379 … … 396 396 * @param pszTag Allocation tag used for statistics and such. 397 397 */ 398 RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW ;398 RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 399 399 400 400 /** … … 404 404 * @param cb The allocation size. 405 405 */ 406 RTDECL(void) RTMemExecFree(void *pv, size_t cb) RT_NO_THROW ;406 RTDECL(void) RTMemExecFree(void *pv, size_t cb) RT_NO_THROW_PROTO; 407 407 408 408 #if defined(IN_RING0) && defined(RT_ARCH_AMD64) && defined(RT_OS_LINUX) … … 422 422 * @param cb The size of the memory block. 423 423 */ 424 RTR0DECL(int) RTR0MemExecDonate(void *pvMemory, size_t cb) RT_NO_THROW ;424 RTR0DECL(int) RTR0MemExecDonate(void *pvMemory, size_t cb) RT_NO_THROW_PROTO; 425 425 #endif /* R0+AMD64+LINUX */ 426 426 … … 442 442 * @param pszTag Allocation tag used for statistics and such. 443 443 */ 444 RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW ;444 RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 445 445 446 446 /** … … 461 461 * @param pszTag Allocation tag used for statistics and such. 462 462 */ 463 RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW ;463 RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 464 464 465 465 /** … … 471 471 * Ignored if @a pv is NULL. 472 472 */ 473 RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW ;473 RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW_PROTO; 474 474 475 475 /** Page level protection flags for RTMemProtect(). … … 494 494 * @param fProtect The new protection, a combination of the RTMEM_PROT_* defines. 495 495 */ 496 RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect) RT_NO_THROW ;496 RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect) RT_NO_THROW_PROTO; 497 497 498 498 /** … … 504 504 * @param cMinPasses The minimum number of passes to make. 505 505 */ 506 RTDECL(void) RTMemWipeThoroughly(void *pv, size_t cb, size_t cMinPasses) RT_NO_THROW ;506 RTDECL(void) RTMemWipeThoroughly(void *pv, size_t cb, size_t cMinPasses) RT_NO_THROW_PROTO; 507 507 508 508 #ifdef IN_RING0 … … 517 517 * rounded up to PAGE_SIZE. 518 518 */ 519 RTR0DECL(void *) RTMemContAlloc(PRTCCPHYS pPhys, size_t cb) RT_NO_THROW ;519 RTR0DECL(void *) RTMemContAlloc(PRTCCPHYS pPhys, size_t cb) RT_NO_THROW_PROTO; 520 520 521 521 /** … … 525 525 * @param cb The cb parameter passed to RTMemContAlloc(). 526 526 */ 527 RTR0DECL(void) RTMemContFree(void *pv, size_t cb) RT_NO_THROW ;527 RTR0DECL(void) RTMemContFree(void *pv, size_t cb) RT_NO_THROW_PROTO; 528 528 529 529 /** … … 637 637 * @param pszTag Allocation tag used for statistics and such. 638 638 */ 639 RTDECL(void *) RTMemEfTmpAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW ;639 RTDECL(void *) RTMemEfTmpAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 640 640 641 641 /** … … 647 647 * @param pszTag Allocation tag used for statistics and such. 648 648 */ 649 RTDECL(void *) RTMemEfTmpAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW ;649 RTDECL(void *) RTMemEfTmpAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 650 650 651 651 /** … … 654 654 * @param pv Pointer to memory block. 655 655 */ 656 RTDECL(void) RTMemEfTmpFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW ;656 RTDECL(void) RTMemEfTmpFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 657 657 658 658 /** … … 664 664 * @param pszTag Allocation tag used for statistics and such. 665 665 */ 666 RTDECL(void *) RTMemEfAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW ;666 RTDECL(void *) RTMemEfAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 667 667 668 668 /** … … 674 674 * @param pszTag Allocation tag used for statistics and such. 675 675 */ 676 RTDECL(void *) RTMemEfAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW ;676 RTDECL(void *) RTMemEfAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 677 677 678 678 /** … … 684 684 * @param pszTag Allocation tag used for statistics and such. 685 685 */ 686 RTDECL(void *) RTMemEfAllocVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW ;686 RTDECL(void *) RTMemEfAllocVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 687 687 688 688 /** … … 694 694 * @param pszTag Allocation tag used for statistics and such. 695 695 */ 696 RTDECL(void *) RTMemEfAllocZVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW ;696 RTDECL(void *) RTMemEfAllocZVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 697 697 698 698 /** … … 705 705 * @param pszTag Allocation tag used for statistics and such. 706 706 */ 707 RTDECL(void *) RTMemEfRealloc(void *pvOld, size_t cbNew, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW ;707 RTDECL(void *) RTMemEfRealloc(void *pvOld, size_t cbNew, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 708 708 709 709 /** … … 712 712 * @param pv Pointer to memory block. 713 713 */ 714 RTDECL(void) RTMemEfFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW ;714 RTDECL(void) RTMemEfFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 715 715 716 716 /** … … 723 723 * @param pszTag Allocation tag used for statistics and such. 724 724 */ 725 RTDECL(void *) RTMemEfDup(const void *pvSrc, size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW ;725 RTDECL(void *) RTMemEfDup(const void *pvSrc, size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 726 726 727 727 /** … … 735 735 * @param pszTag Allocation tag used for statistics and such. 736 736 */ 737 RTDECL(void *) RTMemEfDupEx(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW ;737 RTDECL(void *) RTMemEfDupEx(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 738 738 739 739 /** @def RTMEM_WRAP_SOME_NEW_AND_DELETE_TO_EF … … 756 756 throw std::bad_alloc(); \ 757 757 } \ 758 void *operator new(size_t cb, const std::nothrow_t ¬hrow_constant) RT_NO_THROW \758 void *operator new(size_t cb, const std::nothrow_t ¬hrow_constant) RT_NO_THROW_DEF \ 759 759 { \ 760 760 NOREF(nothrow_constant); \ … … 768 768 throw std::bad_alloc(); \ 769 769 } \ 770 void *operator new[](size_t cb, const std::nothrow_t ¬hrow_constant) RT_NO_THROW \770 void *operator new[](size_t cb, const std::nothrow_t ¬hrow_constant) RT_NO_THROW_DEF \ 771 771 { \ 772 772 NOREF(nothrow_constant); \ … … 774 774 } \ 775 775 \ 776 void operator delete(void *pv) RT_NO_THROW \776 void operator delete(void *pv) RT_NO_THROW_DEF \ 777 777 { \ 778 778 RTMemEfFree(pv, RT_SRC_POS); \ 779 779 } \ 780 void operator delete(void *pv, const std::nothrow_t ¬hrow_constant) RT_NO_THROW \780 void operator delete(void *pv, const std::nothrow_t ¬hrow_constant) RT_NO_THROW_DEF \ 781 781 { \ 782 782 NOREF(nothrow_constant); \ 783 783 RTMemEfFree(pv, RT_SRC_POS); \ 784 784 } \ 785 void operator delete[](void *pv) RT_NO_THROW \785 void operator delete[](void *pv) RT_NO_THROW_DEF \ 786 786 { \ 787 787 RTMemEfFree(pv, RT_SRC_POS); \ 788 788 } \ 789 void operator delete[](void *pv, const std::nothrow_t ¬hrow_constant) RT_NO_THROW \789 void operator delete[](void *pv, const std::nothrow_t ¬hrow_constant) RT_NO_THROW_DEF \ 790 790 { \ 791 791 NOREF(nothrow_constant); \ … … 868 868 * @copydoc RTMemTmpAllocTag 869 869 */ 870 RTDECL(void *) RTMemEfTmpAllocNP(size_t cb, const char *pszTag) RT_NO_THROW ;870 RTDECL(void *) RTMemEfTmpAllocNP(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 871 871 872 872 /** … … 874 874 * @copydoc RTMemTmpAllocZTag 875 875 */ 876 RTDECL(void *) RTMemEfTmpAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW ;876 RTDECL(void *) RTMemEfTmpAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 877 877 878 878 /** … … 880 880 * @copydoc RTMemTmpFreeTag 881 881 */ 882 RTDECL(void) RTMemEfTmpFreeNP(void *pv) RT_NO_THROW ;882 RTDECL(void) RTMemEfTmpFreeNP(void *pv) RT_NO_THROW_PROTO; 883 883 884 884 /** … … 886 886 * @copydoc RTMemAllocTag 887 887 */ 888 RTDECL(void *) RTMemEfAllocNP(size_t cb, const char *pszTag) RT_NO_THROW ;888 RTDECL(void *) RTMemEfAllocNP(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 889 889 890 890 /** … … 892 892 * @copydoc RTMemAllocZTag 893 893 */ 894 RTDECL(void *) RTMemEfAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW ;894 RTDECL(void *) RTMemEfAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 895 895 896 896 /** … … 898 898 * @copydoc RTMemAllocVarTag 899 899 */ 900 RTDECL(void *) RTMemEfAllocVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW ;900 RTDECL(void *) RTMemEfAllocVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_PROTO; 901 901 902 902 /** … … 904 904 * @copydoc RTMemAllocZVarTag 905 905 */ 906 RTDECL(void *) RTMemEfAllocZVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW ;906 RTDECL(void *) RTMemEfAllocZVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_PROTO; 907 907 908 908 /** … … 910 910 * @copydoc RTMemReallocTag 911 911 */ 912 RTDECL(void *) RTMemEfReallocNP(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW ;912 RTDECL(void *) RTMemEfReallocNP(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_PROTO; 913 913 914 914 /** … … 916 916 * @copydoc RTMemFree 917 917 */ 918 RTDECL(void) RTMemEfFreeNP(void *pv) RT_NO_THROW ;918 RTDECL(void) RTMemEfFreeNP(void *pv) RT_NO_THROW_PROTO; 919 919 920 920 /** … … 922 922 * @copydoc RTMemDupExTag 923 923 */ 924 RTDECL(void *) RTMemEfDupNP(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW ;924 RTDECL(void *) RTMemEfDupNP(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 925 925 926 926 /** … … 928 928 * @copydoc RTMemDupExTag 929 929 */ 930 RTDECL(void *) RTMemEfDupExNP(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW ;930 RTDECL(void *) RTMemEfDupExNP(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW_PROTO; 931 931 932 932 /** @} */ -
trunk/include/iprt/mempool.h
r56291 r57432 62 62 * @param cb Size in bytes of the memory block to allocated. 63 63 */ 64 RTDECL(void *) RTMemPoolAlloc(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW ;64 RTDECL(void *) RTMemPoolAlloc(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW_PROTO; 65 65 66 66 /** … … 77 77 * @param cb Size in bytes of the memory block to allocated. 78 78 */ 79 RTDECL(void *) RTMemPoolAllocZ(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW ;79 RTDECL(void *) RTMemPoolAllocZ(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW_PROTO; 80 80 81 81 /** … … 89 89 * @param cb The amount of memory to duplicate. 90 90 */ 91 RTDECL(void *) RTMemPoolDup(RTMEMPOOL hMemPool, const void *pvSrc, size_t cb) RT_NO_THROW ;91 RTDECL(void *) RTMemPoolDup(RTMEMPOOL hMemPool, const void *pvSrc, size_t cb) RT_NO_THROW_PROTO; 92 92 93 93 /** … … 103 103 * @param cbExtra The amount of extra memory to allocate and zero. 104 104 */ 105 RTDECL(void *) RTMemPoolDupEx(RTMEMPOOL hMemPool, const void *pvSrc, size_t cbSrc, size_t cbExtra) RT_NO_THROW ;105 RTDECL(void *) RTMemPoolDupEx(RTMEMPOOL hMemPool, const void *pvSrc, size_t cbSrc, size_t cbExtra) RT_NO_THROW_PROTO; 106 106 107 107 /** … … 115 115 * @param cbNew The new block size (in bytes). 116 116 */ 117 RTDECL(void *) RTMemPoolRealloc(RTMEMPOOL hMemPool, void *pvOld, size_t cbNew) RT_NO_THROW ;117 RTDECL(void *) RTMemPoolRealloc(RTMEMPOOL hMemPool, void *pvOld, size_t cbNew) RT_NO_THROW_PROTO; 118 118 119 119 /** … … 128 128 * function to simplify code migration. 129 129 */ 130 RTDECL(void) RTMemPoolFree(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW ;130 RTDECL(void) RTMemPoolFree(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW_PROTO; 131 131 132 132 /** … … 137 137 * @param pv Pointer to memory block. 138 138 */ 139 RTDECL(uint32_t) RTMemPoolRetain(void *pv) RT_NO_THROW ;139 RTDECL(uint32_t) RTMemPoolRetain(void *pv) RT_NO_THROW_PROTO; 140 140 141 141 /** … … 149 149 * @param pv Pointer to memory block. 150 150 */ 151 RTDECL(uint32_t) RTMemPoolRelease(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW ;151 RTDECL(uint32_t) RTMemPoolRelease(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW_PROTO; 152 152 153 153 /** … … 157 157 * @param pv Pointer to memory block. 158 158 */ 159 RTDECL(uint32_t) RTMemPoolRefCount(void *pv) RT_NO_THROW ;159 RTDECL(uint32_t) RTMemPoolRefCount(void *pv) RT_NO_THROW_PROTO; 160 160 161 161 -
trunk/include/iprt/memsafer.h
r56291 r57432 108 108 * @param pszTag Allocation tag used for statistics and such. 109 109 */ 110 RTDECL(int) RTMemSaferAllocZExTag(void **ppvNew, size_t cb, uint32_t fFlags, const char *pszTag) RT_NO_THROW ;110 RTDECL(int) RTMemSaferAllocZExTag(void **ppvNew, size_t cb, uint32_t fFlags, const char *pszTag) RT_NO_THROW_PROTO; 111 111 112 112 /** … … 134 134 * @param pszTag Allocation tag used for statistics and such. 135 135 */ 136 RTDECL(void *) RTMemSaferAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW ;136 RTDECL(void *) RTMemSaferAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 137 137 138 138 /** … … 168 168 * @param pszTag Allocation tag used for statistics and such. 169 169 */ 170 RTDECL(int) RTMemSaferReallocZExTag(size_t cbOld, void *pvOld, size_t cbNew, void **ppvNew, uint32_t fFlags, const char *pszTag) RT_NO_THROW ;170 RTDECL(int) RTMemSaferReallocZExTag(size_t cbOld, void *pvOld, size_t cbNew, void **ppvNew, uint32_t fFlags, const char *pszTag) RT_NO_THROW_PROTO; 171 171 172 172 /** … … 207 207 * @param pszTag Allocation tag used for statistics and such. 208 208 */ 209 RTDECL(void *) RTMemSaferReallocZTag(size_t cbOld, void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW ;209 RTDECL(void *) RTMemSaferReallocZTag(size_t cbOld, void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_PROTO; 210 210 211 211 /** … … 236 236 * @param cb The allocation size. 237 237 */ 238 RTDECL(void) RTMemSaferFree(void *pv, size_t cb) RT_NO_THROW ;238 RTDECL(void) RTMemSaferFree(void *pv, size_t cb) RT_NO_THROW_PROTO; 239 239 240 240 /** @} */ -
trunk/include/iprt/rand.h
r56291 r57432 43 43 * @param cb Number of bytes to generate. 44 44 */ 45 RTDECL(void) RTRandBytes(void *pv, size_t cb) RT_NO_THROW ;45 RTDECL(void) RTRandBytes(void *pv, size_t cb) RT_NO_THROW_PROTO; 46 46 47 47 /** … … 52 52 * @param i32Last Last number in the set. 53 53 */ 54 RTDECL(int32_t) RTRandS32Ex(int32_t i32First, int32_t i32Last) RT_NO_THROW ;54 RTDECL(int32_t) RTRandS32Ex(int32_t i32First, int32_t i32Last) RT_NO_THROW_PROTO; 55 55 56 56 /** … … 59 59 * @returns The random number. 60 60 */ 61 RTDECL(int32_t) RTRandS32(void) RT_NO_THROW ;61 RTDECL(int32_t) RTRandS32(void) RT_NO_THROW_PROTO; 62 62 63 63 /** … … 68 68 * @param u32Last Last number in the set. 69 69 */ 70 RTDECL(uint32_t) RTRandU32Ex(uint32_t u32First, uint32_t u32Last) RT_NO_THROW ;70 RTDECL(uint32_t) RTRandU32Ex(uint32_t u32First, uint32_t u32Last) RT_NO_THROW_PROTO; 71 71 72 72 /** … … 75 75 * @returns The random number. 76 76 */ 77 RTDECL(uint32_t) RTRandU32(void) RT_NO_THROW ;77 RTDECL(uint32_t) RTRandU32(void) RT_NO_THROW_PROTO; 78 78 79 79 /** … … 84 84 * @param i64Last Last number in the set. 85 85 */ 86 RTDECL(int64_t) RTRandS64Ex(int64_t i64First, int64_t i64Last) RT_NO_THROW ;86 RTDECL(int64_t) RTRandS64Ex(int64_t i64First, int64_t i64Last) RT_NO_THROW_PROTO; 87 87 88 88 /** … … 91 91 * @returns The random number. 92 92 */ 93 RTDECL(int64_t) RTRandS64(void) RT_NO_THROW ;93 RTDECL(int64_t) RTRandS64(void) RT_NO_THROW_PROTO; 94 94 95 95 /** … … 100 100 * @param u64Last Last number in the set. 101 101 */ 102 RTDECL(uint64_t) RTRandU64Ex(uint64_t u64First, uint64_t u64Last) RT_NO_THROW ;102 RTDECL(uint64_t) RTRandU64Ex(uint64_t u64First, uint64_t u64Last) RT_NO_THROW_PROTO; 103 103 104 104 /** … … 107 107 * @returns The random number. 108 108 */ 109 RTDECL(uint64_t) RTRandU64(void) RT_NO_THROW ;109 RTDECL(uint64_t) RTRandU64(void) RT_NO_THROW_PROTO; 110 110 111 111 … … 117 117 * generator. 118 118 */ 119 RTDECL(int) RTRandAdvCreate(PRTRAND phRand) RT_NO_THROW ;119 RTDECL(int) RTRandAdvCreate(PRTRAND phRand) RT_NO_THROW_PROTO; 120 120 121 121 /** … … 125 125 * @param phRand Where to store the handle to the generator. 126 126 */ 127 RTDECL(int) RTRandAdvCreatePseudo(PRTRAND phRand) RT_NO_THROW ;127 RTDECL(int) RTRandAdvCreatePseudo(PRTRAND phRand) RT_NO_THROW_PROTO; 128 128 129 129 /** … … 133 133 * @param phRand Where to store the handle to the generator. 134 134 */ 135 RTDECL(int) RTRandAdvCreateParkMiller(PRTRAND phRand) RT_NO_THROW ;135 RTDECL(int) RTRandAdvCreateParkMiller(PRTRAND phRand) RT_NO_THROW_PROTO; 136 136 137 137 /** … … 148 148 * @remarks Think /dev/urandom. 149 149 */ 150 RTDECL(int) RTRandAdvCreateSystemFaster(PRTRAND phRand) RT_NO_THROW ;150 RTDECL(int) RTRandAdvCreateSystemFaster(PRTRAND phRand) RT_NO_THROW_PROTO; 151 151 152 152 /** … … 167 167 * @remarks Think /dev/random. 168 168 */ 169 RTDECL(int) RTRandAdvCreateSystemTruer(PRTRAND phRand) RT_NO_THROW ;169 RTDECL(int) RTRandAdvCreateSystemTruer(PRTRAND phRand) RT_NO_THROW_PROTO; 170 170 171 171 /** … … 175 175 * @param hRand Handle to the random number generator. 176 176 */ 177 RTDECL(int) RTRandAdvDestroy(RTRAND hRand) RT_NO_THROW ;177 RTDECL(int) RTRandAdvDestroy(RTRAND hRand) RT_NO_THROW_PROTO; 178 178 179 179 /** … … 190 190 * @param u64Seed Seed. 191 191 */ 192 RTDECL(int) RTRandAdvSeed(RTRAND hRand, uint64_t u64Seed) RT_NO_THROW ;192 RTDECL(int) RTRandAdvSeed(RTRAND hRand, uint64_t u64Seed) RT_NO_THROW_PROTO; 193 193 194 194 /** … … 212 212 * terminator, thus the 'cb' instead of 'cch'). 213 213 */ 214 RTDECL(int) RTRandAdvSaveState(RTRAND hRand, char *pszState, size_t *pcbState) RT_NO_THROW ;214 RTDECL(int) RTRandAdvSaveState(RTRAND hRand, char *pszState, size_t *pcbState) RT_NO_THROW_PROTO; 215 215 216 216 /** … … 226 226 * @param pszState The state to load. 227 227 */ 228 RTDECL(int) RTRandAdvRestoreState(RTRAND hRand, char const *pszState) RT_NO_THROW ;228 RTDECL(int) RTRandAdvRestoreState(RTRAND hRand, char const *pszState) RT_NO_THROW_PROTO; 229 229 230 230 /** … … 235 235 * @param cb Number of bytes to generate. 236 236 */ 237 RTDECL(void) RTRandAdvBytes(RTRAND hRand, void *pv, size_t cb) RT_NO_THROW ;237 RTDECL(void) RTRandAdvBytes(RTRAND hRand, void *pv, size_t cb) RT_NO_THROW_PROTO; 238 238 239 239 /** … … 245 245 * @param i32Last Last number in the set. 246 246 */ 247 RTDECL(int32_t) RTRandAdvS32Ex(RTRAND hRand, int32_t i32First, int32_t i32Last) RT_NO_THROW ;247 RTDECL(int32_t) RTRandAdvS32Ex(RTRAND hRand, int32_t i32First, int32_t i32Last) RT_NO_THROW_PROTO; 248 248 249 249 /** … … 253 253 * @param hRand Handle to the random number generator. 254 254 */ 255 RTDECL(int32_t) RTRandAdvS32(RTRAND hRand) RT_NO_THROW ;255 RTDECL(int32_t) RTRandAdvS32(RTRAND hRand) RT_NO_THROW_PROTO; 256 256 257 257 /** … … 263 263 * @param u32Last Last number in the set. 264 264 */ 265 RTDECL(uint32_t) RTRandAdvU32Ex(RTRAND hRand, uint32_t u32First, uint32_t u32Last) RT_NO_THROW ;265 RTDECL(uint32_t) RTRandAdvU32Ex(RTRAND hRand, uint32_t u32First, uint32_t u32Last) RT_NO_THROW_PROTO; 266 266 267 267 /** … … 271 271 * @param hRand Handle to the random number generator. 272 272 */ 273 RTDECL(uint32_t) RTRandAdvU32(RTRAND hRand) RT_NO_THROW ;273 RTDECL(uint32_t) RTRandAdvU32(RTRAND hRand) RT_NO_THROW_PROTO; 274 274 275 275 /** … … 281 281 * @param i64Last Last number in the set. 282 282 */ 283 RTDECL(int64_t) RTRandAdvS64Ex(RTRAND hRand, int64_t i64First, int64_t i64Last) RT_NO_THROW ;283 RTDECL(int64_t) RTRandAdvS64Ex(RTRAND hRand, int64_t i64First, int64_t i64Last) RT_NO_THROW_PROTO; 284 284 285 285 /** … … 288 288 * @returns The random number. 289 289 */ 290 RTDECL(int64_t) RTRandAdvS64(RTRAND hRand) RT_NO_THROW ;290 RTDECL(int64_t) RTRandAdvS64(RTRAND hRand) RT_NO_THROW_PROTO; 291 291 292 292 /** … … 298 298 * @param u64Last Last number in the set. 299 299 */ 300 RTDECL(uint64_t) RTRandAdvU64Ex(RTRAND hRand, uint64_t u64First, uint64_t u64Last) RT_NO_THROW ;300 RTDECL(uint64_t) RTRandAdvU64Ex(RTRAND hRand, uint64_t u64First, uint64_t u64Last) RT_NO_THROW_PROTO; 301 301 302 302 /** … … 306 306 * @param hRand Handle to the random number generator. 307 307 */ 308 RTDECL(uint64_t) RTRandAdvU64(RTRAND hRand) RT_NO_THROW ;308 RTDECL(uint64_t) RTRandAdvU64(RTRAND hRand) RT_NO_THROW_PROTO; 309 309 310 310 -
trunk/include/iprt/zip.h
r56291 r57432 196 196 RTDECL(int) RTZipBlockCompress(RTZIPTYPE enmType, RTZIPLEVEL enmLevel, uint32_t fFlags, 197 197 void const *pvSrc, size_t cbSrc, 198 void *pvDst, size_t cbDst, size_t *pcbDstActual) RT_NO_THROW ;198 void *pvDst, size_t cbDst, size_t *pcbDstActual) RT_NO_THROW_PROTO; 199 199 200 200 … … 215 215 RTDECL(int) RTZipBlockDecompress(RTZIPTYPE enmType, uint32_t fFlags, 216 216 void const *pvSrc, size_t cbSrc, size_t *pcbSrcActual, 217 void *pvDst, size_t cbDst, size_t *pcbDstActual) RT_NO_THROW ;217 void *pvDst, size_t cbDst, size_t *pcbDstActual) RT_NO_THROW_PROTO; 218 218 219 219
Note:
See TracChangeset
for help on using the changeset viewer.