Skip to content

Commit 889f7ea

Browse files
committed
Remove blckerr.h
Move the two ERRCODE constants which are still in use to pdblock.cpp. Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent b0c9d5b commit 889f7ea

File tree

6 files changed

+20
-49
lines changed

6 files changed

+20
-49
lines changed

src/ccstruct/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ endif
1212

1313
pkginclude_HEADERS = publictypes.h
1414
noinst_HEADERS = \
15-
blamer.h blckerr.h blobbox.h blobs.h blread.h boxread.h boxword.h ccstruct.h coutln.h crakedge.h \
15+
blamer.h blobbox.h blobs.h blread.h boxread.h boxword.h \
16+
ccstruct.h coutln.h crakedge.h \
1617
debugpixa.h detlinefit.h dppoint.h fontinfo.h genblob.h \
1718
imagedata.h \
1819
ipoints.h \

src/ccstruct/blckerr.h

-29
This file was deleted.

src/ccstruct/ocrblock.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
22
* File: ocrblock.cpp (Formerly block.c)
33
* Description: BLOCK member functions and iterator functions.
4-
* Author: Ray Smith
5-
* Created: Fri Mar 15 09:41:28 GMT 1991
4+
* Author: Ray Smith
5+
* Created: Fri Mar 15 09:41:28 GMT 1991
66
*
77
* (C) Copyright 1991, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -20,7 +20,6 @@
2020
#include "ocrblock.h"
2121
#include <cstdlib>
2222
#include <memory> // std::unique_ptr
23-
#include "blckerr.h"
2423
#include "stepblob.h"
2524
#include "tprintf.h"
2625

src/ccstruct/pdblock.cpp

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
2-
* File: pdblock.cpp (Formerly pdblk.c)
2+
* File: pdblock.cpp
33
* Description: PDBLK member functions and iterator functions.
4-
* Author: Ray Smith
5-
* Created: Fri Mar 15 09:41:28 GMT 1991
4+
* Author: Ray Smith
5+
* Created: Fri Mar 15 09:41:28 GMT 1991
66
*
77
* (C) Copyright 1991, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -21,7 +21,6 @@
2121
#include <cstdlib>
2222
#include <memory> // std::unique_ptr
2323
#include "allheaders.h"
24-
#include "blckerr.h"
2524

2625
// Include automatically generated configuration file if running autoconf.
2726
#ifdef HAVE_CONFIG_H
@@ -30,6 +29,9 @@
3029

3130
#define BLOCK_LABEL_HEIGHT 150 //char height of block id
3231

32+
const ERRCODE BADBLOCKLINE = "Y coordinate in block out of bounds";
33+
const ERRCODE LOSTBLOCKLINE = "Can't find rectangle for line";
34+
3335
CLISTIZE (PDBLK)
3436
/**********************************************************************
3537
* PDBLK::PDBLK

src/ccstruct/werd.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*
1818
**********************************************************************/
1919

20-
#include "blckerr.h"
2120
#include "helpers.h"
2221
#include "linlsq.h"
2322
#include "werd.h"

src/ccstruct/werd.h

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
2-
* File: word.h
2+
* File: werd.h
33
* Description: Code for the WERD class.
4-
* Author: Ray Smith
5-
* Created: Tue Oct 08 14:32:12 BST 1991
4+
* Author: Ray Smith
5+
* Created: Tue Oct 08 14:32:12 BST 1991
66
*
77
* (C) Copyright 1991, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,15 +17,14 @@
1717
*
1818
**********************************************************************/
1919

20-
#ifndef WERD_H
21-
#define WERD_H
20+
#ifndef WERD_H
21+
#define WERD_H
2222

23-
#include "params.h"
24-
#include "bits16.h"
25-
#include "elst2.h"
26-
#include "strngs.h"
27-
#include "blckerr.h"
28-
#include "stepblob.h"
23+
#include "params.h"
24+
#include "bits16.h"
25+
#include "elst2.h"
26+
#include "strngs.h"
27+
#include "stepblob.h"
2928

3029
enum WERD_FLAGS
3130
{

0 commit comments

Comments
 (0)