mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Upstream fix for decimal point stack push in RPN mode.
This commit is contained in:
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
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
PORTNAME= calcoo
|
PORTNAME= calcoo
|
||||||
PORTVERSION= 1.3.8
|
PORTVERSION= 1.3.8
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= math
|
CATEGORIES= math
|
||||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
||||||
http://www.physics.umn.edu/~kaminski/calcoo/
|
http://www.physics.umn.edu/~kaminski/calcoo/
|
||||||
|
|
23
math/calcoo/files/patch-src_c__input.c
Normal file
23
math/calcoo/files/patch-src_c__input.c
Normal 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) {
|
Loading…
Add table
Reference in a new issue