Permalink
Browse files

STYLE: Replace "C" headers with "C++" headers

\#!/bin/bash

for hdr in  \
      assert \
      ctype \
      errno \
      float \
      limits \
      locale \
      math \
      setjmp \
      signal \
      stdarg \
      stddef \
      stdio \
      stdlib \
      string \
      time \
      wchar \
      wctype \
      iso646 \
      complex \
      fenv \
      inttypes \
      stdbool \
      stdint \
      tgmath \
      stdnoreturn \
      stdatomic \
      threads \
      uchar \
      stdalign \
               ; do
  ~/Dropbox/scripts/variable_conversions.sh "\"${hdr}.h\"" "<c${hdr}>"
  ~/Dropbox/scripts/variable_conversions.sh "<${hdr}.h>" "<c${hdr}>"
done
  • Loading branch information...
1 parent 01c49b4 commit b7ae7c3d150f9ce1133c0f91ae3925f176dc0fbe @hjmjohnson hjmjohnson committed Oct 4, 2012
Showing with 102 additions and 104 deletions.
  1. +1 −1 BRAINSABC/TestSuite/simpleEM.cxx
  2. +1 −1 BRAINSABC/brainseg/AtlasDefinition.cxx
  3. +1 −1 BRAINSABC/brainseg/BRAINSABC.cxx
  4. +2 −2 BRAINSABC/brainseg/EMSegmentationFilter.hxx
  5. +2 −2 BRAINSABC/brainseg/LLSBiasCorrector.hxx
  6. +3 −3 BRAINSABC/brainseg/QHullMSTClusteringProcess.cxx
  7. +3 −3 BRAINSABC/qhull/qhull.h
  8. +9 −9 BRAINSABC/qhull/qhull_a.h
  9. +2 −2 BRAINSABC/qhull/qhull_interface.cpp
  10. +3 −3 BRAINSABC/qhull/vtkQhullDelaunay3D.cxx
  11. +1 −1 BRAINSCommonLib/BRAINSFitHelper.h
  12. +1 −1 BRAINSCommonLib/BRAINSFitHelperTemplate.h
  13. +1 −1 BRAINSCommonLib/CreateField.hxx
  14. +1 −1 BRAINSCommonLib/CrossOverAffineSystem.h
  15. +1 −1 BRAINSCommonLib/DebugImageViewerClient.h
  16. +1 −1 BRAINSCommonLib/PrettyPrintTable.h
  17. +1 −1 BRAINSCommonLib/genericRegistrationHelper.h
  18. +3 −3 BRAINSCommonLib/itkInverseConsistentLandmarks.hxx
  19. +1 −1 BRAINSCommonLib/itkV3TestKernel/include/itkFilterWatcher.h
  20. +1 −1 BRAINSConstellationDetector/TestSuite/VersorTester.cxx
  21. +2 −2 BRAINSConstellationDetector/gui/BRAINSConstellationDetectorGUI.cxx
  22. +1 −1 BRAINSConstellationDetector/gui/QVTKInteractionCallback.cxx
  23. +1 −1 BRAINSConstellationDetector/gui/include/QLabelList.h
  24. +1 −1 BRAINSConstellationDetector/gui/include/QVTKInteractionCallback.h
  25. +1 −1 BRAINSConstellationDetector/landmarkStatistics/GenerateAverageLmkFile.cxx
  26. +1 −1 BRAINSConstellationDetector/landmarkStatistics/LmkStatistics.cxx
  27. +1 −1 BRAINSConstellationDetector/src/BRAINSAlignMSP.cxx
  28. +2 −2 BRAINSConstellationDetector/src/BRAINSConstellationDetectorPrimary.h
  29. +2 −2 BRAINSConstellationDetector/src/BRAINSConstellationModeler.cxx
  30. +1 −1 BRAINSConstellationDetector/src/BRAINSHoughEyeDetector.h
  31. +1 −1 BRAINSConstellationDetector/src/insertMidACPCpoint.cxx
  32. +2 −2 BRAINSConstellationDetector/src/landmarkIO.h
  33. +2 −2 BRAINSConstellationDetector/src/landmarksConstellationAligner.cxx
  34. +5 −5 BRAINSConstellationDetector/src/landmarksConstellationCommon.h
  35. +2 −2 BRAINSConstellationDetector/src/landmarksConstellationModelIO.h
  36. +1 −1 BRAINSConstellationDetector/src/landmarksDataSet.h
  37. +5 −5 BRAINSContinuousClass/liblinear-1.8/linear.cpp
  38. +4 −4 BRAINSContinuousClass/liblinear-1.8/tron.cpp
  39. +1 −1 BRAINSCut/BRAINSCutConfiguration/CompoundObjectBase.h
  40. +1 −1 BRAINSCut/BRAINSCutConfiguration/ElementParser.h
  41. +1 −1 BRAINSCut/BRAINSCutConfiguration/NumericValue.cxx
  42. +1 −1 BRAINSCut/BRAINSCutConfiguration/TrainingPrameters.h
  43. +1 −1 BRAINSCut/BRAINSCutConfiguration/XMLElementParser.h
  44. +0 −1 BRAINSCut/BRAINSCutUtilities.h
  45. +1 −1 BRAINSCut/BRAINSFeatureCreators/NoiseGenerator/itkThreadSafeMersenneTwisterRandomVariateGenerator.h
  46. +0 −1 BRAINSCut/ShuffleVectors.h
  47. +1 −1 BRAINSDemonWarp/BRAINSDemonWarpTemplates.h
  48. +2 −2 BRAINSFit/TestSuite/makexfrmedImage.cxx
  49. +1 −1 BRAINSMush/BRAINSMush.cxx
  50. +1 −1 BRAINSMush/BRAINSMush.h
  51. +1 −1 BRAINSMush/itkMixtureStatisticCostFunction.hxx
  52. +2 −2 BRAINSSurfaceTools/BRAINSSurfaceCommon/itkQuadEdgeMeshVTKPolyDataReader.hxx
  53. +2 −2 BRAINSSurfaceTools/BRAINSSurfaceGeneration/BRAINSMeasureSurface.cxx
  54. +1 −1 DebugImageViewer/DebugImageViewerClient.h
  55. +1 −1 GTRACT/Cmdline/gtractAverageBvalues.cxx
  56. +1 −1 GTRACT/Cmdline/gtractClipAnisotropy.cxx
  57. +3 −3 GTRACT/Cmdline/gtractTransformToDisplacementField.cxx
  58. +1 −1 GTRACT/Common/algo.h
  59. +1 −1 GTRACT/Common/itkDtiStreamlineTrackingFilter.hxx
  60. +1 −1 ICCDEF/iccdefRegistration_New.cxx
  61. +3 −3 ImageCalculator/ImageCalculatorUtils.cxx
