Fixed crash

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@114 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
theraysmith 2007-08-30 18:31:57 +00:00
parent 4df0a77bc4
commit eaef4c989f
2 changed files with 5 additions and 4 deletions

View File

@ -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)

View File

@ -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