Skip to content

Commit

Permalink
Rename platform.h to export.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Dec 31, 2020
1 parent 82b20d4 commit 664a718
Show file tree
Hide file tree
Showing 30 changed files with 31 additions and 30 deletions.
2 changes: 1 addition & 1 deletion include/tesseract/baseapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#endif

#include "pageiterator.h"
#include "platform.h"
#include "export.h"
#include "publictypes.h"
#include "resultiterator.h"
#include "thresholder.h"
Expand Down
2 changes: 1 addition & 1 deletion include/tesseract/capi.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# include <stdbool.h>
# include <stdio.h>

# include "platform.h"
# include "export.h"
#endif

#ifdef __cplusplus
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////
// File: platform.h
// File: export.h
// Description: Place holder
//
// (C) Copyright 2006, Google Inc.
Expand Down
2 changes: 1 addition & 1 deletion include/tesseract/ltrresultiterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define TESSERACT_CCMAIN_LTR_RESULT_ITERATOR_H_

#include "pageiterator.h" // for PageIterator
#include "platform.h" // for TESS_API
#include "export.h" // for TESS_API
#include "publictypes.h" // for PageIteratorLevel
#include "unichar.h" // for StrongScriptDirection

Expand Down
3 changes: 2 additions & 1 deletion include/tesseract/osdetect.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
#ifndef TESSERACT_CCMAIN_OSDETECT_H_
#define TESSERACT_CCMAIN_OSDETECT_H_

#include "platform.h" // for TESS_API
#include "export.h" // for TESS_API

#include <vector> // for std::vector

namespace tesseract {
Expand Down
2 changes: 1 addition & 1 deletion include/tesseract/pageiterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifndef TESSERACT_CCMAIN_PAGEITERATOR_H_
#define TESSERACT_CCMAIN_PAGEITERATOR_H_

#include "platform.h"
#include "export.h"
#include "publictypes.h"

struct Pix;
Expand Down
2 changes: 1 addition & 1 deletion include/tesseract/renderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#ifndef TESSERACT_API_RENDERER_H_
#define TESSERACT_API_RENDERER_H_

#include "platform.h"
#include "export.h"

// To avoid collision with other typenames include the ABSOLUTE MINIMUM
// complexity of includes here. Use forward declarations wherever possible
Expand Down
2 changes: 1 addition & 1 deletion include/tesseract/resultiterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#define TESSERACT_CCMAIN_RESULT_ITERATOR_H_

#include "ltrresultiterator.h" // for LTRResultIterator
#include "platform.h" // for TESS_API, TESS_LOCAL
#include "export.h" // for TESS_API, TESS_LOCAL
#include "publictypes.h" // for PageIteratorLevel
#include "unichar.h" // for StrongScriptDirection

Expand Down
2 changes: 1 addition & 1 deletion include/tesseract/thresholder.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef TESSERACT_CCMAIN_THRESHOLDER_H_
#define TESSERACT_CCMAIN_THRESHOLDER_H_

#include "platform.h"
#include "export.h"
#include "publictypes.h"

struct Pix;
Expand Down
2 changes: 1 addition & 1 deletion include/tesseract/unichar.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef TESSERACT_CCUTIL_UNICHAR_H_
#define TESSERACT_CCUTIL_UNICHAR_H_

#include "platform.h"
#include "export.h"

#include <cstring>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion src/arch/intsimdmatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#ifndef TESSERACT_ARCH_INTSIMDMATRIX_H_
#define TESSERACT_ARCH_INTSIMDMATRIX_H_

#include <tesseract/platform.h>
#include <tesseract/export.h>

#include <cstdint>
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion src/arch/simddetect.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifndef TESSERACT_ARCH_SIMDDETECT_H_
#define TESSERACT_ARCH_SIMDDETECT_H_

#include <tesseract/platform.h>
#include <tesseract/export.h>

namespace tesseract {

Expand Down
2 changes: 1 addition & 1 deletion src/ccstruct/coutln.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "rect.h" // for TBOX
#include "scrollview.h" // for ScrollView, ScrollView::Color

#include <tesseract/platform.h> // for DLLSYM
#include <tesseract/export.h> // for DLLSYM

#include <cstdint> // for int16_t, int32_t

Expand Down
2 changes: 1 addition & 1 deletion src/ccstruct/normalis.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifndef NORMALIS_H
#define NORMALIS_H

#include <tesseract/platform.h>
#include <tesseract/export.h>

struct Pix;

Expand Down
2 changes: 1 addition & 1 deletion src/ccstruct/points.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "elst.h"
#include "errcode.h" // for ASSERT_HOST

#include <tesseract/platform.h> // for DLLSYM
#include <tesseract/export.h> // for DLLSYM

#include <cmath> // for sqrt, atan2
#include <cstdio>
Expand Down
2 changes: 1 addition & 1 deletion src/ccstruct/rect.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "scrollview.h" // for ScrollView, ScrollView::Color
#include "tprintf.h" // for tprintf

#include <tesseract/platform.h> // for DLLSYM
#include <tesseract/export.h> // for DLLSYM

#include <algorithm> // for std::max, std::min
#include <cmath> // for std::ceil, std::floor
Expand Down
2 changes: 1 addition & 1 deletion src/ccutil/bits16.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#define BITS16_H

#include <cstdint> // for uint8_t, ...
#include <tesseract/platform.h> // for DLLSYM
#include <tesseract/export.h> // for DLLSYM

class BITS16 {
public:
Expand Down
2 changes: 1 addition & 1 deletion src/ccutil/bitvector.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef TESSERACT_CCUTIL_BITVECTOR_H_
#define TESSERACT_CCUTIL_BITVECTOR_H_

#include <tesseract/platform.h>
#include <tesseract/export.h>

#include <cassert>
#include <cstdint> // for uint8_t
Expand Down
2 changes: 1 addition & 1 deletion src/ccutil/errcode.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef ERRCODE_H
#define ERRCODE_H

#include <tesseract/platform.h> // for TESS_API
#include <tesseract/export.h> // for TESS_API

namespace tesseract {

Expand Down
2 changes: 1 addition & 1 deletion src/ccutil/host.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#ifndef TESSERACT_CCUTIL_HOST_H_
#define TESSERACT_CCUTIL_HOST_H_

#include <tesseract/platform.h>
#include <tesseract/export.h>

#include <climits>
#include <limits>
Expand Down
2 changes: 1 addition & 1 deletion src/ccutil/params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include "params.h"

#include "host.h" // tesseract/platform.h, windows.h for MAX_PATH
#include "host.h" // tesseract/export.h, windows.h for MAX_PATH
#include "tprintf.h"

#include <climits> // for INT_MIN, INT_MAX
Expand Down
2 changes: 1 addition & 1 deletion src/ccutil/scanutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef TESSERACT_CCUTIL_SCANUTILS_H_
#define TESSERACT_CCUTIL_SCANUTILS_H_

#include <tesseract/platform.h>
#include <tesseract/export.h>

#include <cstdio> // for FILE

Expand Down
2 changes: 1 addition & 1 deletion src/ccutil/strngs.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef STRNGS_H
#define STRNGS_H

#include <tesseract/platform.h> // for TESS_API
#include <tesseract/export.h> // for TESS_API

#include <cassert> // for assert
#include <cstdint> // for uint32_t
Expand Down
2 changes: 1 addition & 1 deletion src/ccutil/tprintf.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifndef TESSERACT_CCUTIL_TPRINTF_H
#define TESSERACT_CCUTIL_TPRINTF_H

#include <tesseract/platform.h> // for TESS_API
#include <tesseract/export.h> // for TESS_API

namespace tesseract {

Expand Down
2 changes: 1 addition & 1 deletion src/cutil/emalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#ifndef EMALLOC_H
#define EMALLOC_H

#include <tesseract/platform.h>
#include <tesseract/export.h>

namespace tesseract {

Expand Down
2 changes: 1 addition & 1 deletion src/cutil/oldlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#ifndef LIST_H
#define LIST_H

#include <tesseract/platform.h>
#include <tesseract/export.h>

namespace tesseract {

Expand Down
2 changes: 1 addition & 1 deletion src/training/pango/boxchar.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <vector>

#include "allheaders.h" // from Leptonica
#include <tesseract/platform.h>
#include <tesseract/export.h>

struct Box;

Expand Down
2 changes: 1 addition & 1 deletion src/training/unicharset/fileio.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "genericvector.h" // for GenericVector
#include "strngs.h" // for STRING

#include <tesseract/platform.h>
#include <tesseract/export.h>

#include <cstddef>
#include <cstdio>
Expand Down
2 changes: 1 addition & 1 deletion src/training/unicharset/unicharset_training_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "export.h"

#include <tesseract/platform.h>
#include <tesseract/export.h>

#include <string>

Expand Down
2 changes: 1 addition & 1 deletion src/viewer/scrollview.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#ifndef TESSERACT_VIEWER_SCROLLVIEW_H_
#define TESSERACT_VIEWER_SCROLLVIEW_H_

#include <tesseract/platform.h>
#include <tesseract/export.h>

#include <cstdio>
#include <mutex>
Expand Down

0 comments on commit 664a718

Please sign in to comment.