File tree 32 files changed +123
-202
lines changed
32 files changed +123
-202
lines changed Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: adaptions.cpp (Formerly adaptions.c)
3
3
* Description: Functions used to adapt to blobs already confidently
4
- * identified
5
- * Author: Chris Newton
6
- * Created: Thu Oct 7 10:17:28 BST 1993
4
+ * identified
5
+ * Author: Chris Newton
6
+ * Created: Thu Oct 7 10:17:28 BST 1993
7
7
*
8
8
* (C) Copyright 1992, Hewlett-Packard Ltd.
9
9
** Licensed under the Apache License, Version 2.0 (the "License");
18
18
*
19
19
**********************************************************************/
20
20
21
- #ifdef __UNIX__
22
- #include < assert.h>
23
- #endif
24
- #include < ctype.h>
25
- #include < string.h>
26
- #include " tessbox.h"
27
- #include " tessvars.h"
28
- #include " memry.h"
29
- #include " reject.h"
30
- #include " control.h"
31
- #include " stopper.h"
32
- #include " tesseractclass.h"
21
+ #include < ctype.h>
22
+ #include < string.h>
23
+ #include " tessbox.h"
24
+ #include " tessvars.h"
25
+ #include " memry.h"
26
+ #include " reject.h"
27
+ #include " control.h"
28
+ #include " stopper.h"
29
+ #include " tesseractclass.h"
33
30
34
31
// Include automatically generated configuration file if running autoconf.
35
32
#ifdef HAVE_CONFIG_H
Original file line number Diff line number Diff line change 18
18
**********************************************************************/
19
19
20
20
#include < ctype.h>
21
- #include < string.h>
22
- #ifdef __UNIX__
23
- #include < assert.h>
24
21
#include < errno.h>
25
- #endif
22
+ #include < string.h >
26
23
#include " allheaders.h"
27
24
#include " boxread.h"
28
25
#include " chopper.h"
Original file line number Diff line number Diff line change 27
27
#include < string.h>
28
28
#include < cmath>
29
29
#ifdef __UNIX__
30
- #include < assert.h>
31
30
#include < unistd.h>
32
- #include < errno.h>
33
31
#endif
34
32
#include < ctype.h>
33
+ #include < errno.h>
35
34
#include " callcpp.h"
36
35
#include " control.h"
37
36
#include " docqual.h"
Original file line number Diff line number Diff line change 17
17
*
18
18
**********************************************************************/
19
19
20
- #include < string.h>
21
20
#include < ctype.h>
21
+ #include < errno.h>
22
+ #include < string.h>
22
23
#ifdef __UNIX__
23
- #include < assert.h>
24
- #include < unistd.h>
25
- #include < errno.h>
24
+ #include < unistd.h>
26
25
#endif
27
26
#include " helpers.h"
28
27
#include " tessvars.h"
Original file line number Diff line number Diff line change 17
17
*
18
18
**********************************************************************/
19
19
20
- #include " tessvars.h"
21
- #ifdef __UNIX__
22
- #include < assert.h>
23
- #include < errno.h>
24
- #endif
25
- #include " scanutils.h"
26
- #include < ctype.h>
27
- #include < string.h>
28
- #include " genericvector.h"
29
- #include " reject.h"
30
- #include " control.h"
31
- #include " docqual.h"
32
- #include " globaloc.h" // For err_exit.
33
- #include " globals.h"
34
- #include " helpers.h"
20
+ #include " tessvars.h"
21
+ #include " scanutils.h"
22
+ #include < ctype.h>
23
+ #include < errno.h>
24
+ #include < string.h>
25
+ #include " genericvector.h"
26
+ #include " reject.h"
27
+ #include " control.h"
28
+ #include " docqual.h"
29
+ #include " globaloc.h" // For err_exit.
30
+ #include " globals.h"
31
+ #include " helpers.h"
35
32
36
33
#include " tesseractclass.h"
37
34
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: blread.cpp (Formerly pdread.c)
3
3
* Description: Friend function of BLOCK to read the uscan pd file.
4
- * Author: Ray Smith
5
- * Created: Mon Mar 18 14:39:00 GMT 1991
4
+ * Author: Ray Smith
5
+ * Created: Mon Mar 18 14:39:00 GMT 1991
6
6
*
7
7
* (C) Copyright 1991, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
17
17
*
18
18
**********************************************************************/
19
19
20
- #include < stdlib.h>
21
- #ifdef __UNIX__
22
- #include < assert.h>
23
- #endif
24
- #include " scanutils.h"
25
- #include " fileerr.h"
26
- #include " blread.h"
20
+ #include < stdlib.h>
21
+ #include " scanutils.h"
22
+ #include " fileerr.h"
23
+ #include " blread.h"
27
24
28
25
#define UNLV_EXT " .uzn" // unlv zone file
29
26
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: coutln.cpp (Formerly coutline.c)
3
3
* Description: Code for the C_OUTLINE class.
4
- * Author: Ray Smith
5
- * Created: Mon Oct 07 16:01:57 BST 1991
4
+ * Author: Ray Smith
5
+ * Created: Mon Oct 07 16:01:57 BST 1991
6
6
*
7
7
* (C) Copyright 1991, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
19
19
20
20
#include < algorithm>
21
21
#include < string.h>
22
- #ifdef __UNIX__
23
- #include < assert.h>
24
- #endif
25
22
26
23
#include " coutln.h"
27
24
Original file line number Diff line number Diff line change 21
21
** limitations under the License.
22
22
*
23
23
**********************************************************************/
24
- #include < stdlib.h>
25
- #ifdef __UNIX__
26
- #include < assert.h>
27
- #endif
28
- #include " blamer.h"
29
- #include " pageres.h"
30
- #include " blobs.h"
24
+
25
+ #include < stdlib.h>
26
+ #include < cassert>
27
+ #include " blamer.h"
28
+ #include " pageres.h"
29
+ #include " blobs.h"
31
30
32
31
ELISTIZE (BLOCK_RES)
33
32
CLISTIZE (BLOCK_RES) ELISTIZE (ROW_RES) ELISTIZE (WERD_RES)
Original file line number Diff line number Diff line change 17
17
*
18
18
**********************************************************************/
19
19
20
- #include < stdio.h>
21
- #ifdef __UNIX__
22
- #include < assert.h>
23
- #endif
20
+ #include < stdio.h>
24
21
#define FASTEDGELENGTH 256
25
- #include " polyaprx.h"
26
- #include " params.h"
27
- #include " tprintf.h"
22
+ #include " polyaprx.h"
23
+ #include " params.h"
24
+ #include " tprintf.h"
28
25
29
26
#define EXTERN
30
27
Original file line number Diff line number Diff line change 20
20
#ifndef RATNGS_H
21
21
#define RATNGS_H
22
22
23
- #include < assert.h >
23
+ #include < cassert >
24
24
25
25
#include " clst.h"
26
26
#include " elst.h"
Original file line number Diff line number Diff line change @@ -41,9 +41,6 @@ OF THIS IMPLIED TEMPORAL ORDERING OF THE FLAGS!!!!
41
41
#ifndef REJCTMAP_H
42
42
#define REJCTMAP_H
43
43
44
- #ifdef __UNIX__
45
- #include < assert.h>
46
- #endif
47
44
#include < memory>
48
45
#include " bits16.h"
49
46
#include " errcode.h"
Original file line number Diff line number Diff line change 36
36
37
37
#include <algorithm>
38
38
39
- #ifdef __UNIX__
40
- #include <assert.h>
41
- #endif
42
-
43
39
/*----------------------------------------------------------------------
44
40
V a r i a b l e s
45
41
----------------------------------------------------------------------*/
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: strngs.cpp (Formerly strings.c)
3
3
* Description: STRING class functions.
4
- * Author: Ray Smith
5
- * Created: Fri Feb 15 09:13:30 GMT 1991
4
+ * Author: Ray Smith
5
+ * Created: Fri Feb 15 09:13:30 GMT 1991
6
6
*
7
7
* (C) Copyright 1991, Hewlett-Packard Ltd.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
19
19
20
20
#include " strngs.h"
21
21
22
- #include < assert.h >
22
+ #include < cassert >
23
23
24
24
#include " errcode.h"
25
25
#include " genericvector.h"
Original file line number Diff line number Diff line change 55
55
#include " werd.h"
56
56
57
57
#include < algorithm>
58
+ #include < cassert>
58
59
#include < cstdio>
59
60
#include < cstring>
60
61
#include < cstdlib>
61
62
#include < cmath>
62
- #ifdef __UNIX__
63
- #include < assert.h>
64
- #endif
65
63
66
64
#define ADAPT_TEMPLATE_SUFFIX " .a"
67
65
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: callcpp.cpp
3
3
* Description: extern C interface calling C++ from C.
4
- * Author: Ray Smith
5
- * Created: Sun Feb 04 20:39:23 MST 1996
4
+ * Author: Ray Smith
5
+ * Created: Sun Feb 04 20:39:23 MST 1996
6
6
*
7
7
* (C) Copyright 1996, Hewlett-Packard Co.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
22
22
#include " config_auto.h"
23
23
#endif
24
24
25
- #include " errcode.h"
26
- #ifdef __UNIX__
27
- #include < assert.h>
25
+ #include " errcode.h"
28
26
#include < stdarg.h>
29
- #endif
30
- #include < time.h>
31
- #include " memry.h"
32
- #include " scrollview.h"
33
- #include " params.h"
34
- #include " callcpp.h"
35
- #include " tprintf.h"
36
- #include " host.h"
27
+ #include < time.h>
28
+ #include " memry.h"
29
+ #include " scrollview.h"
30
+ #include " params.h"
31
+ #include " callcpp.h"
32
+ #include " tprintf.h"
33
+ #include " host.h"
37
34
#include " unichar.h"
38
35
39
36
#include < memory>
Original file line number Diff line number Diff line change 1
1
/* *********************************************************************
2
2
* File: callcpp.h
3
3
* Description: extern C interface calling C++ from C.
4
- * Author: Ray Smith
5
- * Created: Sun Feb 04 20:39:23 MST 1996
4
+ * Author: Ray Smith
5
+ * Created: Sun Feb 04 20:39:23 MST 1996
6
6
*
7
7
* (C) Copyright 1996, Hewlett-Packard Co.
8
8
** Licensed under the Apache License, Version 2.0 (the "License");
20
20
#ifndef CALLCPP_H
21
21
#define CALLCPP_H
22
22
23
- #ifndef __UNIX__
24
- #include < assert.h>
25
- #endif
26
23
#include " host.h"
27
24
#include " params.h"
28
25
#include " unichar.h"
Original file line number Diff line number Diff line change 22
22
#include " danerror.h"
23
23
#include " tprintf.h"
24
24
#include " globaloc.h"
25
- #ifdef __UNIX__
26
- #include " assert.h"
27
- #endif
28
25
29
26
#include < cstdio>
30
27
Original file line number Diff line number Diff line change 17
17
*
18
18
**********************************************************************/
19
19
20
- #ifdef __UNIX__
21
- #include < assert.h>
22
- #endif
23
- #include " stderr.h"
24
- #include " blobbox.h"
25
- #include " statistc.h"
26
- #include " drawtord.h"
27
- #include " tovars.h"
28
- #include " topitch.h"
29
- #include " fpchop.h"
20
+ #include " stderr.h"
21
+ #include " blobbox.h"
22
+ #include " statistc.h"
23
+ #include " drawtord.h"
24
+ #include " tovars.h"
25
+ #include " topitch.h"
26
+ #include " fpchop.h"
30
27
31
28
// Include automatically generated configuration file if running autoconf.
32
29
#ifdef HAVE_CONFIG_H
You can’t perform that action at this time.
0 commit comments