Changeset 7170 in vbox
- Timestamp:
- Feb 27, 2008 1:20:01 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28465
- Location:
- trunk/include/iprt
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asm.h
r7103 r7170 170 170 # pragma intrinsic(_ReturnAddress) 171 171 # define ASMReturnAddress() _ReturnAddress() 172 #elif defined(__GNUC__) || defined( __DOXYGEN__)172 #elif defined(__GNUC__) || defined(DOXYGEN_RUNNING) 173 173 # define ASMReturnAddress() __builtin_return_address(0) 174 174 #else … … 2495 2495 * @param u64New The 64-bit value to assign to *pu64. 2496 2496 * @param u64Old The value to compare with. 2497 * @param pu 32Old Pointer store the old value at.2497 * @param pu64Old Pointer store the old value at. 2498 2498 */ 2499 2499 #if RT_INLINE_ASM_EXTERNAL && !RT_INLINE_ASM_USES_INTRIN … … 3339 3339 * 3340 3340 * @param pi8 Pointer to the 8-bit variable to read. 3341 * @param u8 The 8-bit value to assign to *pu8.3341 * @param i8 The 8-bit value to assign to *pi8. 3342 3342 */ 3343 3343 DECLINLINE(void) ASMAtomicWriteS8(volatile int8_t *pi8, int8_t i8) … … 3351 3351 * 3352 3352 * @param pi8 Pointer to the 8-bit variable to read. 3353 * @param u8 The 8-bit value to assign to *pu8.3353 * @param i8 The 8-bit value to assign to *pi8. 3354 3354 */ 3355 3355 DECLINLINE(void) ASMAtomicUoWriteS8(volatile int8_t *pi8, int8_t i8) … … 3388 3388 * 3389 3389 * @param pi16 Pointer to the 16-bit variable to read. 3390 * @param u16 The 16-bit value to assign to *pu16.3390 * @param i16 The 16-bit value to assign to *pi16. 3391 3391 */ 3392 3392 DECLINLINE(void) ASMAtomicWriteS16(volatile int16_t *pi16, int16_t i16) … … 3400 3400 * 3401 3401 * @param pi16 Pointer to the 16-bit variable to read. 3402 * @param u16 The 16-bit value to assign to *pu16.3402 * @param i16 The 16-bit value to assign to *pi16. 3403 3403 */ 3404 3404 DECLINLINE(void) ASMAtomicUoWriteS16(volatile int16_t *pi16, int16_t i16) … … 3438 3438 * 3439 3439 * @param pi32 Pointer to the 32-bit variable to read. 3440 * @param u32 The 32-bit value to assign to *pu32.3440 * @param i32 The 32-bit value to assign to *pi32. 3441 3441 */ 3442 3442 DECLINLINE(void) ASMAtomicWriteS32(volatile int32_t *pi32, int32_t i32) … … 3450 3450 * 3451 3451 * @param pi32 Pointer to the 32-bit variable to read. 3452 * @param u32 The 32-bit value to assign to *pu32.3452 * @param i32 The 32-bit value to assign to *pi32. 3453 3453 */ 3454 3454 DECLINLINE(void) ASMAtomicUoWriteS32(volatile int32_t *pi32, int32_t i32) … … 3492 3492 * 3493 3493 * @param pi64 Pointer to the 64-bit variable. 3494 * @param u64 The 64-bit value to assign to *pu64.3494 * @param i64 The 64-bit value to assign to *pi64. 3495 3495 */ 3496 3496 DECLINLINE(void) ASMAtomicWriteS64(volatile int64_t *pi64, int64_t i64) … … 3504 3504 * 3505 3505 * @param pi64 Pointer to the 64-bit variable. 3506 * @param u64 The 64-bit value to assign to *pu64.3506 * @param i64 The 64-bit value to assign to *pi64. 3507 3507 */ 3508 3508 DECLINLINE(void) ASMAtomicUoWriteS64(volatile int64_t *pi64, int64_t i64) -
trunk/include/iprt/assert.h
r6824 r7170 88 88 # define AssertBreakpoint() do { if (RTAssertDoBreakpoint()) { __asm__ __volatile__ ("int3; jmp 1f; 1:"); } } while (0) 89 89 # endif 90 # elif defined(_MSC_VER) 90 # elif defined(_MSC_VER) || defined(DOXYGEN_RUNNING) 91 91 # define AssertBreakpoint() do { if (RTAssertDoBreakpoint()) { __debugbreak(); } } while (0) 92 92 # else … … 643 643 # define AssertLogRelBreakpoint() do { RTAssertDoBreakpoint(); __asm__ __volatile__ ("int3; jmp 1f; 1:"); } while (0) 644 644 # endif 645 # elif defined(_MSC_VER) 645 # elif defined(_MSC_VER) || defined(DOXYGEN_RUNNING) 646 646 # define AssertLogRelBreakpoint() do { RTAssertDoBreakpoint(); __debugbreak(); } while (0) 647 647 # else … … 993 993 # define AssertReleaseBreakpoint() do { RTAssertDoBreakpoint(); __asm__ __volatile__ ("int3; jmp 1f; 1:"); } while (0) 994 994 # endif 995 #elif defined(_MSC_VER) 995 #elif defined(_MSC_VER) || defined(DOXYGEN_RUNNING) 996 996 # define AssertReleaseBreakpoint() do { RTAssertDoBreakpoint(); __debugbreak(); } while (0) 997 997 #else -
trunk/include/iprt/cdefs.h
r6216 r7170 66 66 * Shut up DOXYGEN warnings and guide it properly thru the code. 67 67 */ 68 #ifdef __DOXYGEN__68 #ifdef DOXYGEN_RUNNING 69 69 #define __AMD64__ 70 70 #define __X86__ … … 80 80 #define Breakpoint 81 81 #define RT_NO_DEPRECATED_MACROS 82 #define ARCH_BITS82 /** @todo #define ARCH_BITS 83 83 #define HC_ARCH_BITS 84 84 #define R3_ARCH_BITS 85 85 #define R0_ARCH_BITS 86 #define GC_ARCH_BITS 87 #endif /* __DOXYGEN__*/86 #define GC_ARCH_BITS */ 87 #endif /* DOXYGEN_RUNNING */ 88 88 89 89 /** @def RT_ARCH_X86 -
trunk/include/iprt/cpputils.h
r6170 r7170 66 66 67 67 68 /** 68 /** 69 69 * Extensions to the std namespace. 70 70 */ … … 75 75 template <class> class auto_ref_ptr; 76 76 77 /** 77 /** 78 78 * Base class for objects willing to support smart reference counting using 79 79 * the auto_ref_ptr template. … … 131 131 public: 132 132 133 /** 133 /** 134 134 * Creates a null instance that does not manage anything. 135 135 */ 136 136 auto_ref_ptr() : m (NULL) {} 137 137 138 /** 138 /** 139 139 * Creates an instance that starts managing the given pointer. The 140 140 * reference counter of the object pointed to by @a a is incremented by … … 145 145 auto_ref_ptr (C* a) : m (a) { if (m) m->ref(); } 146 146 147 /** 147 /** 148 148 * Creates an instance that starts managing a pointer managed by the given 149 149 * instance. The reference counter of the object managed by @a that is … … 155 155 156 156 ~auto_ref_ptr() { do_unref(); } 157 158 /** 157 158 /** 159 159 * Assigns the given pointer to this instance and starts managing it. The 160 160 * reference counter of the object pointed to by @a a is incremented by … … 166 166 auto_ref_ptr &operator= (C *a) { do_reref (a); return *this; } 167 167 168 /** 168 /** 169 169 * Assigns a pointer managed by the given instance to this instance and 170 170 * starts managing it. The reference counter of the object managed by @a … … 172 172 * previously managed by this instance is decremented by one. 173 173 * 174 * @param a Pointer to assign.174 * @param that Instance which pointer to reference. 175 175 */ 176 176 auto_ref_ptr &operator= (const auto_ref_ptr &that) { do_reref (that.m); return *this; } 177 177 178 /** 178 /** 179 179 * Returns @c true if this instance is @c null and false otherwise. 180 180 */ 181 181 bool is_null() const { return m == NULL; } 182 182 183 /** 183 /** 184 184 * Dereferences the instance by returning the managed pointer. 185 185 * Asserts that the managed pointer is not @c NULL. … … 187 187 C *operator-> () const { AssertMsg (m, ("Managed pointer is NULL!\n")); return m; } 188 188 189 /** 189 /** 190 190 * Returns the managed pointer or @c NULL if this instance is @c null. 191 191 */ 192 192 C *raw() const { return m; } 193 193 194 /** 194 /** 195 195 * Compares this auto_ref_ptr instance with another instance and returns 196 196 * @c true if both instances manage the same or @c NULL pointer. … … 202 202 * class which is not always possible. You may analyze pointed objects 203 203 * yourself if you need more precise comparison. 204 * 204 * 205 205 * @param that Instance to compare this instance with. 206 206 */ … … 234 234 }; 235 235 236 /** 236 /** 237 237 * The exception_trap_base class is an abstract base class for all 238 238 * exception_trap template instantiations. … … 252 252 }; 253 253 254 /** 254 /** 255 255 * The exception_trap template acts like a wrapper for the given exception 256 256 * class that stores a full copy of the exception and therefore allows to … … 275 275 276 276 int safe_callback() 277 { 277 { 278 278 try 279 279 { … … 304 304 } 305 305 * @endcode 306 * 306 * 307 307 * @param T Exception class to wrap. 308 308 */ … … 318 318 }; 319 319 320 /** 320 /** 321 321 * Convenience function that allocates a new exception_trap instance on the 322 322 * heap by automatically deducing the exception_trap template argument from … … 334 334 } 335 335 * @endcode 336 * 336 * 337 337 * @param aTrapped Exception to put to the allocated trap. 338 * 338 * 339 339 * @return Allocated exception_trap object. 340 340 */ … … 347 347 348 348 /** 349 * Enhancement of std::auto_ptr <char> intended to take pointers to char349 * Enhancement of std::auto_ptr @<char@> intended to take pointers to char 350 350 * buffers allocated using new[]. 351 351 * 352 * This differs from std::auto_ptr <char> so that it overloads some methods to352 * This differs from std::auto_ptr @<char@> so that it overloads some methods to 353 353 * uses delete[] instead of delete to delete the owned data in order to 354 354 * conform to the C++ standard (and avoid valgrind complaints). 355 355 * 356 356 * Note that you should not use instances of this class where pointers or 357 * references to objects of std::auto_ptr <char> are expeced. Despite the fact357 * references to objects of std::auto_ptr @<char@> are expeced. Despite the fact 358 358 * the classes are related, the base is not polymorphic (in particular, 359 359 * neither the destructor nor the reset() method are virtual). It means that when -
trunk/include/iprt/log.h
r6515 r7170 675 675 676 676 677 #ifdef __DOXYGEN__677 #ifdef DOXYGEN_RUNNING 678 678 # define LOG_DISABLED 679 679 # define LOG_ENABLED … … 972 972 */ 973 973 974 #ifdef __DOXYGEN__974 #ifdef DOXYGEN_RUNNING 975 975 # define LOG_TO_COM 976 976 # define LOG_NO_COM … … 1017 1017 */ 1018 1018 1019 #ifdef __DOXYGEN__1019 #ifdef DOXYGEN_RUNNING 1020 1020 # define LOG_TO_BACKDOOR 1021 1021 # define LOG_NO_BACKDOOR -
trunk/include/iprt/mem.h
r5999 r7170 351 351 # define RTMemDupEx RTMemEfDupEx 352 352 #endif 353 #ifdef __DOXYGEN__353 #ifdef DOXYGEN_RUNNING 354 354 # define RTMEM_WRAP_TO_EF_APIS 355 355 #endif -
trunk/include/iprt/path.h
r5999 r7170 92 92 * However it might be insufficient on other platforms 93 93 * and even on PC a UNC volume spec won't be detected this way. 94 * Use the RTPath <too be created>() instead.94 * Use the RTPath@<too be created@>() instead. 95 95 * 96 96 * @returns true if it is and false if it isn't. … … 116 116 /** 117 117 * Checks if the path exists. 118 * 118 * 119 119 * Symbolic links will all be attempted resolved. 120 * 120 * 121 121 * @returns true if it exists and false if it doesn't. 122 122 * @param pszPath The path to check. … … 267 267 * @param pszPath2 Path to compare (must be an absolute path). 268 268 * 269 * @returns < 0 if the first path less than the second path.269 * @returns @< 0 if the first path less than the second path. 270 270 * @returns 0 if the first path identical to the second path. 271 * @returns > 0 if the first path greater than the second path.271 * @returns @> 0 if the first path greater than the second path. 272 272 */ 273 273 RTDECL(int) RTPathCompare(const char *pszPath1, const char *pszPath2); … … 323 323 * 324 324 * Linux: /usr/lib 325 * Windows: <program files directory>/<application>325 * Windows: @<program files directory@>/@<application@> 326 326 * Old path: same as RTPathProgram() 327 327 * … … 336 336 * example NLS files, module sources, ... 337 337 * 338 * Linux: /usr/shared/ <application>339 * Windows: <program files directory>/<application>338 * Linux: /usr/shared/@<application@> 339 * Windows: @<program files directory@>/@<application@> 340 340 * Old path: same as RTPathProgram() 341 341 * … … 350 350 * example modules which can be loaded at runtime. 351 351 * 352 * Linux: /usr/lib/ <application>353 * Windows: <program files directory>/<application>352 * Linux: /usr/lib/@<application@> 353 * Windows: @<program files directory@>/@<application@> 354 354 * Old path: same as RTPathProgram() 355 355 * … … 363 363 * Gets the directory for documentation. 364 364 * 365 * Linux: /usr/share/doc/ <application>366 * Windows: <program files directory>/<application>365 * Linux: /usr/share/doc/@<application@> 366 * Windows: @<program files directory@>/@<application@> 367 367 * Old path: same as RTPathProgram() 368 368 * -
trunk/include/iprt/rand.h
r5999 r7170 47 47 /** 48 48 * Generate a 32-bit signed random number in the set [i32First..i32Last]. 49 * 49 * 50 50 * @returns The random number. 51 51 * @param i32First First number in the set. … … 56 56 /** 57 57 * Generate a 32-bit signed random number. 58 * 58 * 59 59 * @returns The random number. 60 60 */ … … 63 63 /** 64 64 * Generate a 32-bit unsigned random number in the set [u32First..u32Last]. 65 * 65 * 66 66 * @returns The random number. 67 67 * @param u32First First number in the set. … … 72 72 /** 73 73 * Generate a 32-bit unsigned random number. 74 * 74 * 75 75 * @returns The random number. 76 76 */ … … 78 78 79 79 /** 80 * Generate a 32-bit signed random number in the set [i32First..i32Last].81 * 80 * Generate a 64-bit signed random number in the set [i64First..i64Last]. 81 * 82 82 * @returns The random number. 83 * @param i 32First First number in the set.84 * @param i 32Last Last number in the set.83 * @param i64First First number in the set. 84 * @param i64Last Last number in the set. 85 85 */ 86 86 RTDECL(int64_t) RTRandS64Ex(int64_t i64First, int64_t i64Last); … … 88 88 /** 89 89 * Generate a 64-bit signed random number. 90 * 90 * 91 91 * @returns The random number. 92 92 */ … … 95 95 /** 96 96 * Generate a 64-bit unsigned random number in the set [u64First..u64Last]. 97 * 97 * 98 98 * @returns The random number. 99 99 * @param u64First First number in the set. … … 104 104 /** 105 105 * Generate a 64-bit unsigned random number. 106 * 106 * 107 107 * @returns The random number. 108 108 */ -
trunk/include/iprt/req.h
r7133 r7170 156 156 * 157 157 * @returns iprt status code. 158 * @param p ReqQueue The request queue.158 * @param ppQueue Where to store the request queue pointer. 159 159 */ 160 160 RTDECL(int) RTReqCreateQueue(PRTREQQUEUE *ppQueue); … … 165 165 * 166 166 * @returns iprt status code. 167 * @param p ReqQueueThe request queue.167 * @param pQueue The request queue. 168 168 */ 169 169 RTDECL(int) RTReqDestroyQueue(PRTREQQUEUE pQueue); … … 176 176 * @returns VERR_TIMEOUT if cMillies was reached without the packet being added. 177 177 * 178 * @param p ReqQueueThe request queue.178 * @param pQueue The request queue. 179 179 * @param cMillies Number of milliseconds to wait for a pending request. 180 180 * Use RT_INDEFINITE_WAIT to only wait till one is added. … … 195 195 * @returns VERR_TIMEOUT if cMillies was reached without the packet being completed. 196 196 * 197 * @param p ReqQueueThe request queue.197 * @param pQueue The request queue. 198 198 * @param ppReq Where to store the pointer to the request. 199 199 * This will be NULL or a valid request pointer not matter what happends. … … 221 221 * @returns VERR_TIMEOUT if cMillies was reached without the packet being completed. 222 222 * 223 * @param p ReqQueueThe request queue.223 * @param pQueue The request queue. 224 224 * @param ppReq Where to store the pointer to the request. 225 225 * This will be NULL or a valid request pointer not matter what happends. … … 247 247 * @returns VERR_TIMEOUT if cMillies was reached without the packet being completed. 248 248 * 249 * @param p ReqQueueThe request queue.249 * @param pQueue The request queue. 250 250 * @param ppReq Where to store the pointer to the request. 251 251 * This will be NULL or a valid request pointer not matter what happends, unless fFlags … … 275 275 * @returns VERR_TIMEOUT if cMillies was reached without the packet being completed. 276 276 * 277 * @param p ReqQueueThe request queue.277 * @param pQueue The request queue. 278 278 * @param ppReq Where to store the pointer to the request. 279 279 * This will be NULL or a valid request pointer not matter what happends, unless fFlags … … 286 286 * @param cArgs Number of arguments following in the ellipsis. 287 287 * Not possible to pass 64-bit arguments! 288 * @param pvArgs Pointer to function arguments.288 * @param Args Variable argument vector. 289 289 */ 290 290 RTDECL(int) RTReqCallV(PRTREQQUEUE pQueue, PRTREQ *ppReq, unsigned cMillies, unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, va_list Args); … … 299 299 * @returns iprt status code. 300 300 * 301 * @param p ReqQueueThe request queue.301 * @param pQueue The request queue. 302 302 * @param ppReq Where to store the pointer to the allocated packet. 303 303 * @param enmType Package type. -
trunk/include/iprt/spinlock.h
r5999 r7170 93 93 * What to assign to a RTSPINLOCKTMP at definition. 94 94 */ 95 #ifdef __DOXYGEN__95 #ifdef DOXYGEN_RUNNING 96 96 # define RTSPINLOCKTMP_INITIALIZER 97 97 #endif -
trunk/include/iprt/stdint.h
r5999 r7170 42 42 #include <iprt/cdefs.h> 43 43 44 #if !(defined(RT_OS_LINUX) && defined(__KERNEL__)) && !defined(_MSC_VER) && !defined(__IBMC__) && !defined(__IBMCPP__) && !defined(IPRT_NO_CRT) 44 #if !(defined(RT_OS_LINUX) && defined(__KERNEL__)) && !defined(_MSC_VER) && !defined(__IBMC__) && !defined(__IBMCPP__) && !defined(IPRT_NO_CRT) && !defined(DOXYGEN_RUNNING) 45 45 # include <stdint.h> 46 46 47 47 #else 48 48 49 #if !(defined(RT_OS_LINUX) && defined(__KERNEL__)) || defined(IPRT_NO_CRT) 49 #if !(defined(RT_OS_LINUX) && defined(__KERNEL__)) || defined(IPRT_NO_CRT) || defined(DOXGEN_RUNNING) 50 50 /* machine specific */ 51 51 typedef signed char __int8_t; … … 122 122 #endif /* !linux kernel || no-crt */ 123 123 124 #if ndef _MSC_VER124 #if !defined(_MSC_VER) || defined(DOXYGEN_RUNNING) 125 125 #ifndef _INTPTR_T_DECLARED 126 /** Signed interger type capable of holding a pointer value, very useful for casting. */ 126 127 typedef __intptr_t intptr_t; 128 /** Unsigned interger type capable of holding a pointer value, very useful for casting. */ 127 129 typedef __uintptr_t uintptr_t; 128 130 #define _INTPTR_T_DECLARED 129 131 #endif 130 #endif /* !_MSC_VER */132 #endif /* !_MSC_VER || DOXYGEN_RUNNING */ 131 133 132 134 #if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) -
trunk/include/iprt/string.h
r6041 r7170 503 503 * @param pvArgFormat Argument to the format worker. 504 504 * @param pszFormat Format string pointer. 505 * @param argsArgument list.506 */ 507 RTDECL(size_t) RTStrFormatV(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, PFNSTRFORMAT pfnFormat, void *pvArgFormat, const char *pszFormat, va_list args);505 * @param InArgs Argument list. 506 */ 507 RTDECL(size_t) RTStrFormatV(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, PFNSTRFORMAT pfnFormat, void *pvArgFormat, const char *pszFormat, va_list InArgs); 508 508 509 509 /** … … 1021 1021 * @param uBase The base of the representation used. 1022 1022 * If the function will look for known prefixes before defaulting to 10. 1023 * @param pi 64Where to store the converted number. (optional)1023 * @param pi8 Where to store the converted number. (optional) 1024 1024 */ 1025 1025 RTDECL(int) RTStrToInt8Full(const char *pszValue, unsigned uBase, int8_t *pi8); -
trunk/include/iprt/uni.h
r5999 r7170 35 35 * Define RTUNI_USE_WCTYPE to not use the IPRT unicode data but the 36 36 * data which the C runtime library provides. */ 37 #ifdef __DOXYGEN__37 #ifdef DOXYGEN_RUNNING 38 38 # define RTUNI_USE_WCTYPE 39 39 #endif
Note:
See TracChangeset
for help on using the changeset viewer.