mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
Use standard macros for format strings
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
f2252fdadc
commit
ef1d9600b1
@ -544,8 +544,7 @@ BOOL8 Tesseract::process_cmd_win_event( // UI command semantics
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
sprintf(msg, "Unrecognised event " INT32FORMAT "(%s)",
|
sprintf(msg, "Unrecognised event %" PRId32 "(%s)", cmd_event, new_value);
|
||||||
cmd_event, new_value);
|
|
||||||
image_win->AddMessage(msg);
|
image_win->AddMessage(msg);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -734,8 +734,8 @@ class TO_BLOCK:public ELIST_LINK
|
|||||||
for (row_it.mark_cycle_pt(); !row_it.cycled_list();
|
for (row_it.mark_cycle_pt(); !row_it.cycled_list();
|
||||||
row_it.forward()) {
|
row_it.forward()) {
|
||||||
row = row_it.data();
|
row = row_it.data();
|
||||||
tprintf("Row range (%g,%g), para_c=%g, blobcount=" INT32FORMAT
|
tprintf("Row range (%g,%g), para_c=%g, blobcount=%" PRId32 "\n",
|
||||||
"\n", row->min_y(), row->max_y(), row->parallel_c(),
|
row->min_y(), row->max_y(), row->parallel_c(),
|
||||||
row->blob_list()->length());
|
row->blob_list()->length());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -196,7 +196,7 @@ void PDBLK::plot( //draw outline
|
|||||||
// serial,startpt.x(),startpt.y());
|
// serial,startpt.x(),startpt.y());
|
||||||
char temp_buff[34];
|
char temp_buff[34];
|
||||||
#if defined(__UNIX__) || defined(MINGW)
|
#if defined(__UNIX__) || defined(MINGW)
|
||||||
sprintf(temp_buff, INT32FORMAT, serial);
|
sprintf(temp_buff, "%" PRId32, serial);
|
||||||
#else
|
#else
|
||||||
ultoa (serial, temp_buff, 10);
|
ultoa (serial, temp_buff, 10);
|
||||||
#endif
|
#endif
|
||||||
|
@ -254,7 +254,7 @@ void POLY_BLOCK::plot(ScrollView* window, inT32 num) {
|
|||||||
window->TextAttributes("Times", 80, false, false, false);
|
window->TextAttributes("Times", 80, false, false, false);
|
||||||
char temp_buff[34];
|
char temp_buff[34];
|
||||||
#if defined(__UNIX__) || defined(MINGW)
|
#if defined(__UNIX__) || defined(MINGW)
|
||||||
sprintf(temp_buff, INT32FORMAT, num);
|
sprintf(temp_buff, "%" PRId32, num);
|
||||||
#else
|
#else
|
||||||
ltoa (num, temp_buff, 10);
|
ltoa (num, temp_buff, 10);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user