History

Use char instead of str_t

Martin Storsjö committed 12 years ago

Commit f2bd22a1 parent 7b96c6734 files · +131 −135Browse files

Showing the changes to codec/processing/src/common/memory.cpp (1 of 34 files). Show all

Unified · Split

codec/processing/src/common/memory.cpp+4−4
@@ -35,7 +35,7 @@ · 34 unmodified lines
35WELSVP_NAMESPACE_BEGIN35WELSVP_NAMESPACE_BEGIN
36/////////////////////////////////////////////////////////////////////////////////36/////////////////////////////////////////////////////////////////////////////////
37 37
38void* WelsMalloc (const uint32_t kuiSize, str_t* pTag) {38void* WelsMalloc (const uint32_t kuiSize, char* pTag) {
39 const int32_t kiSizeVoidPointer = sizeof (void**);39 const int32_t kiSizeVoidPointer = sizeof (void**);
40 const int32_t kiSizeInt32 = sizeof (int32_t);40 const int32_t kiSizeInt32 = sizeof (int32_t);
41 const int32_t kiAlignedBytes = ALIGNBYTES - 1;41 const int32_t kiAlignedBytes = ALIGNBYTES - 1;
@@ -59,7 +59,7 @@ void* WelsMalloc (const uint32_t kuiSize, str_t* pTag) { · 17 unmodified lines
59 59
60/////////////////////////////////////////////////////////////////////////////60/////////////////////////////////////////////////////////////////////////////
61 61
62void WelsFree (void* pPointer, str_t* pTag) {62void WelsFree (void* pPointer, char* pTag) {
63 if (pPointer) {63 if (pPointer) {
64 ::free (* (((void**) pPointer) - 1));64 ::free (* (((void**) pPointer) - 1));
65 }65 }
@@ -67,7 +67,7 @@ void WelsFree (void* pPointer, str_t* pTag) { · 1 unmodified line
67 67
68/////////////////////////////////////////////////////////////////////////////68/////////////////////////////////////////////////////////////////////////////
69 69
70void* InternalReallocate (void* pPointer, const uint32_t kuiSize, str_t* pTag) {70void* InternalReallocate (void* pPointer, const uint32_t kuiSize, char* pTag) {
71 uint32_t iOldSize = 0;71 uint32_t iOldSize = 0;
72 uint8_t* pNew = NULL;72 uint8_t* pNew = NULL;
73 if (pPointer != NULL)73 if (pPointer != NULL)
@@ -91,7 +91,7 @@ void* InternalReallocate (void* pPointer, const uint32_t kuiSize, str_t* pTag) { · 17 unmodified lines
91 91
92/////////////////////////////////////////////////////////////////////////////92/////////////////////////////////////////////////////////////////////////////
93 93
94void* WelsRealloc (void* pPointer, uint32_t* pRealSize, const uint32_t kuiSize, str_t* pTag) {94void* WelsRealloc (void* pPointer, uint32_t* pRealSize, const uint32_t kuiSize, char* pTag) {
95 const uint32_t kuiOldSize = *pRealSize;95 const uint32_t kuiOldSize = *pRealSize;
96 uint32_t kuiNewSize = 0;96 uint32_t kuiNewSize = 0;
97 void* pLocalPointer = NULL;97 void* pLocalPointer = NULL;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t