"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "common/core_main.cc" between
free42-3.0.3.tar.gz and free42-3.0.4.tar.gz

About: Free42 is a re-implementation of the HP-42S scientific calculator and the HP-82240 printer.

core_main.cc  (free42-3.0.3):core_main.cc  (free42-3.0.4)
skipping to change at line 3884 skipping to change at line 3884
char hpbuf[48]; char hpbuf[48];
int len = ascii2hp(hpbuf, 44, buf); int len = ascii2hp(hpbuf, 44, buf);
int tlen = len + reg_alpha_length; int tlen = len + reg_alpha_length;
if (tlen > 44) { if (tlen > 44) {
int off = tlen - 44; int off = tlen - 44;
memmove(reg_alpha, reg_alpha + off, off); memmove(reg_alpha, reg_alpha + off, off);
reg_alpha_length -= off; reg_alpha_length -= off;
} }
memcpy(reg_alpha + reg_alpha_length, hpbuf, len); memcpy(reg_alpha + reg_alpha_length, hpbuf, len);
reg_alpha_length += len; reg_alpha_length += len;
if (len > 0) {
flags.f.alpha_data_input = 1;
if (flags.f.trace_print && flags.f.printer_exists)
docmd_pra(NULL);
}
} else { } else {
int rows = 0, cols = 0; int rows = 0, cols = 0;
int col = 1; int col = 1;
int max_cell_size = 0; int max_cell_size = 0;
int cell_size = 0; int cell_size = 0;
int pos = 0; int pos = 0;
char lastchar, c = 0; char lastchar, c = 0;
while (true) { while (true) {
lastchar = c; lastchar = c;
c = buf[pos++]; c = buf[pos++];
skipping to change at line 4169 skipping to change at line 4174
} }
} }
if (recall_result(v) != ERR_NONE) { if (recall_result(v) != ERR_NONE) {
display_error(ERR_INSUFFICIENT_MEMORY, false); display_error(ERR_INSUFFICIENT_MEMORY, false);
redisplay(); redisplay();
return; return;
} }
mode_number_entry = false; mode_number_entry = false;
mode_varmenu = false; mode_varmenu = false;
flags.f.stack_lift_disable = 0; flags.f.stack_lift_disable = 0;
flags.f.message = 0; if (v->type == TYPE_REAL || v->type == TYPE_COMPLEX)
flags.f.two_line_message = 0; flags.f.numeric_data_input = 1;
} }
flags.f.message = 0;
flags.f.two_line_message = 0;
redisplay(); redisplay();
} }
void set_alpha_entry(bool state) { void set_alpha_entry(bool state) {
mode_alpha_entry = state; mode_alpha_entry = state;
} }
void set_running(bool state) { void set_running(bool state) {
if (mode_running != state) { if (mode_running != state) {
mode_running = state; mode_running = state;
 End of changes. 3 change blocks. 
2 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)