Skip to content

Commit

Permalink
Fixed assert problems
Browse files Browse the repository at this point in the history
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@238 d0cd1f9f-072b-0410-8dd7-cf729c803f20
  • Loading branch information
theraysmith committed Jun 2, 2009
1 parent 880aa64 commit 98204f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
14 changes: 0 additions & 14 deletions ccstruct/callcpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,6 @@ char *word_answer; //correct word
inT32 matcher_pass; //pass in chopper.c
inT32 bits_in_states; //no of bits in states

#ifndef __UNIX__
/**********************************************************************
* assert
*
* A version of assert for C on NT.
**********************************************************************/

void assert( //recog one owrd
int testing //assert fail if false
) {
ASSERT_HOST(testing);
}
#endif

void setup_cp_maps() {
cp_maps[0] = tess_cp_mapping0;
cp_maps[1] = tess_cp_mapping1;
Expand Down
4 changes: 1 addition & 3 deletions cutil/callcpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ extern inT32 matcher_pass; //pass in chopper.c
extern inT32 bits_in_states; //no of bits in states

#ifndef __UNIX__
void assert( //recog one owrd
int testing //assert fail if false
);
#include <assert.h>
#endif
void setup_cp_maps();
void trace_stack(); //Trace current stack
Expand Down

0 comments on commit 98204f0

Please sign in to comment.