Stefan Weil
6d170a15ec
Replace tabs by blanks in source code
...
blobs.cpp had many tabs and was formatted with clang-format.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-03 16:29:14 +02:00
zdenop
c9efe5f509
Merge pull request #1737 from stweil/nwmain
...
Remove nwmain.h and fix syntax error
2018-07-03 16:12:57 +02:00
Stefan Weil
626a229cac
Remove nwmain.h
...
The macro DECLARE_MAIN is not used by the current Tesseract code.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-03 15:54:41 +02:00
Stefan Weil
f8684cb0fd
Fix syntax error (regression)
...
It was introduced in commit bb7bb1f0b8
.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-03 15:53:42 +02:00
zdenop
4b26b8d9a9
Merge pull request #1735 from stweil/pdblock
...
Remove blckerr.h
2018-07-03 15:24:09 +02:00
zdenop
04e0273a59
Merge pull request #1736 from stweil/comments
...
Remove old comments for exceptions
2018-07-03 15:23:27 +02:00
Stefan Weil
bb7bb1f0b8
Remove old comments for exceptions
...
Exceptions are no longer used.
Remove also some history comments and fix several comments.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-03 14:53:00 +02:00
Stefan Weil
889f7eaa1b
Remove blckerr.h
...
Move the two ERRCODE constants which are still in use to pdblock.cpp.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-03 14:08:57 +02:00
zdenop
b0c9d5b4f4
Merge pull request #1734 from stweil/danerror
...
Replace function DoError and remove danerror.cpp, danerror.h
2018-07-03 13:30:42 +02:00
Stefan Weil
872813245d
Replace function DoError and remove danerror.cpp, danerror.h
...
This allows also removing all error trap macros.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-03 13:21:17 +02:00
zdenop
412186b396
Merge pull request #1733 from stweil/cutil
...
Clean up cutil.h
2018-07-03 12:51:35 +02:00
Stefan Weil
6a553f9f28
Clean up cutil.h
...
* Remove unrelated include statements from cutil.h.
* Remove macros FALSE, TRUE.
* Move macro CHARS_PER_LINE from cutil.h to dict.h.
* Remove unneeded macro _ARGS.
* Remove unused typedef statements.
* Remove macro new_line (only used once).
* Remove unused macro print_string.
* Update include statements for other source files.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-03 11:31:41 +02:00
zdenop
a0ed0b4987
Merge pull request #1732 from stweil/headerfiles
...
Remove unused include files
2018-07-03 07:57:15 +02:00
zdenop
7437a03698
Merge pull request #1728 from Ranigad/patch-1
...
Update tesseract.1.asc
2018-07-03 07:27:57 +02:00
zdenop
66ea6c4470
Merge pull request #1730 from stweil/pi
...
Remove unneeded macro definition for M_PI
2018-07-03 07:26:59 +02:00
zdenop
58b1755bbd
Merge pull request #1731 from stweil/cutil
...
Remove functions open_file, exists_file
2018-07-03 07:26:41 +02:00
Stefan Weil
9325fbe322
Remove unused include files
...
ccstruct/hpdsizes.h was not used at all.
cutil/const.h was included, but not needed.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-03 07:25:38 +02:00
Stefan Weil
2cd2d3200f
Remove functions open_file, exists_file
...
cutil.cpp is now no longer needed and removed, too.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-03 06:45:34 +02:00
Charles Li
84f315db6c
Update tesseract.1.asc
...
Minor typo in options section for --user-patterns
2018-07-02 13:27:45 -07:00
Stefan Weil
cbd7b15788
Remove unneeded macro definition for M_PI
...
There is already one in platform.h.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-02 21:59:16 +02:00
zdenop
a0291c7651
Merge pull request #1727 from stweil/pi
...
Replace macro PI by macro M_PI
2018-07-02 21:53:39 +02:00
Stefan Weil
f7b61891bc
Replace macro PI by macro M_PI
...
One definition for pi is sufficient.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-02 21:26:53 +02:00
zdenop
c323312c17
Merge pull request #1725 from stweil/doerror
...
Replace Efopen by fopen and remove efio.cpp, efio.h
2018-07-02 20:53:28 +02:00
zdenop
2227474331
Merge pull request #1726 from stweil/rand
...
Remove unused function long_rand
2018-07-02 20:51:21 +02:00
Stefan Weil
3840a769d6
Remove unused function long_rand
...
Remove also some old comments.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-02 20:11:42 +02:00
Stefan Weil
b57afc7c78
Replace Efopen by fopen and remove efio.cpp, efio.h
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-02 17:46:28 +02:00
zdenop
909af5d978
Merge pull request #1724 from stweil/float
...
Replace FLOAT32 by float data type and remove MAX_FLOAT32, MIN_FLOAT32
2018-07-02 13:57:16 +02:00
Stefan Weil
faae87beaa
Replace FLOAT32 by float data type
...
On most systems float is the IEEE 754 single-precision binary
floating-point format (32 bits). Tesseract does not support other systems.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-02 13:29:39 +02:00
Stefan Weil
f6c3c8cf4d
Replace MAX_FLOAT32 by standard FLT_MAX and remove unused MIN_FLOAT32
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-02 13:29:39 +02:00
zdenop
7ec337d9b8
Merge pull request #1723 from stweil/double
...
Replace FLOAT64 by double data type
2018-07-02 09:45:07 +02:00
Stefan Weil
919901eb19
Replace FLOAT64 by double data type
...
On most systems double is the IEEE 754 double-precision binary
floating-point format (64 bits). Tesseract does not support other systems.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-02 08:07:37 +02:00
zdenop
1a181a3150
Merge pull request #1722 from stweil/cov
...
Fix several issues reported by Coverity Scan
2018-07-01 21:03:42 +02:00
Stefan Weil
abbd78a053
Fix CID 1340271, 1340272, 1340273, 1340274 (Use after free)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 20:18:39 +02:00
Stefan Weil
52b44c5ebf
Fix CID 1164530 (Logically dead code)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 20:01:56 +02:00
Stefan Weil
57970443b4
Fix CID 1393661 (Arguments in wrong order)
...
It did not cause a problem as both arguments were 0.
Update also the function prototype of HistogramRectOCL to
accept a void pointer which allows removing a type cast.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 19:40:44 +02:00
Stefan Weil
09da044a77
Fix CID 1164553 (Division or modulo by float zero)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 19:27:01 +02:00
Stefan Weil
1b303e5d37
Fix CID 1393662 Resource leak
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 19:27:01 +02:00
Stefan Weil
d3c4642d8f
Fix CID 1393662 (Resource leak)
2018-07-01 19:27:01 +02:00
Stefan Weil
98758fb300
opencl: Use std::vector and clean code
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 19:27:01 +02:00
Stefan Weil
53795a88b5
Fix CID 1158180 Argument cannot be negative
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 19:18:32 +02:00
Egor Pugin
13ec8a7444
Merge pull request #1720 from stweil/clang-format
...
Update rules for clang-format
2018-07-01 12:01:14 +03:00
Egor Pugin
a67dc13207
Merge pull request #1721 from stweil/pdfrenderer
...
pdfrenderer: Fix ClipBaseline and optimize code
2018-07-01 12:01:00 +03:00
Stefan Weil
6801085376
pdfrenderer: Fix ClipBaseline and optimize code
...
The division was made with integers, giving a wrong result.
* Avoid division and use pure integer operations.
* Add missing "static" attribute.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 08:33:56 +02:00
Stefan Weil
1011e001d8
Update rules for clang-format
...
Add indentation of preprocessor directives.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 08:11:22 +02:00
zdenop
a414443fc4
Merge pull request #1719 from stweil/cov-baseapi
...
Fix issues reported by Coverity Scan for baseapi
2018-07-01 08:10:54 +02:00
Stefan Weil
e8e94d372c
Fix CID 1340287 (Unchecked return value)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 07:54:11 +02:00
Stefan Weil
a49b8f1d21
Fix CID 1297960 (Dereference after null check)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 07:54:11 +02:00
Stefan Weil
86eb4dfcdc
Fix CID 1164646 (Uninitialized pointer field)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 07:54:11 +02:00
zdenop
b970fae201
Merge pull request #1559 from stweil/autoconf
...
Remove autoconf-archive dependency
2018-07-01 07:45:40 +02:00
Stefan Weil
6b250b5812
Remove autoconf-archive dependency
...
It creates much confusion and causes many issue reports,
so let us drop this dependency.
The two new files in the m4/ directory are current copies from GitHub
(https://github.com/autoconf-archive/autoconf-archive/ ).
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 22:23:22 +02:00