Commit a71e3d40 authored by Sean McBride's avatar Sean McBride

replaced #include <stdlib.h> with <cstdlib>

The former is more C, the latter is more C++.

Change-Id: Id70453243c3d1b3e9cf85aacce5a167da19ffec6
parent 6ba34d7d
#include <stdio.h>
#include <stdlib.h>
#include <cstdlib>
#if !defined(_WIN32) || defined(__CYGWIN__)
# include <sys/types.h>
# include <sys/socket.h>
......
#include <stdio.h>
#include <stdlib.h>
#include <cstdlib>
int main()
{
......
......@@ -16,7 +16,7 @@
#include "vtkMath.h"
#include "vtkObjectFactory.h"
#include <stdlib.h>
#include <cstdlib>
#include <math.h>
vtkStandardNewMacro(vtkMatrix3x3);
......
......@@ -16,7 +16,7 @@
#include "vtkMath.h"
#include "vtkObjectFactory.h"
#include <stdlib.h>
#include <cstdlib>
#include <math.h>
vtkStandardNewMacro(vtkMatrix4x4);
......
......@@ -81,7 +81,7 @@ void vtkDirectory::PrintSelf(ostream& os, vtkIndent indent)
#include <direct.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <cstdlib>
#include <string.h>
#include <sys/types.h>
......
......@@ -16,7 +16,7 @@
#include "vtkObjectFactory.h"
#include "vtkMath.h"
#include <cmath>
#include <stdlib.h>
#include <cstdlib>
vtkStandardNewMacro(vtkCylindricalTransform);
......
......@@ -16,7 +16,7 @@
#include "vtkMath.h"
#include "vtkObjectFactory.h"
#include <stdlib.h>
#include <cstdlib>
vtkStandardNewMacro(vtkPerspectiveTransform);
......
......@@ -16,7 +16,7 @@
#include "vtkObjectFactory.h"
#include "vtkMath.h"
#include <cmath>
#include <stdlib.h>
#include <cstdlib>
vtkStandardNewMacro(vtkSphericalTransform);
......
......@@ -16,7 +16,7 @@
#include "vtkMath.h"
#include "vtkObjectFactory.h"
#include <stdlib.h>
#include <cstdlib>
vtkStandardNewMacro(vtkTransform);
......
......@@ -17,7 +17,7 @@
#include "vtkMath.h"
#include "vtkObjectFactory.h"
#include <stdlib.h>
#include <cstdlib>
vtkStandardNewMacro(vtkTransform2D);
......
......@@ -23,7 +23,7 @@
#include "vtkPointData.h"
#include "vtkPoints.h"
#include "vtkPolyData.h"
#include <stdlib.h>
#include <cstdlib>
vtkStandardNewMacro(vtkMaskPoints);
......
......@@ -36,7 +36,7 @@
#include "vtkDataArray.h"
#include "vtkMergePoints.h"
#include "vtkKdTree.h"
#include <stdlib.h>
#include <cstdlib>
#include <map>
#include <algorithm>
......
......@@ -21,7 +21,7 @@
#include "vtkDSPFilterDefinition.h"
#include "vtkObjectFactory.h"
#include <stdlib.h>
#include <cstdlib>
#include <map>
#include <algorithm>
#include <vector>
......
......@@ -38,7 +38,7 @@
#include "vtkDoubleArray.h"
#include "vtkTable.h"
#include <stdlib.h>
#include <cstdlib>
#include <string>
#include <vector>
#include <vtksys/ios/sstream>
......
......@@ -26,7 +26,7 @@
#include "vtkArray.h"
#include "engine.h"
#include <stdlib.h>
#include <cstdlib>
#include <string>
#include <vtksys/ios/sstream>
#include <sys/stat.h>
......
......@@ -41,7 +41,7 @@
#include "vtkMultiPieceDataSet.h"
#include "vtkStringArray.h"
#include <stdlib.h>
#include <cstdlib>
#include <string>
#include <vector>
#include <vtksys/ios/sstream>
......
......@@ -60,7 +60,7 @@
#include "vtk_exodusII.h"
#include <stdio.h>
#include <stdlib.h> /* for free() */
#include <cstdlib> /* for free() */
#include <string.h> /* for memset() */
#include <ctype.h> /* for toupper(), isgraph() */
#include <math.h> /* for cos() */
......
......@@ -64,7 +64,7 @@ POSSIBILITY OF SUCH DAMAGES.
#include "vtkMINC.h"
#include "vtk_netcdf.h"
#include <stdlib.h>
#include <cstdlib>
#include <ctype.h>
#include <float.h>
#include <string>
......
......@@ -70,7 +70,7 @@ POSSIBILITY OF SUCH DAMAGES.
#include "vtkMINC.h"
#include "vtk_netcdf.h"
#include <stdlib.h>
#include <cstdlib>
#include <ctype.h>
#include <float.h>
#include <string>
......
......@@ -80,7 +80,7 @@ POSSIBILITY OF SUCH DAMAGES.
#include <unistd.h>
#endif
#include <stdlib.h>
#include <cstdlib>
#include <float.h>
#include <time.h>
#include <string>
......
#include "vtkAngleRepresentation2D.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkAngleRepresentation3D.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
......@@ -2,7 +2,7 @@
#include "vtkAngleRepresentation2D.h"
#include "vtkAngleRepresentation3D.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkBalloonRepresentation.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "vtkImageData.h"
......
......@@ -7,7 +7,7 @@
#include "vtkImageData.h"
#include "vtkStdString.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkBiDimensionalRepresentation2D.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "vtkImageData.h"
......
#include "vtkBiDimensionalWidget.h"
#include "vtkBiDimensionalRepresentation2D.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkBorderWidget.h"
#include "vtkBorderRepresentation.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkCaptionRepresentation.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "vtkImageData.h"
......
......@@ -2,7 +2,7 @@
#include "vtkCaptionRepresentation.h"
#include "vtkCaptionActor2D.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkConstrainedPointHandleRepresentation.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkHoverWidget.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkImplicitPlaneRepresentation.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkImplicitPlaneWidget2.h"
#include "vtkImplicitPlaneRepresentation.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkLineRepresentation.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkLineWidget2.h"
#include "vtkLineRepresentation.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkOrientedPolygonalHandleRepresentation3D.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkPointHandleRepresentation2D.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkPointHandleRepresentation3D.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkPolygonalHandleRepresentation3D.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkSeedRepresentation.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "vtkImageData.h"
......
......@@ -2,7 +2,7 @@
#include "vtkSeedRepresentation.h"
#include "vtkHandleWidget.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkSphereHandleRepresentation.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkSplineRepresentation.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkSplineWidget2.h"
#include "vtkSplineRepresentation.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
#include "vtkTextRepresentation.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "vtkImageData.h"
......
......@@ -2,7 +2,7 @@
#include "vtkTextRepresentation.h"
#include "vtkTextActor.h"
#include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include "WidgetTestingMacros.h"
......
......@@ -22,7 +22,7 @@
#include "vtkStdString.h"
#include "vtkTexture.h"
#include <stdlib.h>
#include <cstdlib>
#include <vtksys/ios/sstream>
#include <map>
......
......@@ -16,7 +16,7 @@
#include "vtkRenderWindow.h"
#include "vtkObjectFactory.h"
#include <stdlib.h>
#include <cstdlib>
vtkStandardNewMacro(vtkRendererCollection);
......
......@@ -48,7 +48,7 @@
#include <vector>
#include <map>
#include <stdlib.h>
#include <cstdlib>
// WORKAROUND:
//
......
......@@ -13,7 +13,7 @@
=========================================================================*/
#include <stdio.h>
#include <stdlib.h>
#include <cstdlib>
#include <string.h>
#include <math.h>
......
......@@ -13,7 +13,7 @@
=========================================================================*/
#include <stdio.h>
#include <stdlib.h>
#include <cstdlib>
#include <string.h>
#include <math.h>
......
......@@ -13,7 +13,7 @@
=========================================================================*/
#include <stdio.h>
#include <stdlib.h>
#include <cstdlib>
#include <string.h>
// We have to define XTSTRINGDEFINES (used in X11/StringDefs.h and X11/Shell.h)
......
......@@ -32,7 +32,7 @@
#endif
#endif
#include <stdlib.h>
#include <cstdlib>
#define VTK_ALL_EVENTS_MASK \
KeyPressMask|KeyReleaseMask|ButtonPressMask|ButtonReleaseMask| \
......
......@@ -42,7 +42,7 @@
#endif
#endif
#include <stdlib.h>
#include <cstdlib>
// for uintptr_t
#ifdef _MSC_VER
......
......@@ -67,7 +67,7 @@
#include "vtkImageResample.h"
#include <sstream>
#include <stdlib.h> // qsort()
#include <cstdlib> // qsort()
#include "vtkDataSetTriangleFilter.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment