mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
Merge pull request #531 from stweil/guards
Fix header file guards and replace reserved identifiers
This commit is contained in:
commit
da4c064c2e
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_API_APITYPES_H__
|
||||
#define TESSERACT_API_APITYPES_H__
|
||||
#ifndef TESSERACT_API_APITYPES_H_
|
||||
#define TESSERACT_API_APITYPES_H_
|
||||
|
||||
#include "publictypes.h"
|
||||
|
||||
@ -30,4 +30,4 @@
|
||||
// than the lower-level one, and lower-level code should be sure to include
|
||||
// only the lower-level file.
|
||||
|
||||
#endif // TESSERACT_API_APITYPES_H__
|
||||
#endif // TESSERACT_API_APITYPES_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_API_BASEAPI_H__
|
||||
#define TESSERACT_API_BASEAPI_H__
|
||||
#ifndef TESSERACT_API_BASEAPI_H_
|
||||
#define TESSERACT_API_BASEAPI_H_
|
||||
|
||||
#define TESSERACT_VERSION_STR "4.00.00alpha"
|
||||
#define TESSERACT_VERSION 0x040000
|
||||
@ -911,4 +911,4 @@ class TESS_API TessBaseAPI {
|
||||
STRING HOcrEscape(const char* text);
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_API_BASEAPI_H__
|
||||
#endif // TESSERACT_API_BASEAPI_H_
|
||||
|
@ -15,8 +15,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_API_RENDERER_H__
|
||||
#define TESSERACT_API_RENDERER_H__
|
||||
#ifndef TESSERACT_API_RENDERER_H_
|
||||
#define TESSERACT_API_RENDERER_H_
|
||||
|
||||
// To avoid collision with other typenames include the ABSOLUTE MINIMUM
|
||||
// complexity of includes here. Use forward declarations wherever possible
|
||||
@ -251,4 +251,4 @@ class TESS_API TessOsdRenderer : public TessResultRenderer {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_API_RENDERER_H__
|
||||
#endif // TESSERACT_API_RENDERER_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CCMAIN_EQUATIONDETECT_H__
|
||||
#define TESSERACT_CCMAIN_EQUATIONDETECT_H__
|
||||
#ifndef TESSERACT_CCMAIN_EQUATIONDETECT_H_
|
||||
#define TESSERACT_CCMAIN_EQUATIONDETECT_H_
|
||||
|
||||
#include "blobbox.h"
|
||||
#include "equationdetectbase.h"
|
||||
|
@ -18,8 +18,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CCMAIN_LTR_RESULT_ITERATOR_H__
|
||||
#define TESSERACT_CCMAIN_LTR_RESULT_ITERATOR_H__
|
||||
#ifndef TESSERACT_CCMAIN_LTR_RESULT_ITERATOR_H_
|
||||
#define TESSERACT_CCMAIN_LTR_RESULT_ITERATOR_H_
|
||||
|
||||
#include "platform.h"
|
||||
#include "pageiterator.h"
|
||||
@ -218,4 +218,4 @@ class ChoiceIterator {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_CCMAIN_LTR_RESULT_ITERATOR_H__
|
||||
#endif // TESSERACT_CCMAIN_LTR_RESULT_ITERATOR_H_
|
||||
|
@ -18,8 +18,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CCMAIN_MUTABLEITERATOR_H__
|
||||
#define TESSERACT_CCMAIN_MUTABLEITERATOR_H__
|
||||
#ifndef TESSERACT_CCMAIN_MUTABLEITERATOR_H_
|
||||
#define TESSERACT_CCMAIN_MUTABLEITERATOR_H_
|
||||
|
||||
#include "resultiterator.h"
|
||||
|
||||
@ -61,4 +61,4 @@ class MutableIterator : public ResultIterator {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_CCMAIN_MUTABLEITERATOR_H__
|
||||
#endif // TESSERACT_CCMAIN_MUTABLEITERATOR_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CCMAIN_OSDETECT_H__
|
||||
#define TESSERACT_CCMAIN_OSDETECT_H__
|
||||
#ifndef TESSERACT_CCMAIN_OSDETECT_H_
|
||||
#define TESSERACT_CCMAIN_OSDETECT_H_
|
||||
|
||||
#include "strngs.h"
|
||||
#include "unicharset.h"
|
||||
@ -135,4 +135,4 @@ bool os_detect_blob(BLOBNBOX* bbox, OrientationDetector* o,
|
||||
// applied for the text to be upright (readable).
|
||||
TESS_API int OrientationIdToValue(const int& id);
|
||||
|
||||
#endif // TESSERACT_CCMAIN_OSDETECT_H__
|
||||
#endif // TESSERACT_CCMAIN_OSDETECT_H_
|
||||
|
@ -18,8 +18,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CCMAIN_PAGEITERATOR_H__
|
||||
#define TESSERACT_CCMAIN_PAGEITERATOR_H__
|
||||
#ifndef TESSERACT_CCMAIN_PAGEITERATOR_H_
|
||||
#define TESSERACT_CCMAIN_PAGEITERATOR_H_
|
||||
|
||||
#include "publictypes.h"
|
||||
#include "platform.h"
|
||||
@ -361,4 +361,4 @@ class TESS_API PageIterator {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_CCMAIN_PAGEITERATOR_H__
|
||||
#endif // TESSERACT_CCMAIN_PAGEITERATOR_H_
|
||||
|
@ -19,9 +19,10 @@
|
||||
//
|
||||
// Tesseract parameter editor is used to edit all the parameters used
|
||||
// within tesseract from the ui.
|
||||
#ifndef TESSERACT_CCMAIN_PARAMSD_H_
|
||||
#define TESSERACT_CCMAIN_PARAMSD_H_
|
||||
|
||||
#ifndef GRAPHICS_DISABLED
|
||||
#ifndef VARABLED_H
|
||||
#define VARABLED_H
|
||||
|
||||
#include "elst.h"
|
||||
#include "params.h"
|
||||
@ -119,5 +120,5 @@ class ParamsEditor : public SVEventHandler {
|
||||
ScrollView* sv_window_;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
#endif // GRAPHICS_DISABLED
|
||||
#endif // TESSERACT_CCMAIN_PARAMSD_H_
|
||||
|
@ -19,8 +19,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CCMAIN_RESULT_ITERATOR_H__
|
||||
#define TESSERACT_CCMAIN_RESULT_ITERATOR_H__
|
||||
#ifndef TESSERACT_CCMAIN_RESULT_ITERATOR_H_
|
||||
#define TESSERACT_CCMAIN_RESULT_ITERATOR_H_
|
||||
|
||||
#include "platform.h"
|
||||
#include "ltrresultiterator.h"
|
||||
@ -241,4 +241,4 @@ class TESS_API ResultIterator : public LTRResultIterator {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_CCMAIN_RESULT_ITERATOR_H__
|
||||
#endif // TESSERACT_CCMAIN_RESULT_ITERATOR_H_
|
||||
|
@ -23,8 +23,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CCMAIN_TESSERACTCLASS_H__
|
||||
#define TESSERACT_CCMAIN_TESSERACTCLASS_H__
|
||||
#ifndef TESSERACT_CCMAIN_TESSERACTCLASS_H_
|
||||
#define TESSERACT_CCMAIN_TESSERACTCLASS_H_
|
||||
|
||||
#include "allheaders.h"
|
||||
#include "control.h"
|
||||
@ -1226,4 +1226,4 @@ class Tesseract : public Wordrec {
|
||||
} // namespace tesseract
|
||||
|
||||
|
||||
#endif // TESSERACT_CCMAIN_TESSERACTCLASS_H__
|
||||
#endif // TESSERACT_CCMAIN_TESSERACTCLASS_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CCMAIN_THRESHOLDER_H__
|
||||
#define TESSERACT_CCMAIN_THRESHOLDER_H__
|
||||
#ifndef TESSERACT_CCMAIN_THRESHOLDER_H_
|
||||
#define TESSERACT_CCMAIN_THRESHOLDER_H_
|
||||
|
||||
#include "platform.h"
|
||||
#include "publictypes.h"
|
||||
@ -186,4 +186,4 @@ class TESS_API ImageThresholder {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_CCMAIN_THRESHOLDER_H__
|
||||
#endif // TESSERACT_CCMAIN_THRESHOLDER_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
*
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef TESSERACT_CCUTIL_BOXREAD_H__
|
||||
#define TESSERACT_CCUTIL_BOXREAD_H__
|
||||
#ifndef TESSERACT_CCUTIL_BOXREAD_H_
|
||||
#define TESSERACT_CCUTIL_BOXREAD_H_
|
||||
|
||||
#include <stdio.h>
|
||||
#include "genericvector.h"
|
||||
@ -82,4 +82,4 @@ bool ParseBoxFileStr(const char* boxfile_str, int* page_number,
|
||||
void MakeBoxFileStr(const char* unichar_str, const TBOX& box, int page_num,
|
||||
STRING* box_str);
|
||||
|
||||
#endif // TESSERACT_CCUTIL_BOXREAD_H__
|
||||
#endif // TESSERACT_CCUTIL_BOXREAD_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CSTRUCT_BOXWORD_H__
|
||||
#define TESSERACT_CSTRUCT_BOXWORD_H__
|
||||
#ifndef TESSERACT_CSTRUCT_BOXWORD_H_
|
||||
#define TESSERACT_CSTRUCT_BOXWORD_H_
|
||||
|
||||
#include "genericvector.h"
|
||||
#include "rect.h"
|
||||
@ -98,4 +98,4 @@ class BoxWord {
|
||||
} // namespace tesseract.
|
||||
|
||||
|
||||
#endif // TESSERACT_CSTRUCT_BOXWORD_H__
|
||||
#endif // TESSERACT_CSTRUCT_BOXWORD_H_
|
||||
|
@ -16,8 +16,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CCSTRUCT_CCSTRUCT_H__
|
||||
#define TESSERACT_CCSTRUCT_CCSTRUCT_H__
|
||||
#ifndef TESSERACT_CCSTRUCT_CCSTRUCT_H_
|
||||
#define TESSERACT_CCSTRUCT_CCSTRUCT_H_
|
||||
|
||||
#include "cutil.h"
|
||||
|
||||
@ -41,4 +41,4 @@ class Tesseract;
|
||||
} // namespace tesseract
|
||||
|
||||
|
||||
#endif // TESSERACT_CCSTRUCT_CCSTRUCT_H__
|
||||
#endif // TESSERACT_CCSTRUCT_CCSTRUCT_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
*
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef TESSERACT_CCSTRUCT_DPPOINT_H__
|
||||
#define TESSERACT_CCSTRUCT_DPPOINT_H__
|
||||
#ifndef TESSERACT_CCSTRUCT_DPPOINT_H_
|
||||
#define TESSERACT_CCSTRUCT_DPPOINT_H_
|
||||
|
||||
#include "host.h"
|
||||
|
||||
@ -98,5 +98,5 @@ class DPPoint {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_CCSTRUCT_DPPOINT_H__
|
||||
#endif // TESSERACT_CCSTRUCT_DPPOINT_H_
|
||||
|
||||
|
@ -26,8 +26,8 @@
|
||||
** limitations under the License.
|
||||
*
|
||||
*********************************************************************************/
|
||||
#ifndef TESSERACT_CCSTRUCT_MATRIX_H__
|
||||
#define TESSERACT_CCSTRUCT_MATRIX_H__
|
||||
#ifndef TESSERACT_CCSTRUCT_MATRIX_H_
|
||||
#define TESSERACT_CCSTRUCT_MATRIX_H_
|
||||
|
||||
#include <math.h>
|
||||
#include "kdpair.h"
|
||||
@ -632,4 +632,4 @@ struct MATRIX_COORD {
|
||||
// The MatrixCoordPair contains a MATRIX_COORD and its priority.
|
||||
typedef tesseract::KDPairInc<float, MATRIX_COORD> MatrixCoordPair;
|
||||
|
||||
#endif // TESSERACT_CCSTRUCT_MATRIX_H__
|
||||
#endif // TESSERACT_CCSTRUCT_MATRIX_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CCMAIN_OTSUTHR_H__
|
||||
#define TESSERACT_CCMAIN_OTSUTHR_H__
|
||||
#ifndef TESSERACT_CCMAIN_OTSUTHR_H_
|
||||
#define TESSERACT_CCMAIN_OTSUTHR_H_
|
||||
|
||||
struct Pix;
|
||||
|
||||
@ -53,4 +53,4 @@ int OtsuStats(const int* histogram, int* H_out, int* omega0_out);
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_CCMAIN_OTSUTHR_H__
|
||||
#endif // TESSERACT_CCMAIN_OTSUTHR_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CCSTRUCT_PUBLICTYPES_H__
|
||||
#define TESSERACT_CCSTRUCT_PUBLICTYPES_H__
|
||||
#ifndef TESSERACT_CCSTRUCT_PUBLICTYPES_H_
|
||||
#define TESSERACT_CCSTRUCT_PUBLICTYPES_H_
|
||||
|
||||
// This file contains types that are used both by the API and internally
|
||||
// to Tesseract. In order to decouple the API from Tesseract and prevent cyclic
|
||||
@ -271,4 +271,4 @@ enum OcrEngineMode {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_CCSTRUCT_PUBLICTYPES_H__
|
||||
#endif // TESSERACT_CCSTRUCT_PUBLICTYPES_H_
|
||||
|
@ -20,8 +20,8 @@
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#ifndef TESSERACT_CCUTIL_BITVECTOR_H__
|
||||
#define TESSERACT_CCUTIL_BITVECTOR_H__
|
||||
#ifndef TESSERACT_CCUTIL_BITVECTOR_H_
|
||||
#define TESSERACT_CCUTIL_BITVECTOR_H_
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
@ -140,4 +140,4 @@ class BitVector {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_CCUTIL_BITVECTOR_H__
|
||||
#endif // TESSERACT_CCUTIL_BITVECTOR_H_
|
||||
|
@ -16,8 +16,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CCUTIL_CCUTIL_H__
|
||||
#define TESSERACT_CCUTIL_CCUTIL_H__
|
||||
#ifndef TESSERACT_CCUTIL_CCUTIL_H_
|
||||
#define TESSERACT_CCUTIL_CCUTIL_H_
|
||||
|
||||
#include "ambigs.h"
|
||||
#include "errcode.h"
|
||||
@ -94,4 +94,4 @@ class CCUtil {
|
||||
extern CCUtilMutex tprintfMutex; // should remain global
|
||||
} // namespace tesseract
|
||||
|
||||
#endif // TESSERACT_CCUTIL_CCUTIL_H__
|
||||
#endif // TESSERACT_CCUTIL_CCUTIL_H_
|
||||
|
@ -19,12 +19,12 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "errcode.h"
|
||||
#include "genericvector.h"
|
||||
|
||||
#ifndef TESSERACT_CCUTIL_GENERICHEAP_H_
|
||||
#define TESSERACT_CCUTIL_GENERICHEAP_H_
|
||||
|
||||
#include "errcode.h"
|
||||
#include "genericvector.h"
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
// GenericHeap requires 1 template argument:
|
||||
|
@ -42,8 +42,8 @@
|
||||
** limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef __HOST__
|
||||
#define __HOST__
|
||||
#ifndef TESSERACT_CCUTIL_HOST_H_
|
||||
#define TESSERACT_CCUTIL_HOST_H_
|
||||
|
||||
/******************************************************************************
|
||||
** IMPORTANT!!! **
|
||||
@ -146,4 +146,4 @@ template<class T> bool NearlyEqual(T x, T y, T tolerance) {
|
||||
return diff <= tolerance && -diff <= tolerance;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // TESSERACT_CCUTIL_HOST_H_
|
||||
|
@ -17,10 +17,10 @@
|
||||
*
|
||||
**********************************************************************/
|
||||
|
||||
#include "errcode.h" //must be last include
|
||||
#ifndef TESSERACT_CCUTIL_LSTERR_H_
|
||||
#define TESSERACT_CCUTIL_LSTERR_H_
|
||||
|
||||
#ifndef LSTERR_H
|
||||
#define LSTERR_H
|
||||
#include "errcode.h" //must be last include
|
||||
|
||||
const ERRCODE DONT_CONSTRUCT_LIST_BY_COPY =
|
||||
"Can't create a list by assignment";
|
||||
@ -39,5 +39,6 @@ const ERRCODE EMPTY_LIST = "List is empty";
|
||||
const ERRCODE BAD_PARAMETER = "List parameter error";
|
||||
const ERRCODE STILL_LINKED =
|
||||
"Attempting to add an element with non NULL links, to a list";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif // !NDEBUG
|
||||
#endif // TESSERACT_CCUTIL_LSTERR_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CCUTIL_PLATFORM_H__
|
||||
#define TESSERACT_CCUTIL_PLATFORM_H__
|
||||
#ifndef TESSERACT_CCUTIL_PLATFORM_H_
|
||||
#define TESSERACT_CCUTIL_PLATFORM_H_
|
||||
|
||||
#include <string.h>
|
||||
|
||||
@ -81,12 +81,4 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||
#define _TESS_FILE_BASENAME_ \
|
||||
(strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__)
|
||||
#else // Unices
|
||||
#define _TESS_FILE_BASENAME_ \
|
||||
(strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
|
||||
#endif
|
||||
|
||||
#endif // TESSERACT_CCUTIL_PLATFORM_H__
|
||||
#endif // TESSERACT_CCUTIL_PLATFORM_H_
|
||||
|
@ -16,8 +16,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _TESS_CALLBACK_SPECIALIZATIONS_H
|
||||
#define _TESS_CALLBACK_SPECIALIZATIONS_H
|
||||
#ifndef TESS_CALLBACK_SPECIALIZATIONS_H_
|
||||
#define TESS_CALLBACK_SPECIALIZATIONS_H_
|
||||
|
||||
#include "host.h" // For NULL.
|
||||
|
||||
@ -9718,4 +9718,4 @@ NewPermanentTessCallback(R (*function)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5), typena
|
||||
return new _TessFunctionResultCallback_6_5<false,R,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5>(function, p1, p2, p3, p4, p5, p6);
|
||||
}
|
||||
|
||||
#endif /* _TESS_CALLBACK_SPECIALIZATIONS_H */
|
||||
#endif // TESS_CALLBACK_SPECIALIZATIONS_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CCUTIL_UNICHAR_H__
|
||||
#define TESSERACT_CCUTIL_UNICHAR_H__
|
||||
#ifndef TESSERACT_CCUTIL_UNICHAR_H_
|
||||
#define TESSERACT_CCUTIL_UNICHAR_H_
|
||||
|
||||
#include <memory.h>
|
||||
#include <string.h>
|
||||
@ -162,4 +162,4 @@ class UNICHAR {
|
||||
char chars[UNICHAR_LEN];
|
||||
};
|
||||
|
||||
#endif // TESSERACT_CCUTIL_UNICHAR_H__
|
||||
#endif // TESSERACT_CCUTIL_UNICHAR_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CCUTIL_UNICHARMAP_H__
|
||||
#define TESSERACT_CCUTIL_UNICHARMAP_H__
|
||||
#ifndef TESSERACT_CCUTIL_UNICHARMAP_H_
|
||||
#define TESSERACT_CCUTIL_UNICHARMAP_H_
|
||||
|
||||
#include "unichar.h"
|
||||
|
||||
@ -79,4 +79,4 @@ class UNICHARMAP {
|
||||
UNICHARMAP_NODE* nodes;
|
||||
};
|
||||
|
||||
#endif // TESSERACT_CCUTIL_UNICHARMAP_H__
|
||||
#endif // TESSERACT_CCUTIL_UNICHARMAP_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CCUTIL_UNICHARSET_H__
|
||||
#define TESSERACT_CCUTIL_UNICHARSET_H__
|
||||
#ifndef TESSERACT_CCUTIL_UNICHARSET_H_
|
||||
#define TESSERACT_CCUTIL_UNICHARSET_H_
|
||||
|
||||
#include "errcode.h"
|
||||
#include "genericvector.h"
|
||||
@ -997,4 +997,4 @@ class UNICHARSET {
|
||||
int default_sid_;
|
||||
};
|
||||
|
||||
#endif // TESSERACT_CCUTIL_UNICHARSET_H__
|
||||
#endif // TESSERACT_CCUTIL_UNICHARSET_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
*
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef TESSERACT_CCUTIL_UNICODES_H__
|
||||
#define TESSERACT_CCUTIL_UNICODES_H__
|
||||
#ifndef TESSERACT_CCUTIL_UNICODES_H_
|
||||
#define TESSERACT_CCUTIL_UNICODES_H_
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
@ -36,4 +36,4 @@ extern const char *kApostropheLikeUTF8[];
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif // TESSERACT_CCUTIL_UNICODES_H__
|
||||
#endif // TESSERACT_CCUTIL_UNICODES_H_
|
||||
|
@ -18,9 +18,14 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CCUTIL_UNIVERSALAMBIGS_H_
|
||||
#define TESSERACT_CCUTIL_UNIVERSALAMBIGS_H_
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
extern const char kUniversalAmbigsFile[];
|
||||
extern const int ksizeofUniversalAmbigsFile;
|
||||
|
||||
} // namespace tesseract
|
||||
|
||||
#endif // TESSERACT_CCUTIL_UNIVERSALAMBIGS_H_
|
||||
|
@ -16,8 +16,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CLASSIFY_CLASSIFY_H__
|
||||
#define TESSERACT_CLASSIFY_CLASSIFY_H__
|
||||
#ifndef TESSERACT_CLASSIFY_CLASSIFY_H_
|
||||
#define TESSERACT_CLASSIFY_CLASSIFY_H_
|
||||
|
||||
#include "adaptive.h"
|
||||
#include "ccstruct.h"
|
||||
@ -539,4 +539,4 @@ class Classify : public CCStruct {
|
||||
};
|
||||
} // namespace tesseract
|
||||
|
||||
#endif // TESSERACT_CLASSIFY_CLASSIFY_H__
|
||||
#endif // TESSERACT_CLASSIFY_CLASSIFY_H_
|
||||
|
@ -15,8 +15,9 @@
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
******************************************************************************/
|
||||
#ifndef __CLUSTERTOOL__
|
||||
#define __CLUSTERTOOL__
|
||||
|
||||
#ifndef TESSERACT_CLASSIFY_CLUSTTOOL_H_
|
||||
#define TESSERACT_CLASSIFY_CLUSTTOOL_H_
|
||||
|
||||
//--------------------------Include Files---------------------------------------
|
||||
#include "host.h"
|
||||
@ -61,4 +62,4 @@ void WriteProtoList(FILE *File, uinT16 N, PARAM_DESC ParamDesc[],
|
||||
#define ILLEGALDISTRIBUTION 5008
|
||||
#define ILLEGALFLOAT 5009
|
||||
#define ILLEGALESSENTIALSPEC 5013
|
||||
#endif
|
||||
#endif // TESSERACT_CLASSIFY_CLUSTTOOL_H_
|
||||
|
@ -18,8 +18,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CLASSIFY_INTFEATUREMAP_H__
|
||||
#define TESSERACT_CLASSIFY_INTFEATUREMAP_H__
|
||||
#ifndef TESSERACT_CLASSIFY_INTFEATUREMAP_H_
|
||||
#define TESSERACT_CLASSIFY_INTFEATUREMAP_H_
|
||||
|
||||
#include "intfeaturespace.h"
|
||||
#include "indexmapbidi.h"
|
||||
@ -160,4 +160,4 @@ class IntFeatureMap {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_CLASSIFY_INTFEATUREMAP_H__
|
||||
#endif // TESSERACT_CLASSIFY_INTFEATUREMAP_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CLASSIFY_INTFEATURESPACE_H__
|
||||
#define TESSERACT_CLASSIFY_INTFEATURESPACE_H__
|
||||
#ifndef TESSERACT_CLASSIFY_INTFEATURESPACE_H_
|
||||
#define TESSERACT_CLASSIFY_INTFEATURESPACE_H_
|
||||
|
||||
#include "genericvector.h"
|
||||
#include "intproto.h"
|
||||
@ -107,4 +107,4 @@ class IntFeatureSpace {
|
||||
} // namespace tesseract.
|
||||
|
||||
|
||||
#endif // TESSERACT_CLASSIFY_INTFEATURESPACE_H__
|
||||
#endif // TESSERACT_CLASSIFY_INTFEATURESPACE_H_
|
||||
|
@ -19,8 +19,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_TRAINING_MASTERTRAINER_H__
|
||||
#define TESSERACT_TRAINING_MASTERTRAINER_H__
|
||||
#ifndef TESSERACT_TRAINING_MASTERTRAINER_H_
|
||||
#define TESSERACT_TRAINING_MASTERTRAINER_H_
|
||||
|
||||
/**----------------------------------------------------------------------------
|
||||
Include Files and Type Defines
|
||||
@ -309,4 +309,4 @@ class MasterTrainer {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif
|
||||
#endif // TESSERACT_TRAINING_MASTERTRAINER_H_
|
||||
|
@ -13,8 +13,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_TRAINING_TRAININGSAMPLE_H__
|
||||
#define TESSERACT_TRAINING_TRAININGSAMPLE_H__
|
||||
#ifndef TESSERACT_TRAINING_TRAININGSAMPLE_H_
|
||||
#define TESSERACT_TRAINING_TRAININGSAMPLE_H_
|
||||
|
||||
#include "elst.h"
|
||||
#include "featdefs.h"
|
||||
@ -247,4 +247,4 @@ ELISTIZEH(TrainingSample)
|
||||
|
||||
} // namespace tesseract
|
||||
|
||||
#endif // TESSERACT_TRAINING_TRAININGSAMPLE_H__
|
||||
#endif // TESSERACT_TRAINING_TRAININGSAMPLE_H_
|
||||
|
@ -13,8 +13,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_TRAINING_TRAININGSAMPLESET_H__
|
||||
#define TESSERACT_TRAINING_TRAININGSAMPLESET_H__
|
||||
#ifndef TESSERACT_TRAINING_TRAININGSAMPLESET_H_
|
||||
#define TESSERACT_TRAINING_TRAININGSAMPLESET_H_
|
||||
|
||||
#include "bitvector.h"
|
||||
#include "genericvector.h"
|
||||
|
@ -16,8 +16,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_CUTIL_CUTIL_CLASS_H__
|
||||
#define TESSERACT_CUTIL_CUTIL_CLASS_H__
|
||||
#ifndef TESSERACT_CUTIL_CUTIL_CLASS_H_
|
||||
#define TESSERACT_CUTIL_CUTIL_CLASS_H_
|
||||
|
||||
#include "ccutil.h"
|
||||
#include "const.h"
|
||||
@ -34,4 +34,4 @@ class CUtil : public CCUtil {
|
||||
|
||||
} // namespace tesseract
|
||||
|
||||
#endif // TESSERACT_CUTIL_CUTIL_CLASS_H__
|
||||
#endif // TESSERACT_CUTIL_CUTIL_CLASS_H_
|
||||
|
@ -7,8 +7,10 @@
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
#ifndef _OCL_KERNEL_H_
|
||||
#define _OCL_KERNEL_H_
|
||||
|
||||
#ifndef TESSERACT_OPENCL_OCLKERNELS_H_
|
||||
#define TESSERACT_OPENCL_OCLKERNELS_H_
|
||||
|
||||
#ifndef USE_EXTERNAL_KERNEL
|
||||
#define KERNEL( ... )# __VA_ARGS__ "\n"
|
||||
// Double precision is a default of spreadsheets
|
||||
@ -1210,5 +1212,5 @@ KERNEL(
|
||||
; // close char*
|
||||
|
||||
#endif // USE_EXTERNAL_KERNEL
|
||||
#endif //_OCL_KERNEL_H_
|
||||
#endif // TESSERACT_OPENCL_OCLKERNELS_H_
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
@ -7,10 +7,11 @@
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
#ifdef USE_OPENCL
|
||||
|
||||
#ifndef DEVICE_SELECTION_H
|
||||
#define DEVICE_SELECTION_H
|
||||
|
||||
#ifdef USE_OPENCL
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
@ -577,5 +578,5 @@ cleanup:
|
||||
return status;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
#endif // USE_OPENCL
|
||||
#endif // DEVICE_SELECTION_H
|
||||
|
@ -7,6 +7,10 @@
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef TESSERACT_OPENCL_OPENCLWRAPPER_H_
|
||||
#define TESSERACT_OPENCL_OPENCLWRAPPER_H_
|
||||
|
||||
#include <stdio.h>
|
||||
#include "allheaders.h"
|
||||
#include "pix.h"
|
||||
@ -322,4 +326,5 @@ public:
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
#endif // USE_OPENCL
|
||||
#endif // TESSERACT_OPENCL_OPENCLWRAPPER_H_
|
||||
|
@ -18,8 +18,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_TEXTORD_ALIGNEDBLOB_H__
|
||||
#define TESSERACT_TEXTORD_ALIGNEDBLOB_H__
|
||||
#ifndef TESSERACT_TEXTORD_ALIGNEDBLOB_H_
|
||||
#define TESSERACT_TEXTORD_ALIGNEDBLOB_H_
|
||||
|
||||
#include "bbgrid.h"
|
||||
#include "blobbox.h"
|
||||
@ -141,5 +141,5 @@ class AlignedBlob : public BlobGrid {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_TEXTORD_ALIGNEDBLOB_H__
|
||||
#endif // TESSERACT_TEXTORD_ALIGNEDBLOB_H_
|
||||
|
||||
|
@ -18,8 +18,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_TEXTORD_BBGRID_H__
|
||||
#define TESSERACT_TEXTORD_BBGRID_H__
|
||||
#ifndef TESSERACT_TEXTORD_BBGRID_H_
|
||||
#define TESSERACT_TEXTORD_BBGRID_H_
|
||||
|
||||
#include "clst.h"
|
||||
#include "coutln.h"
|
||||
@ -958,4 +958,4 @@ void GridSearch<BBC, BBC_CLIST, BBC_C_IT>::SetIterator() {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_TEXTORD_BBGRID_H__
|
||||
#endif // TESSERACT_TEXTORD_BBGRID_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_TEXTORD_COLFIND_H__
|
||||
#define TESSERACT_TEXTORD_COLFIND_H__
|
||||
#ifndef TESSERACT_TEXTORD_COLFIND_H_
|
||||
#define TESSERACT_TEXTORD_COLFIND_H_
|
||||
|
||||
#include "tabfind.h"
|
||||
#include "imagefind.h"
|
||||
@ -365,4 +365,4 @@ class ColumnFinder : public TabFind {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_TEXTORD_COLFIND_H__
|
||||
#endif // TESSERACT_TEXTORD_COLFIND_H_
|
||||
|
@ -18,8 +18,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_TEXTORD_COLPARTITION_H__
|
||||
#define TESSERACT_TEXTORD_COLPARTITION_H__
|
||||
#ifndef TESSERACT_TEXTORD_COLPARTITION_H_
|
||||
#define TESSERACT_TEXTORD_COLPARTITION_H_
|
||||
|
||||
#include "bbgrid.h"
|
||||
#include "blobbox.h" // For BlobRegionType.
|
||||
@ -933,4 +933,4 @@ typedef GridSearch<ColPartition,
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_TEXTORD_COLPARTITION_H__
|
||||
#endif // TESSERACT_TEXTORD_COLPARTITION_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_TEXTORD_COLPARTITIONGRID_H__
|
||||
#define TESSERACT_TEXTORD_COLPARTITIONGRID_H__
|
||||
#ifndef TESSERACT_TEXTORD_COLPARTITIONGRID_H_
|
||||
#define TESSERACT_TEXTORD_COLPARTITIONGRID_H_
|
||||
|
||||
#include "bbgrid.h"
|
||||
#include "colpartition.h"
|
||||
@ -255,4 +255,4 @@ class ColPartitionGrid : public BBGrid<ColPartition,
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_TEXTORD_COLPARTITIONGRID_H__
|
||||
#endif // TESSERACT_TEXTORD_COLPARTITIONGRID_H_
|
||||
|
@ -18,8 +18,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_TEXTORD_COLPARTITIONSET_H__
|
||||
#define TESSERACT_TEXTORD_COLPARTITIONSET_H__
|
||||
#ifndef TESSERACT_TEXTORD_COLPARTITIONSET_H_
|
||||
#define TESSERACT_TEXTORD_COLPARTITIONSET_H_
|
||||
|
||||
#include "colpartition.h" // For ColPartition_LIST.
|
||||
#include "genericvector.h" // For GenericVector.
|
||||
@ -170,4 +170,4 @@ ELISTIZEH(ColPartitionSet)
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_TEXTORD_COLPARTITION_H__
|
||||
#endif // TESSERACT_TEXTORD_COLPARTITION_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_TEXTORD_EQUATIONDETECTBASE_H__
|
||||
#define TESSERACT_TEXTORD_EQUATIONDETECTBASE_H__
|
||||
#ifndef TESSERACT_TEXTORD_EQUATIONDETECTBASE_H_
|
||||
#define TESSERACT_TEXTORD_EQUATIONDETECTBASE_H_
|
||||
|
||||
class BLOBNBOX_LIST;
|
||||
class TO_BLOCK;
|
||||
@ -56,4 +56,4 @@ class EquationDetectBase {
|
||||
|
||||
}; // namespace tesseract
|
||||
|
||||
#endif // TESSERACT_TEXTORD_EQUATIONDETECTBASE_H__
|
||||
#endif // TESSERACT_TEXTORD_EQUATIONDETECTBASE_H_
|
||||
|
@ -18,8 +18,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_TEXTORD_IMAGEFIND_H__
|
||||
#define TESSERACT_TEXTORD_IMAGEFIND_H__
|
||||
#ifndef TESSERACT_TEXTORD_IMAGEFIND_H_
|
||||
#define TESSERACT_TEXTORD_IMAGEFIND_H_
|
||||
|
||||
#include "host.h"
|
||||
|
||||
@ -155,5 +155,5 @@ class ImageFind {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_TEXTORD_LINEFIND_H__
|
||||
#endif // TESSERACT_TEXTORD_LINEFIND_H_
|
||||
|
||||
|
@ -18,8 +18,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_TEXTORD_LINEFIND_H__
|
||||
#define TESSERACT_TEXTORD_LINEFIND_H__
|
||||
#ifndef TESSERACT_TEXTORD_LINEFIND_H_
|
||||
#define TESSERACT_TEXTORD_LINEFIND_H_
|
||||
|
||||
struct Boxa;
|
||||
struct Pix;
|
||||
@ -146,5 +146,5 @@ class LineFinder {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_TEXTORD_LINEFIND_H__
|
||||
#endif // TESSERACT_TEXTORD_LINEFIND_H_
|
||||
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_TEXTORD_STROKEWIDTH_H__
|
||||
#define TESSERACT_TEXTORD_STROKEWIDTH_H__
|
||||
#ifndef TESSERACT_TEXTORD_STROKEWIDTH_H_
|
||||
#define TESSERACT_TEXTORD_STROKEWIDTH_H_
|
||||
|
||||
#include "blobbox.h" // BlobNeighourDir.
|
||||
#include "blobgrid.h" // Base class.
|
||||
@ -352,4 +352,4 @@ class StrokeWidth : public BlobGrid {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_TEXTORD_STROKEWIDTH_H__
|
||||
#endif // TESSERACT_TEXTORD_STROKEWIDTH_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_TEXTORD_TABFIND_H__
|
||||
#define TESSERACT_TEXTORD_TABFIND_H__
|
||||
#ifndef TESSERACT_TEXTORD_TABFIND_H_
|
||||
#define TESSERACT_TEXTORD_TABFIND_H_
|
||||
|
||||
#include "alignedblob.h"
|
||||
#include "tesscallback.h"
|
||||
@ -382,4 +382,4 @@ class TabFind : public AlignedBlob {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_TEXTORD_TABFIND_H__
|
||||
#endif // TESSERACT_TEXTORD_TABFIND_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_TEXTORD_TABLEFIND_H__
|
||||
#define TESSERACT_TEXTORD_TABLEFIND_H__
|
||||
#ifndef TESSERACT_TEXTORD_TABLEFIND_H_
|
||||
#define TESSERACT_TEXTORD_TABLEFIND_H_
|
||||
|
||||
#include "colpartitiongrid.h"
|
||||
#include "elst.h"
|
||||
@ -432,4 +432,4 @@ class TableFinder {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_TEXTORD_TABLEFIND_H__
|
||||
#endif // TESSERACT_TEXTORD_TABLEFIND_H_
|
||||
|
@ -17,8 +17,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_TEXTORD_TABVECTOR_H__
|
||||
#define TESSERACT_TEXTORD_TABVECTOR_H__
|
||||
#ifndef TESSERACT_TEXTORD_TABVECTOR_H_
|
||||
#define TESSERACT_TEXTORD_TABVECTOR_H_
|
||||
|
||||
#include "blobgrid.h"
|
||||
#include "clst.h"
|
||||
@ -427,4 +427,4 @@ class TabVector : public ELIST2_LINK {
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_TEXTORD_TABVECTOR_H__
|
||||
#endif // TESSERACT_TEXTORD_TABVECTOR_H_
|
||||
|
@ -18,8 +18,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_TEXTORD_TEXTORD_H__
|
||||
#define TESSERACT_TEXTORD_TEXTORD_H__
|
||||
#ifndef TESSERACT_TEXTORD_TEXTORD_H_
|
||||
#define TESSERACT_TEXTORD_TEXTORD_H_
|
||||
|
||||
#include "ccstruct.h"
|
||||
#include "bbgrid.h"
|
||||
@ -400,4 +400,4 @@ class Textord {
|
||||
};
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_TEXTORD_TEXTORD_H__
|
||||
#endif // TESSERACT_TEXTORD_TEXTORD_H_
|
||||
|
@ -18,8 +18,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_TEXTORD_WORKINGPARSET_H__
|
||||
#define TESSERACT_TEXTORD_WORKINGPARSET_H__
|
||||
#ifndef TESSERACT_TEXTORD_WORKINGPARSET_H_
|
||||
#define TESSERACT_TEXTORD_WORKINGPARSET_H_
|
||||
|
||||
#include "blobbox.h" // For TO_BLOCK_LIST and BLOCK_LIST.
|
||||
#include "colpartition.h" // For ColPartition_LIST.
|
||||
@ -87,5 +87,5 @@ ELISTIZEH(WorkingPartSet)
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_TEXTORD_WORKINGPARSET_H__
|
||||
#endif // TESSERACT_TEXTORD_WORKINGPARSET_H_
|
||||
|
||||
|
@ -11,8 +11,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef TESSERACT_TRAINING_COMMONTRAINING_H__
|
||||
#define TESSERACT_TRAINING_COMMONTRAINING_H__
|
||||
#ifndef TESSERACT_TRAINING_COMMONTRAINING_H_
|
||||
#define TESSERACT_TRAINING_COMMONTRAINING_H_
|
||||
|
||||
#include "cluster.h"
|
||||
#include "commandlineflags.h"
|
||||
@ -167,4 +167,4 @@ int NumberOfProtos(
|
||||
|
||||
|
||||
void allocNormProtos();
|
||||
#endif // TESSERACT_TRAINING_COMMONTRAINING_H__
|
||||
#endif // TESSERACT_TRAINING_COMMONTRAINING_H_
|
||||
|
@ -15,6 +15,10 @@
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
******************************************************************************/
|
||||
|
||||
#ifndef TESSERACT_TRAINING_MERGENF_H_
|
||||
#define TESSERACT_TRAINING_MERGENF_H_
|
||||
|
||||
/**----------------------------------------------------------------------------
|
||||
Include Files and Type Defines
|
||||
----------------------------------------------------------------------------**/
|
||||
@ -95,3 +99,5 @@ BOOL8 PointInside (
|
||||
FRECT *Rectangle,
|
||||
FLOAT32 X,
|
||||
FLOAT32 Y);
|
||||
|
||||
#endif // TESSERACT_TRAINING_MERGENF_H_
|
||||
|
@ -17,6 +17,9 @@
|
||||
*
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef TESSERACT_TRAINING_TESSOPT_H_
|
||||
#define TESSERACT_TRAINING_TESSOPT_H_
|
||||
|
||||
#include "host.h"
|
||||
|
||||
extern int tessoptind;
|
||||
@ -27,3 +30,5 @@ inT32 argc, //arg count
|
||||
char *argv[], //args
|
||||
const char *arglist //string of arg chars
|
||||
);
|
||||
|
||||
#endif // TESSERACT_TRAINING_TESSOPT_H_
|
||||
|
@ -29,8 +29,8 @@
|
||||
// API calls at all and generate a java user interface from scratch (or
|
||||
// basically generate any kind of java program, possibly even dangerous ones).
|
||||
|
||||
#ifndef TESSERACT_VIEWER_SCROLLVIEW_H__
|
||||
#define TESSERACT_VIEWER_SCROLLVIEW_H__
|
||||
#ifndef TESSERACT_VIEWER_SCROLLVIEW_H_
|
||||
#define TESSERACT_VIEWER_SCROLLVIEW_H_
|
||||
// TODO(rays) Move ScrollView into the tesseract namespace.
|
||||
#ifndef OCR_SCROLLVIEW_H__
|
||||
|
||||
@ -415,4 +415,4 @@ class ScrollView {
|
||||
};
|
||||
|
||||
#endif // OCR_SCROLLVIEW_H__
|
||||
#endif // TESSERACT_VIEWER_SCROLLVIEW_H__
|
||||
#endif // TESSERACT_VIEWER_SCROLLVIEW_H_
|
||||
|
@ -25,8 +25,8 @@
|
||||
// A SVMenuNode can both be used in the context_ of popup menus as well as
|
||||
// menu bars.
|
||||
|
||||
#ifndef TESSERACT_VIEWER_SVMNODE_H__
|
||||
#define TESSERACT_VIEWER_SVMNODE_H__
|
||||
#ifndef TESSERACT_VIEWER_SVMNODE_H_
|
||||
#define TESSERACT_VIEWER_SVMNODE_H_
|
||||
|
||||
#include "strngs.h"
|
||||
|
||||
@ -93,4 +93,4 @@ class SVMenuNode {
|
||||
STRING description_;
|
||||
};
|
||||
|
||||
#endif // TESSERACT_VIEWER_SVMNODE_H__
|
||||
#endif // TESSERACT_VIEWER_SVMNODE_H_
|
||||
|
@ -21,8 +21,8 @@
|
||||
// classes, which are used for thread/process creation & synchronization
|
||||
// and network connection.
|
||||
|
||||
#ifndef TESSERACT_VIEWER_SVUTIL_H__
|
||||
#define TESSERACT_VIEWER_SVUTIL_H__
|
||||
#ifndef TESSERACT_VIEWER_SVUTIL_H_
|
||||
#define TESSERACT_VIEWER_SVUTIL_H_
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifndef __GNUC__
|
||||
@ -155,4 +155,4 @@ class SVNetwork {
|
||||
char* buffer_ptr_; // Unix (strtok_r)
|
||||
};
|
||||
|
||||
#endif // TESSERACT_VIEWER_SVUTIL_H__
|
||||
#endif // TESSERACT_VIEWER_SVUTIL_H_
|
||||
|
@ -18,14 +18,14 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_WORDREC_LM_CONSISTENCY_H_
|
||||
#define TESSERACT_WORDREC_LM_CONSISTENCY_H_
|
||||
|
||||
#include "dawg.h"
|
||||
#include "dict.h"
|
||||
#include "host.h"
|
||||
#include "ratngs.h"
|
||||
|
||||
#ifndef TESSERACT_WORDREC_CONSISTENCY_H_
|
||||
#define TESSERACT_WORDREC_CONSISTENCY_H_
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
static const char * const XHeightConsistencyEnumName[] = {
|
||||
@ -137,7 +137,6 @@ struct LMConsistencyInfo {
|
||||
XHeightConsistencyEnum xht_decision;
|
||||
};
|
||||
|
||||
|
||||
} // namespace tesseract
|
||||
|
||||
#endif // TESSERACT_WORDREC_CONSISTENCY_H_
|
||||
#endif // TESSERACT_WORDREC_LM_CONSISTENCY_H_
|
||||
|
@ -16,8 +16,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef TESSERACT_WORDREC_WORDREC_H__
|
||||
#define TESSERACT_WORDREC_WORDREC_H__
|
||||
#ifndef TESSERACT_WORDREC_WORDREC_H_
|
||||
#define TESSERACT_WORDREC_WORDREC_H_
|
||||
|
||||
#include "associate.h"
|
||||
#include "classify.h"
|
||||
@ -491,4 +491,4 @@ class Wordrec : public Classify {
|
||||
|
||||
} // namespace tesseract
|
||||
|
||||
#endif // TESSERACT_WORDREC_WORDREC_H__
|
||||
#endif // TESSERACT_WORDREC_WORDREC_H_
|
||||
|
Loading…
Reference in New Issue
Block a user