thrift/lib
David Reiss d7a16f4c11 Thrift: Add "#include <cstdlib>" in a few places and s/malloc/std::malloc/
Summary:
There were a few places where we were calling malloc/reallaoc/free without
including cstdlib (or stdlib.h).  This is broken, but it worked because
other headers that we were including included stdlib.h.  However, on a
platform where this wasn't true, it broke the Thrift build.  This change
adds the proper includes.  It also changes malloc to std::malloc (same
with realloc and free) in a few places, because that is the correct way
of doing it when you include cstdlib.

Reviewed By: mcslee

Test Plan: Compiled Thrift.

Revert Plan: ok

Other Notes:
This bug was noticed by a Thrudb user, and the patch was sent in by
Ross McFarland.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665487 13f79535-47bb-0310-9956-ffa450edef68
2008-02-19 22:47:29 +00:00
..
cocoa/src Thrift: Whitespace cleanup. 2008-02-06 22:18:40 +00:00
cpp Thrift: Add "#include <cstdlib>" in a few places and s/malloc/std::malloc/ 2008-02-19 22:47:29 +00:00
csharp Thrift: Whitespace cleanup. 2008-02-06 22:18:40 +00:00
erl [erl-thrift] tiny change to exception message for tSocket:connect 2008-02-13 00:48:15 +00:00
hs Thrift haskell getTransport working 2008-02-11 22:59:01 +00:00
java Thrift: Distinguish between string and binary types in C++ and Java. 2008-02-15 01:38:18 +00:00
ocaml Thrift: Whitespace cleanup. 2008-02-06 22:18:40 +00:00
perl Thrift: Whitespace cleanup. 2008-02-06 22:18:40 +00:00
php [thrift] grrrr ... TPhpStream can read the string '0' 2008-02-13 22:41:03 +00:00
py Thrift: Fix a bug in the skip function in Python's fastbinary.c 2008-02-14 20:20:08 +00:00
rb Thrift: Whitespace cleanup. 2008-02-06 22:18:40 +00:00
st Merging in some Smalltalk changes from Patrick Collison 2007-11-21 08:43:35 +00:00
Makefile.am Thrift: Update some makefiles to make "make dist" work. 2008-02-06 22:10:26 +00:00