Skip to content

Commit

Permalink
removed FREEBUFFER
Browse files Browse the repository at this point in the history
  • Loading branch information
lamskoy committed Dec 31, 2021
1 parent 58b4127 commit 08babe2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 14 deletions.
9 changes: 0 additions & 9 deletions golded3/gearea.cpp
Expand Up @@ -507,8 +507,6 @@ void GPickArealist::print_line(uint idx, uint pos, bool isbar)
if(AL[idx]->ismarked())
wprintc(pos, marked_pos, isbar ? sattr : hattr, marked_char);
}
FREEBUFFER(buf, MAXCOL);
FREEBUFFER(vbuf, MAXCOL*2);
}


Expand Down Expand Up @@ -597,7 +595,6 @@ void GPickArealist::AreaDropMsgMarks(uint n)
}
}
}
FREEBUFFER(buf, MAXCOL);
}


Expand Down Expand Up @@ -649,8 +646,6 @@ bool GPickArealist::handle_key()
if(gkbd.quitall)
{
precursor();
FREEBUFFER(tmp, MAXCOL);
FREEBUFFER(buf, MAXCOL);
return false;
}
}
Expand All @@ -668,8 +663,6 @@ bool GPickArealist::handle_key()
break;
}
precursor();
FREEBUFFER(tmp, MAXCOL);
FREEBUFFER(buf, MAXCOL);
return false;

case KK_AreaQuitNow:
Expand Down Expand Up @@ -997,8 +990,6 @@ bool GPickArealist::handle_key()
if(not PlayMacro(key, KT_A))
SayBibi();
}
FREEBUFFER(tmp, MAXCOL);
FREEBUFFER(buf, MAXCOL);
return true;
}

Expand Down
2 changes: 0 additions & 2 deletions golded3/gemlst.cpp
Expand Up @@ -434,7 +434,6 @@ void GMsgList::print_line(uint idx, uint pos, bool isbar)
}

goldmark = ml->goldmark;
FREEBUFFER(buf, MAXCOL);
}


Expand Down Expand Up @@ -1090,7 +1089,6 @@ void GThreadlist::print_line(uint idx, uint pos, bool isbar)

window.prints(pos, 8 + buflen, attr, buf);
}
FREEBUFFER(buf, MAXCOL);
}


Expand Down
1 change: 0 additions & 1 deletion golded3/geusrbse.cpp
Expand Up @@ -274,7 +274,6 @@ void guserbase::print_line(uint idx, uint pos, bool isbar)
std::string line_to_print(buf);
line_to_print.resize(xlen,' ');
window.prints(pos, 0, isbar ? sattr : wattr, line_to_print.c_str());
FREEBUFFER(buf, MAXCOL);
}


Expand Down
2 changes: 0 additions & 2 deletions goldlib/gall/gstrall.h
Expand Up @@ -226,10 +226,8 @@ char* strcvtc(char* s);
#define PRINTF_DECLARE_BUFFER_AUTO(b,size) b, size, __FILE__, __LINE__
#if defined(__USE_ALLOCA__)
#define CREATEBUFFER(type, name, size) type *name = (type*)alloca(size)
#define FREEBUFFER(name, size) free(name)
#else
#define CREATEBUFFER(type, name, size) __extension__ type name[size]
#define FREEBUFFER(name, size) memset(name, 0, size)
#endif
int gsprintf(TCHAR* buffer, size_t sizeOfBuffer, const TCHAR* __file, int __line, const TCHAR* format, ...);

Expand Down

0 comments on commit 08babe2

Please sign in to comment.