Changeset 20741 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Jun 21, 2009 2:13:21 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/dbg/dbg.cpp
r20740 r20741 71 71 } 72 72 73 74 /** 75 * Allocate a new line number structure. 76 * 77 * @returns Pointer to a new structure on success, NULL on failure. 78 */ 79 RTDECL(PRTDBGLINE) RTDbgLineAlloc(void) 80 { 81 return (PRTDBGLINE)RTMemAllocZ(sizeof(RTDBGLINE)); 82 } 83 84 85 /** 86 * Duplicates a line number structure. 87 * 88 * @returns Pointer to duplicate on success, NULL on failure. 89 * 90 * @param pLine The line number to duplicate. 91 */ 92 RTDECL(PRTDBGLINE) RTDbgLineDup(PCRTDBGLINE pLine) 93 { 94 return (PRTDBGLINE)RTMemDup(pLine, sizeof(*pLine)); 95 } 96 97 98 /** 99 * Free a line number structure previously allocated by a RTDbg method. 100 * 101 * @param pLine The line number to free. NULL is ignored. 102 */ 103 RTDECL(void) RTDbgLineFree(PRTDBGLINE pLine) 104 { 105 RTMemFree(pLine); 106 } 107 108
Note:
See TracChangeset
for help on using the changeset viewer.