@@ -29,7 +29,7 @@
#include <string>
#include <sstream>
-#include <stdlib.h>
+#include <cstdlib>
// template <class inputPixelType,class outputPixelType,class priorPixelType>
template <class priorPixelType, class inputPixelType>
int simpleRunEMS( std::string t1Volume,
@@ -2,7 +2,7 @@
#include <expat.h>
#include <iostream>
#include <fstream>
-#include <stdlib.h>
+#include <cstdlib>
#include <itksys/SystemTools.hxx>
namespace // anon
@@ -45,7 +45,7 @@ typedef ShortImageType::Pointer ShortImagePointer;
#include <sstream>
#include <map>
-#include <stdlib.h>
+#include <cstdlib>
#include <StandardizeMaskIntensity.h>
#include "BRAINSABCCLP.h"
@@ -6,8 +6,8 @@
#include <sstream>
#include <iomanip>
-#include <math.h>
-#include <stdlib.h>
+#include <cmath>
+#include <cstdlib>
#include "itkAddImageFilter.h"
#include "itkBSplineDownsampleImageFilter.h"
@@ -1,8 +1,8 @@
#ifndef __LLSBiasCorrector_hxx
#define __LLSBiasCorrector_hxx
-#include <float.h>
-#include <math.h>
+#include <cfloat>
+#include <cmath>
#include <cmath>
#include <iostream>
@@ -3,9 +3,9 @@
#include <iostream>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
extern "C"
{
View
@@ -29,9 +29,9 @@
/*=========================== -included files ==============*/
-#include <setjmp.h>
-#include <float.h>
-#include <time.h>
+#include <csetjmp>
+#include <cfloat>
+#include <ctime>
#if __MWERKS__ && __POWERPC__
#include <SIOUX.h>
View
@@ -22,15 +22,15 @@
#ifndef qhDEFqhulla
#define qhDEFqhulla
-#include <stdio.h>
-#include <stdlib.h>
-#include <setjmp.h>
-#include <string.h>
-#include <math.h>
-#include <float.h> /* some compilers will not need float.h */
-#include <limits.h>
-#include <time.h>
-#include <ctype.h>
+#include <cstdio>
+#include <cstdlib>
+#include <csetjmp>
+#include <cstring>
+#include <cmath>
+#include <cfloat> /* some compilers will not need float.h */
+#include <climits>
+#include <ctime>
+#include <cctype>
/*** uncomment here and qset.c
if string.h does not define memcpy()
#include <memory.h>
@@ -27,8 +27,8 @@
extern "C"
{
#endif
-#include <stdio.h>
-#include <stdlib.h>
+#include <cstdio>
+#include <cstdlib>
#include <qhull/qhull.h>
#include <qhull/mem.h>
#include <qhull/qset.h>
@@ -21,9 +21,9 @@
#include "vtkQhullDelaunay3D.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
extern "C"
{
@@ -16,7 +16,7 @@
#include <fstream>
#include <vector>
#include <string>
-#include <stdio.h>
+#include <cstdio>
#include "itkImageRandomNonRepeatingConstIteratorWithIndex.h"
#include "BRAINSCommonLibWin32Header.h"
@@ -15,7 +15,7 @@
#include <fstream>
#include <vector>
#include <string>
-#include <stdio.h>
+#include <cstdio>
#include "itkIO.h"
#include "itkVector.h"
@@ -4,7 +4,7 @@
#include "itkIOCommon.h"
#include "itkVectorIndexSelectionCastImageFilter.h"
#include "itkIO.h"
-#include <errno.h>
+#include <cerrno>
namespace itk
{
@@ -16,7 +16,7 @@
#include <vnl/vnl_vector.h>
#include <vnl/algo/vnl_svd.h>
#include <vcl_cmath.h>
-#include <stdio.h>
+#include <cstdio>
/*
* The "Coordinate System" problem is closely related to generation
@@ -12,7 +12,7 @@
#include <itkSpatialOrientation.h>
#include <itkSpatialOrientationAdapter.h>
#include <itkOrientImageFilter.h>
-#include <stdio.h>
+#include <cstdio>
// #include <itkIO.h>
// #include <itkIO2.h>
@@ -1,6 +1,6 @@
#ifndef __PrettyPrintTable_h
#define __PrettyPrintTable_h
-#include <stdio.h>
+#include <cstdio>
#include <vector>
#include <string>
#include <ostream>
@@ -51,7 +51,7 @@
#include "itkIO.h"
-#include <stdio.h>
+#include <cstdio>
enum
{
View
@@ -15,9 +15,9 @@
#ifndef __itkInverseConsistentLandmarks_hxx
#define __itkInverseConsistentLandmarks_hxx
#include "itkInverseConsistentLandmarks.h"
-#include <stdio.h>
-#include <time.h>
-#include <math.h>
+#include <cstdio>
+#include <ctime>
+#include <cmath>
#include <string>
#include <iostream>
@@ -20,7 +20,7 @@
#include "itkCommand.h"
#include "itkProcessObject.h"
-#include <time.h>
+#include <ctime>
// The following class is a convenience to watch the progress of a filter
class FilterWatcher
@@ -1,5 +1,5 @@
#include <sstream>
-#include <math.h>
+#include <cmath>
#include <vnl/vnl_math.h>
#include <itkPoint.h>
@@ -41,10 +41,10 @@
#include <QPushButton>
#include <QListWidget>
-#include "stdio.h"
+#include <cstdio>
#include <iostream>
#include <fstream>
-#include "string.h"
+#include <cstring>
#include <map>
#include <vector>
@@ -13,7 +13,7 @@
#include "vtkRendererCollection.h"
#include "vtkRenderWindow.h"
#include "vtkInteractorStyleImage.h"
-#include "math.h"
+#include <cmath>
// The mouse motion callback, to turn "Slicing" on and off
void QVTKInteractionCallback::Execute(vtkObject *, unsigned long myEvent, void *)
@@ -18,7 +18,7 @@
#include <QColor>
#include <QPalette>
-#include "assert.h"
+#include <cassert>
#include <iostream>
#include <map>
#include <vector>
@@ -14,7 +14,7 @@
#include <QObject>
#include <QString>
-#include "math.h"
+#include <cmath>
#include <QDebug>
@@ -18,7 +18,7 @@
#include "itkImage.h"
-#include "math.h"
+#include <cmath>
#include "Slicer3LandmarkIO.h"
int main( int argc, char * argv[] )
@@ -33,7 +33,7 @@ case n: PCn1 PCn2
#include "itkImage.h"
-#include "math.h"
+#include <cmath>
#include "Slicer3LandmarkIO.h"
int main( int argc, char * argv[] )
@@ -28,7 +28,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sstream>
-#include <math.h>
+#include <cmath>
#include <itkIntensityWindowingImageFilter.h>
#include "BRAINSThreadControl.h"
#include "landmarksConstellationCommon.h"
@@ -20,10 +20,10 @@
#include "itkTransformFileWriter.h"
#include "itkVersorRigid3DTransform.h"
-#include "stdio.h"
+#include <cstdio>
#include <iostream>
#include <fstream>
-#include "string.h"
+#include <cstring>
#include <map>
class BRAINSConstellationDetectorPrimary
@@ -29,8 +29,8 @@
*/
#include <fstream>
-#include "string.h"
-#include "math.h"
+#include <cstring>
+#include <cmath>
#include <map>
#include "BRAINSThreadControl.h"
@@ -18,7 +18,7 @@
#include "itkRescaleIntensityImageFilter.h"
#include "itkImageFileWriter.h"
-#include "string.h"
+#include <cstring>
namespace itk
{
@@ -15,7 +15,7 @@
#include "itkImage.h"
-#include "math.h"
+#include <cmath>
#include "Slicer3LandmarkIO.h"
#include "insertMidACPCpointCLP.h"
@@ -16,9 +16,9 @@
#include "itkImageFileReader.h"
#include "itkImageDuplicator.h"
-#include "string.h"
+#include <cstring>
#include <map>
-#include "stdio.h"
+#include <cstdio>
#include <vector>
#include <vnl/vnl_matlab_read.h>
@@ -16,10 +16,10 @@
#include "itkVersorRigid3DTransform.h"
#include "itkEuler3DTransform.h"
-#include "stdio.h"
+#include <cstdio>
#include <iostream>
#include <fstream>
-#include "string.h"
+#include <cstring>
#include <map>
#include <vnl/vnl_cross.h>
@@ -13,21 +13,21 @@
// Use linear interpolation to keep the processing quick.
#define __QUICK_RUNS_APPROXIMATION__
-#include <stdio.h> // This include file should be removed, prefer constructs
+#include <cstdio> // This include file should be removed, prefer constructs
// from the std library
-#include <stdlib.h> // This include file should be removed, prefer constructs
+#include <cstdlib> // This include file should be removed, prefer constructs
// from the std library
-#include <math.h> // This include file should be removed, use vcl_math
+#include <cmath> // This include file should be removed, use vcl_math
// instead
#include <sys/types.h> // This include file should be removed, unix only
// non-portable
#include <sys/stat.h> // This include file should be removed, unix only
// non-portable
#include <unistd.h> // This include file should be removed, unix only
// non-portable
-#include <time.h> // This include file should be removed, unix only
+#include <ctime> // This include file should be removed, unix only
// non-portable
-#include <ctype.h> // This include file should be removed, use vcl_math
+#include <cctype> // This include file should be removed, use vcl_math
// instead
// #include <volume.h> //This include file should be
// removed
@@ -17,8 +17,8 @@
#include <vector>
#include <fstream>
#include <iostream>
-#include "math.h"
-#include "string.h"
+#include <cmath>
+#include <cstring>
#include <map>
inline void
@@ -11,7 +11,7 @@
#include <map>
#include <string>
#include <iostream>
-#include <stdlib.h>
+#include <cstdlib>
/*
* This class contains a single set of landmarks and it's associated intensity image file.
Oops, something went wrong.

0 comments on commit b7ae7c3

Please sign in to comment.