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
3535 WELSVP_NAMESPACE_BEGIN
3636 /////////////////////////////////////////////////////////////////////////////////
3737
38−void* WelsMalloc (const uint32_t kuiSize, str_t* pTag) {
38+void* WelsMalloc (const uint32_t kuiSize, char* pTag) {
3939 const int32_t kiSizeVoidPointer = sizeof (void**);
4040 const int32_t kiSizeInt32 = sizeof (int32_t);
4141 const int32_t kiAlignedBytes = ALIGNBYTES - 1;
@@ -59,7 +59,7 @@ void* WelsMalloc (const uint32_t kuiSize, str_t* pTag) { · 17 unmodified lines
5959
6060 /////////////////////////////////////////////////////////////////////////////
6161
62−void WelsFree (void* pPointer, str_t* pTag) {
62+void WelsFree (void* pPointer, char* pTag) {
6363 if (pPointer) {
6464 ::free (* (((void**) pPointer) - 1));
6565 }
@@ -67,7 +67,7 @@ void WelsFree (void* pPointer, str_t* pTag) { · 1 unmodified line
6767
6868 /////////////////////////////////////////////////////////////////////////////
6969
70−void* InternalReallocate (void* pPointer, const uint32_t kuiSize, str_t* pTag) {
70+void* InternalReallocate (void* pPointer, const uint32_t kuiSize, char* pTag) {
7171 uint32_t iOldSize = 0;
7272 uint8_t* pNew = NULL;
7373 if (pPointer != NULL)
@@ -91,7 +91,7 @@ void* InternalReallocate (void* pPointer, const uint32_t kuiSize, str_t* pTag) { · 17 unmodified lines
9191
9292 /////////////////////////////////////////////////////////////////////////////
9393
94−void* WelsRealloc (void* pPointer, uint32_t* pRealSize, const uint32_t kuiSize, str_t* pTag) {
94+void* WelsRealloc (void* pPointer, uint32_t* pRealSize, const uint32_t kuiSize, char* pTag) {
9595 const uint32_t kuiOldSize = *pRealSize;
9696 uint32_t kuiNewSize = 0;
9797 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