Skip to content

Commit 6e59abc

Browse files
committed
Remove file cutil.h
It only contained three type definitions which fit better in other include files. Signed-off-by: Stefan Weil <[email protected]>
1 parent 3bbe432 commit 6e59abc

File tree

6 files changed

+6
-36
lines changed

6 files changed

+6
-36
lines changed

src/classify/cluster.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include <vector> // for std::vector
2121

2222
#include "cluster.h"
23-
#include "cutil.h" // for void_proc
2423
#include "emalloc.h"
2524
#include "genericheap.h"
2625
#include "helpers.h"

src/classify/kdtree.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
Include Files and Type Defines
2020
-----------------------------------------------------------------------------*/
2121
#include "kdtree.h"
22-
#include "cutil.h" // for void_proc
2322
#include "emalloc.h"
2423

2524
#include <algorithm>

src/classify/kdtree.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
/*-----------------------------------------------------------------------------
2121
Include Files and Type Defines
2222
-----------------------------------------------------------------------------*/
23-
#include "cutil.h" // for void_proc
2423
#include "host.h"
2524
#include "ocrfeatures.h"
2625

26+
typedef void (*void_proc)(...);
27+
2728
/**
2829
NOTE: All circular parameters of all keys must be in the range
2930

src/cutil/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ AM_CPPFLAGS += -DTESS_EXPORTS \
88
endif
99

1010
noinst_HEADERS = \
11-
bitvec.h callcpp.h cutil.h cutil_class.h \
11+
bitvec.h callcpp.h cutil_class.h \
1212
emalloc.h \
1313
oldlist.h structures.h
1414

src/cutil/cutil.h

-30
This file was deleted.

src/cutil/oldlist.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,15 @@
6363
#ifndef LIST_H
6464
#define LIST_H
6565

66-
#include "cutil.h" // for int_compare, void_dest, ...
67-
6866
/*----------------------------------------------------------------------
6967
T y p e s
7068
----------------------------------------------------------------------*/
7169

7270
#define NIL_LIST ((LIST)nullptr)
7371

72+
typedef int (*int_compare)(void*, void*);
73+
typedef void (*void_dest)(void*);
74+
7475
struct list_rec
7576
{
7677
struct list_rec *node;

0 commit comments

Comments
 (0)