Skip to content

Commit db37fe0

Browse files
rouault-botrouault
authored andcommitted
Apply fix_gdal_block_headers.py
1 parent 590dc85 commit db37fe0

File tree

1,273 files changed

+11498
-11497
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,273 files changed

+11498
-11497
lines changed

alg/delaunay.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
#endif /* HAVE_INTERNAL_OR_EXTERNAL_QHULL*/
7373

7474
/************************************************************************/
75-
/* GDALHasTriangulation() */
75+
/* GDALHasTriangulation() */
7676
/************************************************************************/
7777

7878
/** Returns if GDAL is built with Delaunay triangulation support.
@@ -90,7 +90,7 @@ int GDALHasTriangulation()
9090
}
9191

9292
/************************************************************************/
93-
/* GDALTriangulationCreateDelaunay() */
93+
/* GDALTriangulationCreateDelaunay() */
9494
/************************************************************************/
9595

9696
/** Computes a Delaunay triangulation of the passed points
@@ -274,7 +274,7 @@ void GDALTriangulationFree(GDALTriangulation *psDT)
274274
}
275275

276276
/************************************************************************/
277-
/* GDALTriangulationComputeBarycentricCoefficients() */
277+
/* GDALTriangulationComputeBarycentricCoefficients() */
278278
/************************************************************************/
279279

280280
/** Computes barycentric coefficients for each triangles of the triangulation.
@@ -344,7 +344,7 @@ int GDALTriangulationComputeBarycentricCoefficients(GDALTriangulation *psDT,
344344
}
345345

346346
/************************************************************************/
347-
/* GDALTriangulationComputeBarycentricCoordinates() */
347+
/* GDALTriangulationComputeBarycentricCoordinates() */
348348
/************************************************************************/
349349

350350
#define BARYC_COORD_L1(psCoeffs, dfX, dfY) \
@@ -391,7 +391,7 @@ int GDALTriangulationComputeBarycentricCoordinates(
391391
}
392392

393393
/************************************************************************/
394-
/* GDALTriangulationFindFacetBruteForce() */
394+
/* GDALTriangulationFindFacetBruteForce() */
395395
/************************************************************************/
396396

397397
#define EPS 1e-10
@@ -483,7 +483,7 @@ int GDALTriangulationFindFacetBruteForce(const GDALTriangulation *psDT,
483483
}
484484

485485
/************************************************************************/
486-
/* GDALTriangulationFindFacetDirected() */
486+
/* GDALTriangulationFindFacetDirected() */
487487
/************************************************************************/
488488

489489
#define EPS 1e-10

alg/gdal_alg.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ bool CPL_DLL GDALIsLineOfSightVisible(
362362
int *pnyTerrainIntersection, CSLConstList papszOptions);
363363

364364
/************************************************************************/
365-
/* Rasterizer API - geometries burned into GDAL raster. */
365+
/* Rasterizer API - geometries burned into GDAL raster. */
366366
/************************************************************************/
367367

