@@ -121,7 +121,7 @@ void Textord::make_old_baselines(TO_BLOCK *block, // block to do
121
121
void Textord::correlate_lines (TO_BLOCK *block, float gradient) {
122
122
TO_ROW **rows; // array of ptrs
123
123
int rowcount; /* no of rows to do */
124
- register int rowindex; /* no of row */
124
+ int rowindex; /* no of row */
125
125
// iterator
126
126
TO_ROW_IT row_it = block->get_rows ();
127
127
@@ -164,8 +164,8 @@ void Textord::correlate_neighbours(TO_BLOCK *block, // block rows are in.
164
164
TO_ROW **rows, // rows of block.
165
165
int rowcount) { // no of rows to do.
166
166
TO_ROW *row; /* current row */
167
- register int rowindex; /* no of row */
168
- register int otherrow; /* second row */
167
+ int rowindex; /* no of row */
168
+ int otherrow; /* second row */
169
169
int upperrow; /* row above to use */
170
170
int lowerrow; /* row below to use */
171
171
float biggest;
@@ -220,7 +220,7 @@ int Textord::correlate_with_stats(TO_ROW **rows, // rows of block.
220
220
int rowcount, // no of rows to do.
221
221
TO_BLOCK* block) {
222
222
TO_ROW *row; /* current row */
223
- register int rowindex; /* no of row */
223
+ int rowindex; /* no of row */
224
224
float lineheight; /* mean x-height */
225
225
float ascheight; /* average ascenders */
226
226
float minascheight; /* min allowed ascheight */
@@ -447,7 +447,7 @@ int get_blob_coords( //get boxes
447
447
) {
448
448
// blobs
449
449
BLOBNBOX_IT blob_it = row->blob_list ();
450
- register int blobindex; /* no along text line */
450
+ int blobindex; /* no along text line */
451
451
int losscount; // lost blobs
452
452
int maxlosscount; // greatest lost blobs
453
453
/* height stat collection */
@@ -719,7 +719,7 @@ QSPLINE * spline, /*curve to fit to */
719
719
float jumplimit, /* allowed delta change */
720
720
float ydiffs[] /* diff from spline */
721
721
) {
722
- register int blobindex; /* no along text line */
722
+ int blobindex; /* no along text line */
723
723
int bestpart; /* best new partition */
724
724
int biggestpart; /* part with most members */
725
725
float diff; /* difference from line */
@@ -800,7 +800,7 @@ float jumplimit /*allowed delta change */
800
800
) {
801
801
BOOL8 found_one; // found a bestpart blob
802
802
BOOL8 close_one; // found was close enough
803
- register int blobindex; /* no along text line */
803
+ int blobindex; /* no along text line */
804
804
int prevpart; // previous iteration
805
805
int runlength; // no in this part
806
806
float diff; /* difference from line */
@@ -909,7 +909,7 @@ int blobcount, /*no of blobs */
909
909
QSPLINE * spline, /* approximating spline */
910
910
float ydiffs[] /* output */
911
911
) {
912
- register int blobindex; /* current blob */
912
+ int blobindex; /* current blob */
913
913
int xcentre; /* xcoord */
914
914
int lastx; /* last xcentre */
915
915
float diffsum; /* sum of diffs */
@@ -963,7 +963,7 @@ float* drift,
963
963
float * lastdelta,
964
964
int *partcount /* no of partitions */
965
965
) {
966
- register int partition; /* partition no */
966
+ int partition; /* partition no */
967
967
int bestpart; /* best new partition */
968
968
float bestdelta; /* best gap from a part */
969
969
float delta; /* diff from part */
@@ -1028,7 +1028,7 @@ int *partcount /*no of partitions */
1028
1028
// int blobcount; /*no of blobs*/
1029
1029
// int bestpart; /*best partition*/
1030
1030
// {
1031
- // register int blobindex; /*no along text line*/
1031
+ // int blobindex; /*no along text line*/
1032
1032
// int runlength; /*run of same partition*/
1033
1033
// int bestrun; /*biggest runlength*/
1034
1034
//
@@ -1089,7 +1089,7 @@ int bestpart, /*best new partition */
1089
1089
int xcoords[], /* points to work on */
1090
1090
int ycoords[] /* points to work on */
1091
1091
) {
1092
- register int blobindex; /* no along text line */
1092
+ int blobindex; /* no along text line */
1093
1093
int pointcount; /* no of points */
1094
1094
1095
1095
pointcount = 0 ;
@@ -1120,8 +1120,8 @@ int ycoords[], /*points to work on */
1120
1120
int degree, int pointcount, /* no of points */
1121
1121
int xstarts[] // result
1122
1122
) {
1123
- register int ptindex; /* no along text line */
1124
- register int segment; /* partition no */
1123
+ int ptindex; /* no along text line */
1124
+ int segment; /* partition no */
1125
1125
int lastmin, lastmax; /* possible turn points */
1126
1126
int turnpoints[SPLINESIZE]; /* good turning points */
1127
1127
int turncount; /* no of turning points */
@@ -1245,7 +1245,7 @@ int xstarts[], //result
1245
1245
int &segments // no of segments
1246
1246
) {
1247
1247
BOOL8 doneany; // return value
1248
- register int segment; /* partition no */
1248
+ int segment; /* partition no */
1249
1249
int startindex, centreindex, endindex;
1250
1250
float leftcoord, rightcoord;
1251
1251
int leftindex, rightindex;
@@ -1377,8 +1377,8 @@ int partsizes[], /*size of each part */
1377
1377
int partcount, /* no of partitions */
1378
1378
int bestpart /* biggest partition */
1379
1379
) {
1380
- register int blobindex; /* index of blob */
1381
- register int partition; /* current partition */
1380
+ int blobindex; /* index of blob */
1381
+ int partition; /* current partition */
1382
1382
int xcentre; /* centre of blob */
1383
1383
int poscount; /* count of best up step */
1384
1384
int negcount; /* count of best down step */
@@ -1459,7 +1459,7 @@ int blobcount, /*blobs in blobcoords */
1459
1459
QSPLINE * baseline, /* established */
1460
1460
float jumplimit /* min ascender height */
1461
1461
) {
1462
- register int blobindex; /* current blob */
1462
+ int blobindex; /* current blob */
1463
1463
/* height statistics */
1464
1464
STATS heightstat (0 , MAXHEIGHT);
1465
1465
int height; /* height of blob */
@@ -1469,7 +1469,7 @@ float jumplimit /*min ascender height */
1469
1469
int asccount; /* no of ascenders */
1470
1470
float xsum; /* xheight sum */
1471
1471
int xcount; /* xheight count */
1472
- register float diff; /* height difference */
1472
+ float diff; /* height difference */
1473
1473
1474
1474
if (blobcount > 1 ) {
1475
1475
for (blobindex = 0 ; blobindex < blobcount; blobindex++) {
0 commit comments