提交 eaef4c98 编写于 作者: T theraysmith

Fixed crash

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@114 d0cd1f9f-072b-0410-8dd7-cf729c803f20
上级 4df0a77b
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册