1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Upstream fix for decimal point stack push in RPN mode.

This commit is contained in:
Christian Weisgerber 2002-06-04 21:35:59 +00:00
parent 25f5b84389
commit 2ebf144a06
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=60622
2 changed files with 24 additions and 0 deletions

View File

@ -6,6 +6,7 @@
PORTNAME= calcoo
PORTVERSION= 1.3.8
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.physics.umn.edu/~kaminski/calcoo/

View File

@ -0,0 +1,23 @@
$FreeBSD$
--- src/c_input.c.orig Sun Jun 2 20:50:25 2002
+++ src/c_input.c Tue Jun 4 23:28:14 2002
@@ -118,10 +118,15 @@
void call_dot(void)
{
- if(cpu->last_action != ACTION_INPUT) {
- cpu->y = cpu->x;
+ if (cpu->last_action != ACTION_INPUT) {
+ if ((cpu->rpn_mode)
+ && (cpu->last_action == ACTION_ENTER)) {
+ push_stack();
+ cpu->y = cpu->x;
+ }
reset_input();
cpu->last_action = ACTION_INPUT;
+ cpu_to_output();
}
if (cpu->d->input_field == INPUT_FIELD_INT) {