368368
CPLErr CPL_DLL GDALRasterizeGeometries(
@@ -393,7 +393,7 @@ CPLErr CPL_DLL GDALRasterizeLayersBuf(
393393
char **papszOptions, GDALProgressFunc pfnProgress, void *pProgressArg);
394394

395395
/************************************************************************/
396-
/* Gridding interface. */
396+
/* Gridding interface. */
397397
/************************************************************************/
398398

399399
/** Gridding Algorithms */
@@ -634,7 +634,7 @@ GDAL_GCP CPL_DLL *GDALComputeMatchingPoints(GDALDatasetH hFirstImage,
634634
int *pnGCPCount);
635635

636636
/************************************************************************/
637-
/* Delaunay triangulation interface. */
637+
/* Delaunay triangulation interface. */
638638
/************************************************************************/
639639

640640
/** Triangle fact */
@@ -725,7 +725,7 @@ GDALDatasetH CPL_DLL GDALApplyVerticalShiftGrid(GDALDatasetH hSrcDataset,
725725
;
726726

727727
/************************************************************************/
728-
/* Zonal statistics interface */
728+
/* Zonal statistics interface */
729729
/************************************************************************/
730730

731731
CPLErr CPL_DLL GDALZonalStats(GDALDatasetH hSrcDS, GDALDatasetH hWeightsDS,
@@ -734,7 +734,7 @@ CPLErr CPL_DLL GDALZonalStats(GDALDatasetH hSrcDS, GDALDatasetH hWeightsDS,
734734
GDALProgressFunc pfnProgress, void *pProgressArg);
735735

736736
/************************************************************************/
737-
/* Hilbert encoding */
737+
/* Hilbert encoding */
738738
/************************************************************************/
739739

740740
/** Provides a Hilbert code describing the location of a specified point within

alg/gdal_alg_priv.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ typedef enum
7373
} GDALRasterizeOptim;
7474

7575
/************************************************************************/
76-
/* Low level rasterizer API. */
76+
/* Low level rasterizer API. */
7777
/************************************************************************/
7878

7979
typedef void (*llScanlineFunc)(GDALRasterizeInfo *, int, int, int, double);
@@ -339,7 +339,7 @@ typedef struct
339339
} GDALGenImgProjTransformInfo;
340340

341341
/************************************************************************/
342-
/* Color table related */
342+
/* Color table related */
343343
/************************************************************************/
344344

345345
// Definitions exists for T = GUInt32 and T = GUIntBig.
@@ -366,7 +366,7 @@ int GDALDitherRGB2PCTInternal(GDALRasterBandH hRed, GDALRasterBandH hGreen,
366366
(6 * sizeof(int) * PRIME_FOR_65536)
367367

368368
/************************************************************************/
369-
/* Float comparison function. */
369+
/* Float comparison function. */
370370
/************************************************************************/
371371

372372
/**

alg/gdal_crs.cpp

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static const char *const CRS_error_message[] = {
130130
"Failed to compute GCP transform: Internal error"};
131131

132132
/************************************************************************/
133-
/* GDALCreateSimilarGCPTransformer() */
133+
/* GDALCreateSimilarGCPTransformer() */
134134
/************************************************************************/
135135

136136
static void *GDALCreateSimilarGCPTransformer(void *hTransformArg,
@@ -587,11 +587,9 @@ struct MATRIX
587587

588588
#define M(row, col) m->v[(((row)-1) * (m->n)) + (col)-1]
589589

590-
/***************************************************************************/
591-
/*
592-
FUNCTION PROTOTYPES FOR STATIC (INTERNAL) FUNCTIONS
593-
*/
594-
/***************************************************************************/
590+
/************************************************************************/
591+
/* FUNCTION PROTOTYPES FOR STATIC (INTERNAL) FUNCTIONS */
592+
/************************************************************************/
595593

596594
static int calccoef(struct Control_Points *, double, double, double *, double *,
597595
int);
@@ -602,11 +600,9 @@ static int exactdet(struct Control_Points *, struct MATRIX *, double, double,
602600
static int solvemat(struct MATRIX *, double *, double *, double *, double *);
603601
static double term(int, double, double);
604602

605-
/***************************************************************************/
606-
/*
607-
TRANSFORM A SINGLE COORDINATE PAIR.
608-
*/
609-
/***************************************************************************/
603+
/************************************************************************/
604+
/* TRANSFORM A SINGLE COORDINATE PAIR. */
605+
/************************************************************************/
610606

611607
static int
612608
CRS_georef(double e1, /* EASTINGS TO BE TRANSFORMED */
@@ -671,11 +667,9 @@ CRS_georef(double e1, /* EASTINGS TO BE TRANSFORMED */
671667
return (MSUCCESS);
672668
}
673669

674-
/***************************************************************************/
675-
/*
676-
COMPUTE THE GEOREFFERENCING COEFFICIENTS BASED ON A SET OF CONTROL POINTS
677-
*/
678-
/***************************************************************************/
670+
/************************************************************************/
671+
/*COMPUTE THE GEOREFFERENCING COEFFICIENTS BASED ON A SET OF CONTROL POINTS*/
672+
/************************************************************************/
679673

680674
static int CRS_compute_georef_equations(GCPTransformInfo *psInfo,
681675
struct Control_Points *cp, double E12[],
@@ -719,11 +713,9 @@ static int CRS_compute_georef_equations(GCPTransformInfo *psInfo,
719713
return (status);
720714
}
721715

722-
/***************************************************************************/
723-
/*
724-
COMPUTE THE GEOREFFERENCING COEFFICIENTS BASED ON A SET OF CONTROL POINTS
725-
*/
726-
/***************************************************************************/
716+
/************************************************************************/
717+
/*COMPUTE THE GEOREFFERENCING COEFFICIENTS BASED ON A SET OF CONTROL POINTS*/
718+
/************************************************************************/
727719

728720
static int calccoef(struct Control_Points *cp, double x_mean, double y_mean,
729721
double E[], double N[], int order)

alg/gdal_homography.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static void *GDALCreateSimilarHomographyTransformer(void *hTransformArg,
7474
}
7575

7676
/************************************************************************/
77-
/* GDALCreateHomographyTransformer() */
77+
/* GDALCreateHomographyTransformer() */
7878
/************************************************************************/
7979

8080
/**
@@ -499,7 +499,7 @@ int GDALInvHomography(const double *padfHIn, double *padfHOut)
499499
}
500500

501501
/************************************************************************/
502-
/* GDALCreateHomographyTransformerFromGCPs() */
502+
/* GDALCreateHomographyTransformerFromGCPs() */
503503
/************************************************************************/
504504

505505
/**
@@ -555,7 +555,7 @@ void GDALDestroyHomographyTransformer(void *pTransformArg)
555555
}
556556

557557
/************************************************************************/
558-
/* GDALHomographyTransform() */
558+
/* GDALHomographyTransform() */
559559
/************************************************************************/
560560

561561
/**

alg/gdal_interpolateatpoint.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ bool GDALInterpolateAtPointImpl(GDALRasterBand *pBand,
409409
}
410410

411411
/************************************************************************/
412-
/* GDALInterpolateAtPoint() */
412+
/* GDALInterpolateAtPoint() */
413413
/************************************************************************/
414414

415415
bool GDALInterpolateAtPoint(GDALRasterBand *pBand,

alg/gdal_rpc.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ static void RPCTransformPoint(const GDALRPCTransformInfo *psRPCTransformInfo,
466466
}
467467

468468
/************************************************************************/
469-
/* GDALSerializeRPCDEMResample() */
469+
/* GDALSerializeRPCDEMResample() */
470470
/************************************************************************/
471471

472472
static const char *GDALSerializeRPCDEMResample(DEMResampleAlg eResampleAlg)
@@ -484,7 +484,7 @@ static const char *GDALSerializeRPCDEMResample(DEMResampleAlg eResampleAlg)
484484
}
485485

486486
/************************************************************************/
487-
/* GDALCreateSimilarRPCTransformer() */
487+
/* GDALCreateSimilarRPCTransformer() */
488488
/************************************************************************/
489489

490490
static void *GDALCreateSimilarRPCTransformer(void *hTransformArg,
@@ -539,7 +539,7 @@ static void *GDALCreateSimilarRPCTransformer(void *hTransformArg,
539539
}
540540

541541
/************************************************************************/
542-
/* GDALRPCGetHeightAtLongLat() */
542+
/* GDALRPCGetHeightAtLongLat() */
543543
/************************************************************************/
544544

545545
static int GDALRPCGetDEMHeight(GDALRPCTransformInfo *psTransform,
@@ -1402,7 +1402,7 @@ static int GDALRPCGetDEMHeight(GDALRPCTransformInfo *psTransform,
14021402
}
14031403

14041404
/************************************************************************/
1405-
/* RPCIsValidLongLat() */
1405+
/* RPCIsValidLongLat() */
14061406
/************************************************************************/
14071407

14081408
static bool RPCIsValidLongLat(const GDALRPCTransformInfo *psTransform,
@@ -1417,7 +1417,7 @@ static bool RPCIsValidLongLat(const GDALRPCTransformInfo *psTransform,
14171417
}
14181418

14191419
/************************************************************************/
1420-
/* GDALRPCTransformWholeLineWithDEM() */
1420+
/* GDALRPCTransformWholeLineWithDEM() */
14211421
/************************************************************************/
14221422

14231423
static int

alg/gdal_tps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ struct TPSTransformInfo
5454
};
5555

5656
/************************************************************************/
57-
/* GDALCreateSimilarTPSTransformer() */
57+
/* GDALCreateSimilarTPSTransformer() */
5858
/************************************************************************/
5959

6060
static void *GDALCreateSimilarTPSTransformer(void *hTransformArg,

alg/gdalapplyverticalshiftgrid.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <limits>
2727

2828
/************************************************************************/
29-
/* GDALApplyVSGDataset */
29+
/* GDALApplyVSGDataset */
3030
/************************************************************************/
3131

3232
class GDALApplyVSGDataset final : public GDALDataset
@@ -57,7 +57,7 @@ class GDALApplyVSGDataset final : public GDALDataset
5757
};
5858

5959
/************************************************************************/
60-
/* GDALApplyVSGRasterBand */
60+
/* GDALApplyVSGRasterBand */
6161
/************************************************************************/
6262

6363
class GDALApplyVSGRasterBand final : public GDALRasterBand
@@ -100,7 +100,7 @@ GDALApplyVSGDataset::GDALApplyVSGDataset(GDALDataset *poSrcDataset,
100100
}
101101

102102
/************************************************************************/
103-
/* ~GDALApplyVSGDataset() */
103+
/* ~GDALApplyVSGDataset() */
104104
/************************************************************************/
105105

106106
GDALApplyVSGDataset::~GDALApplyVSGDataset()
@@ -109,7 +109,7 @@ GDALApplyVSGDataset::~GDALApplyVSGDataset()
109109
}
110110

111111
/************************************************************************/
112-
/* CloseDependentDatasets() */
112+
/* CloseDependentDatasets() */
113113
/************************************************************************/
114114

115115
int GDALApplyVSGDataset::CloseDependentDatasets()
@@ -144,7 +144,7 @@ CPLErr GDALApplyVSGDataset::GetGeoTransform(GDALGeoTransform &gt) const
144144
}
145145

146146
/************************************************************************/
147-
/* GetSpatialRef() */
147+
/* GetSpatialRef() */
148148
/************************************************************************/
149149

150150
const OGRSpatialReference *GDALApplyVSGDataset::GetSpatialRef() const
@@ -153,7 +153,7 @@ const OGRSpatialReference *GDALApplyVSGDataset::GetSpatialRef() const
153153
}
154154

155155
/************************************************************************/
156-
/* IsInitOK() */
156+
/* IsInitOK() */
157157
/************************************************************************/
158158

159159
bool GDALApplyVSGDataset::IsInitOK()
@@ -199,7 +199,7 @@ double GDALApplyVSGRasterBand::GetNoDataValue(int *pbSuccess)
199199
}
200200

201201
/************************************************************************/
202-
/* IReadBlock() */
202+
/* IReadBlock() */
203203
/************************************************************************/
204204

205205
CPLErr GDALApplyVSGRasterBand::IReadBlock(int nBlockXOff, int nBlockYOff,
@@ -270,7 +270,7 @@ CPLErr GDALApplyVSGRasterBand::IReadBlock(int nBlockXOff, int nBlockYOff,
270270
}
271271

272272
/************************************************************************/
273-
/* GDALApplyVerticalShiftGrid() */
273+
/* GDALApplyVerticalShiftGrid() */
274274
/************************************************************************/
275275

276276
/** Apply a vertical shift grid to a source (DEM typically) dataset.
@@ -524,7 +524,7 @@ GDALDatasetH GDALApplyVerticalShiftGrid(GDALDatasetH hSrcDataset,
524524
}
525525

526526
/************************************************************************/
527-
/* GetProj4Filename() */
527+
/* GetProj4Filename() */
528528
/************************************************************************/
529529

530530
static CPLString GetProj4Filename(const char *pszFilename)
@@ -547,7 +547,7 @@ static CPLString GetProj4Filename(const char *pszFilename)
547547
}
548548

549549
/************************************************************************/
550-
/* GDALOpenVerticalShiftGrid() */
550+
/* GDALOpenVerticalShiftGrid() */
551551
/************************************************************************/
552552

553553
/** Load proj.4 geoidgrids as GDAL dataset

0 commit comments

Comments
 (0)