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;
|
||||
|
||||
default:
|
||||
sprintf(msg, "Unrecognised event " INT32FORMAT "(%s)",
|
||||
cmd_event, new_value);
|
||||
sprintf(msg, "Unrecognised event %" PRId32 "(%s)", cmd_event, new_value);
|
||||
image_win->AddMessage(msg);
|
||||
break;
|
||||
}
|
||||
|
@ -734,8 +734,8 @@ class TO_BLOCK:public ELIST_LINK
|
||||
for (row_it.mark_cycle_pt(); !row_it.cycled_list();
|
||||
row_it.forward()) {
|
||||
row = row_it.data();
|
||||
tprintf("Row range (%g,%g), para_c=%g, blobcount=" INT32FORMAT
|
||||
"\n", row->min_y(), row->max_y(), row->parallel_c(),
|
||||
tprintf("Row range (%g,%g), para_c=%g, blobcount=%" PRId32 "\n",
|
||||
row->min_y(), row->max_y(), row->parallel_c(),
|
||||
row->blob_list()->length());
|
||||
}
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ void PDBLK::plot( //draw outline
|
||||
// serial,startpt.x(),startpt.y());
|
||||
char temp_buff[34];
|
||||
#if defined(__UNIX__) || defined(MINGW)
|
||||
sprintf(temp_buff, INT32FORMAT, serial);
|
||||
sprintf(temp_buff, "%" PRId32, serial);
|
||||
#else
|
||||
ultoa (serial, temp_buff, 10);
|
||||
#endif
|
||||
|
@ -254,7 +254,7 @@ void POLY_BLOCK::plot(ScrollView* window, inT32 num) {
|
||||
window->TextAttributes("Times", 80, false, false, false);
|
||||
char temp_buff[34];
|
||||
#if defined(__UNIX__) || defined(MINGW)
|
||||
sprintf(temp_buff, INT32FORMAT, num);
|
||||
sprintf(temp_buff, "%" PRId32, num);
|
||||
#else
|
||||
ltoa (num, temp_buff, 10);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user