Skip to content

Commit

Permalink
Remove file cutil.h
Browse files Browse the repository at this point in the history
It only contained three type definitions which fit better in other
include files.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Mar 27, 2019
1 parent 3bbe432 commit 6e59abc
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 36 deletions.
1 change: 0 additions & 1 deletion src/classify/cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <vector> // for std::vector

#include "cluster.h"
#include "cutil.h" // for void_proc
#include "emalloc.h"
#include "genericheap.h"
#include "helpers.h"
Expand Down
1 change: 0 additions & 1 deletion src/classify/kdtree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
Include Files and Type Defines
-----------------------------------------------------------------------------*/
#include "kdtree.h"
#include "cutil.h" // for void_proc
#include "emalloc.h"

#include <algorithm>
Expand Down
3 changes: 2 additions & 1 deletion src/classify/kdtree.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
/*-----------------------------------------------------------------------------
Include Files and Type Defines
-----------------------------------------------------------------------------*/
#include "cutil.h" // for void_proc
#include "host.h"
#include "ocrfeatures.h"

typedef void (*void_proc)(...);

/**
NOTE: All circular parameters of all keys must be in the range
Expand Down
2 changes: 1 addition & 1 deletion src/cutil/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ AM_CPPFLAGS += -DTESS_EXPORTS \
endif

noinst_HEADERS = \
bitvec.h callcpp.h cutil.h cutil_class.h \
bitvec.h callcpp.h cutil_class.h \
emalloc.h \
oldlist.h structures.h

Expand Down
30 changes: 0 additions & 30 deletions src/cutil/cutil.h

This file was deleted.

5 changes: 3 additions & 2 deletions src/cutil/oldlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,15 @@
#ifndef LIST_H
#define LIST_H

#include "cutil.h" // for int_compare, void_dest, ...

/*----------------------------------------------------------------------
T y p e s
----------------------------------------------------------------------*/

#define NIL_LIST ((LIST)nullptr)

typedef int (*int_compare)(void*, void*);
typedef void (*void_dest)(void*);

struct list_rec
{
struct list_rec *node;
Expand Down

0 comments on commit 6e59abc

Please sign in to comment.