mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-28 05:13:49 +08:00
Fixed crash
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@114 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
4df0a77bc4
commit
eaef4c989f
@ -39,7 +39,7 @@ char *hyphen_string = 0;
|
||||
char *hyphen_unichar_lengths = 0;
|
||||
int *hyphen_unichar_offsets = NULL;
|
||||
float hyphen_rating = MAXFLOAT;
|
||||
int hyphen_state = 0;
|
||||
NODE_REF hyphen_state = 0;
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
F u n c t i o n s
|
||||
@ -52,7 +52,7 @@ int hyphen_state = 0;
|
||||
* line to permute the other half of the word.
|
||||
**********************************************************************/
|
||||
void set_hyphen_word(char *word, char *unichar_lengths, int *unichar_offsets,
|
||||
float rating, int state) {
|
||||
float rating, NODE_REF state) {
|
||||
int char_index = strlen (unichar_lengths) - 1;
|
||||
|
||||
if (display_ratings)
|
||||
|
@ -30,6 +30,7 @@
|
||||
----------------------------------------------------------------------*/
|
||||
#include "choices.h"
|
||||
#include "emalloc.h"
|
||||
#include "dawg.h"
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
V a r i a b l e s
|
||||
@ -39,7 +40,7 @@ extern char *hyphen_string;
|
||||
extern char *hyphen_unichar_lengths;
|
||||
extern int *hyphen_unichar_offsets;
|
||||
extern float hyphen_rating;
|
||||
extern int hyphen_state;
|
||||
extern NODE_REF hyphen_state;
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
M a c r o s
|
||||
@ -120,5 +121,5 @@ last_word_on_line = FALSE
|
||||
Public Function Prototypes
|
||||
----------------------------------------------------------------------*/
|
||||
void set_hyphen_word(char *word, char *unichar_lengths, int *unichar_offsets,
|
||||
float rating, int state);
|
||||
float rating, NODE_REF state);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user