2
0
forked from dirkmueller/bc

Compare commits

...

10 Commits

Author SHA256 Message Date
Dirk Müller
d490004566
test commit 2024-06-20 12:00:58 +02:00
Ana Guerrero
6f64011144 Accepting request 1149164 from Base:System
Prepare for RPM 4.20 (forwarded request 1149154 from dimstar)

OBS-URL: https://build.opensuse.org/request/show/1149164
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=27
2024-02-23 15:44:56 +00:00
Dominique Leuenberger
7ac7ba4e70 Accepting request 841945 from Base:System
- fix [bsc#1177579] -- wrong clamping of hexadecimal digits in dc
- deleted patches
  - bc-1.06-dc_ibase.patch (upstreamed)

OBS-URL: https://build.opensuse.org/request/show/841945
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=26
2020-10-18 14:28:29 +00:00
Dominique Leuenberger
472d08b1f4 Accepting request 727043 from Base:System
OBS-URL: https://build.opensuse.org/request/show/727043
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=25
2019-09-02 11:22:47 +00:00
Dominique Leuenberger
8cf0c3bfa8 Accepting request 685953 from Base:System
- added patches
  Correct return value after 'q' [bsc#1129038]
  + bc-dc-correct-return-value.patch

OBS-URL: https://build.opensuse.org/request/show/685953
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=24
2019-03-27 15:11:24 +00:00
Dominique Leuenberger
95fd9fdb7d Accepting request 486972 from Base:System
- Update to version 1.07.1: (forwarded request 486969 from pluskalm)

OBS-URL: https://build.opensuse.org/request/show/486972
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=23
2017-04-25 06:54:44 +00:00
Dominique Leuenberger
7b27fb2592 Accepting request 291128 from Base:System
- Update url
- Correct info files scriplets and dependencies (forwarded request 291074 from pluskalm)

OBS-URL: https://build.opensuse.org/request/show/291128
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=22
2015-03-23 11:11:38 +00:00
Dominique Leuenberger
09d58be310 Accepting request 263376 from Base:System
- Clean up with spec-cleaner
- Add ncurses-devel as it is inherited from readline
- Explicitely pass without-libedit if we decide to switch for
  it at some point

OBS-URL: https://build.opensuse.org/request/show/263376
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=21
2014-12-01 13:00:33 +00:00
Stephan Kulow
c31a25c7ba Accepting request 134667 from Base:System
- Add BuildRequires on makeinfo to fix Factory build

OBS-URL: https://build.opensuse.org/request/show/134667
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=17
2012-09-20 13:48:12 +00:00
Stephan Kulow
dbaa85ab83 Accepting request 133894 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/133894
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=16
2012-09-17 11:47:45 +00:00
8 changed files with 1 additions and 124 deletions

View File

@ -1,10 +0,0 @@
--- bc-1.06/lib/number.c
+++ bc-1.06/lib/number.c
@@ -35,6 +35,7 @@
#include <assert.h>
#include <stdlib.h>
#include <ctype.h>/* Prototypes needed for external utility routines. */
+#include <string.h>
#define bc_rt_warn rt_warn
#define bc_rt_error rt_error

View File

@ -1,11 +0,0 @@
--- ./configure.in 2000-07-08 01:34:09.000000000 +0200
+++ ./configure.in 2004-08-19 12:36:16.000000000 +0200
@@ -68,7 +68,7 @@
])
if test "$LEX" = "flex" ; then
- LEX="flex -I8"
+ LEX="flex -I -8"
else
if test "$bcrl" = "y" ; then
AC_MSG_WARN(readline works only with flex.)

View File

@ -1,20 +0,0 @@
--- bc/bc.y
+++ bc/bc.y
@@ -203,7 +203,7 @@ statement : Warranty
{
if ($4 & 2)
warn ("Comparison in first for expression");
- if ($4 >= 0)
+ if (!($4 & 16))
generate ("p");
$4 = next_label++;
sprintf (genstr, "N%1d:", $4);
@@ -211,7 +211,7 @@ statement : Warranty
}
opt_expression ';'
{
- if ($7 < 0) generate ("1");
+ if ($7 & 16) generate ("1");
$7 = next_label++;
sprintf (genstr, "B%1d:J%1d:", $7, break_label);
generate (genstr);

View File

@ -1,13 +0,0 @@
--- bc-1.06/dc/numeric.c
+++ bc-1.06/dc/numeric.c
@@ -254,8 +254,8 @@
{
dc_data result;
- bc_init_num((bc_num *)&result.v.number);
- bc_int2num((bc_num *)&result.v.number, value);
+ bc_init_num(&result.v.number);
+ bc_int2num(&result.v.number, value);
result.dc_type = DC_NUMBER;
return result;
}

View File

@ -1,55 +0,0 @@
--- bc/load.c
+++ bc/load.c
@@ -156,7 +156,7 @@
long label_no;
long vaf_name; /* variable, array or function number. */
long func;
- program_counter save_adr;
+ program_counter save_adr = { 0, 0 };;
/* Initialize. */
str = code;
--- bc/scan.l
+++ bc/scan.l
@@ -143,7 +143,7 @@
/* Definitions for readline access. */
extern FILE *rl_instream;
-_PROTOTYPE(char *readline, (char *));
+/* _PROTOTYPE(char *readline, (char *)); */
/* rl_input puts upto MAX characters into BUF with the number put in
BUF placed in *RESULT. If the yy input file is the same as
--- bc/util.c
+++ bc/util.c
@@ -423,7 +423,7 @@
case 0: /* no height increase. */
return (FALSE);
case -1: /* height increase. */
- return (FALSE);
+ return (TRUE);
case -2: /* we need to do a rebalancing act. */
A = *root;
B = (*root)->left;
@@ -476,7 +476,7 @@
case 0: /* no height increase. */
return (FALSE);
case 1: /* height increase. */
- return (FALSE);
+ return (TRUE);
case 2: /* we need to do a rebalancing act. */
A = *root;
B = (*root)->right;
--- doc/bc.info
+++ doc/bc.info
@@ -1,5 +1,10 @@
This is bc.info, produced by makeinfo version 4.0 from bc.texi.
+START-INFO-DIR-ENTRY
+* bc: (bc). An arbritrary precision calculator language
+END-INFO-DIR-ENTRY
+
+

File: bc.info, Node: Top, Next: Introduction, Prev: (dir), Up: (dir)

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:250595f87ff5aa8ce91eb09f14efb19f9b9087999a8cf5751ceff8f4b4b63f21
size 230980

View File

@ -1,12 +0,0 @@
--- bc/main.c
+++ bc/main.c
@@ -93,6 +93,9 @@ parse_args (argc, argv)
switch (optch)
{
+ case 0: /* long option */
+ break;
+
case 'c': /* compile only */
compile_only = TRUE;
break;

View File

@ -1,6 +1,7 @@
#
# spec file for package bc
#
# TEST
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties