Skip to content

Commit

Permalink
put info about (API) version; fix typo
Browse files Browse the repository at this point in the history
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1117 d0cd1f9f-072b-0410-8dd7-cf729c803f20
  • Loading branch information
zdenop committed Jun 22, 2014
1 parent 41bd040 commit 905e616
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 74 deletions.
8 changes: 2 additions & 6 deletions api/baseapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@
#include <iterator>
#include <fstream>

#if !defined(VERSION)
#include "version.h"
#endif

#include "allheaders.h"

#include "baseapi.h"
Expand Down Expand Up @@ -142,7 +138,7 @@ TessBaseAPI::~TessBaseAPI() {
* Returns the version identifier as a static string. Do not delete.
*/
const char* TessBaseAPI::Version() {
return VERSION;
return TESSERACT_VERSION_STR;
}

/**
Expand Down Expand Up @@ -1948,7 +1944,7 @@ void TessBaseAPI::SetFillLatticeFunc(FillLatticeFunc f) {
/** Common code for setting the image. */
bool TessBaseAPI::InternalSetImage() {
if (tesseract_ == NULL) {
tprintf("Please call Init before attempting to send an image.");
tprintf("Please call Init before attempting to set an image.");
return false;
}
if (thresholder_ == NULL)
Expand Down
5 changes: 5 additions & 0 deletions api/baseapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
#ifndef TESSERACT_API_BASEAPI_H__
#define TESSERACT_API_BASEAPI_H__

#define TESSERACT_VERSION_STR "3.03.00"
#define TESSERACT_VERSION 0x030300
#define MAKE_VERSION(major, minor, patch) (((major) << 16) | ((minor) << 8) | \
(patch))

#include <stdio.h>
// To avoid collision with other typenames include the ABSOLUTE MINIMUM
// complexity of includes here. Use forward declarations wherever possible
Expand Down
6 changes: 1 addition & 5 deletions api/pdfrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
#include "cube_utils.h"
#include "allheaders.h"

#if !defined(VERSION)
#include "version.h"
#endif

#ifdef _MSC_VER
#include "mathfix.h"
#endif
Expand Down Expand Up @@ -731,7 +727,7 @@ bool TessPDFRenderer::EndDocumentHandler() {
" /CreationDate (D:%s)\n"
" /Title (%s)"
">>\n"
"endobj\n", obj_, VERSION, datestr, title());
"endobj\n", obj_, TESSERACT_VERSION_STR, datestr, title());
lept_free(datestr);
AppendPDFObject(buf);

Expand Down
7 changes: 2 additions & 5 deletions api/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
#include "genericvector.h"
#include "renderer.h"

#if !defined(VERSION)
#include "version.h"
#endif

namespace tesseract {

/**********************************************************************
Expand Down Expand Up @@ -140,7 +136,8 @@ bool TessHOcrRenderer::BeginDocumentHandler() {
"</title>\n"
"<meta http-equiv=\"Content-Type\" content=\"text/html;"
"charset=utf-8\" />\n"
" <meta name='ocr-system' content='tesseract " VERSION "' />\n"
" <meta name='ocr-system' content='tesseract " TESSERACT_VERSION_STR
"' />\n"
" <meta name='ocr-capabilities' content='ocr_page ocr_carea ocr_par"
" ocr_line ocrx_word'/>\n"
"</head>\n<body>\n");
Expand Down
4 changes: 0 additions & 4 deletions vs2008/libtesseract/libtesseract.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -2410,10 +2410,6 @@
RelativePath="..\..\ccstruct\vecfuncs.h"
>
</File>
<File
RelativePath="..\port\version.h"
>
</File>
<File
RelativePath="..\..\ccstruct\werd.h"
>
Expand Down
25 changes: 0 additions & 25 deletions vs2008/port/version.h

This file was deleted.

1 change: 0 additions & 1 deletion vs2010/libtesseract/libtesseract.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,6 @@ copy "$(TargetDir)$(TargetName).lib" ..\..\..\lib
<ClInclude Include="..\..\ccutil\unicity_table.h" />
<ClInclude Include="..\..\ccutil\unicodes.h" />
<ClInclude Include="..\..\ccstruct\vecfuncs.h" />
<ClInclude Include="..\port\version.h" />
<ClInclude Include="..\..\ccstruct\werd.h" />
<ClInclude Include="..\..\ccmain\werdit.h" />
<ClInclude Include="..\..\cube\word_altlist.h" />
Expand Down
3 changes: 0 additions & 3 deletions vs2010/libtesseract/libtesseract.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -1605,9 +1605,6 @@
<ClInclude Include="..\..\ccstruct\vecfuncs.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\port\version.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\ccstruct\werd.h">
<Filter>Header Files</Filter>
</ClInclude>
Expand Down
25 changes: 0 additions & 25 deletions vs2010/port/version.h

This file was deleted.

0 comments on commit 905e616

Please sign in to comment.