Re: [fricas-devel] [PATCH] fix a bug in hyper/spadint.c

2018-07-12 Thread Yuan Ren
You're right, so I modified to use asprintf(3) to handle the indeterminate buffer size. And there would be exit the process if overflow. diff --git a/src/hyper/spadint.c b/src/hyper/spadint.c index fb031fc..771047d 100644 --- a/src/hyper/spadint.c +++ b/src/hyper/spadint.c @@ -39,6 +39,9 @@

Re: [fricas-devel] [PATCH] fix a bug in hyper/spadint.c

2018-07-12 Thread Waldek Hebisch
Yuan Ren wrote: > > Hello everyone, > > Fixed magic number and buffer overflow in 'start_user_buffer'. > > Bests, > Rey > > diff --git a/src/hyper/spadint.c b/src/hyper/spadint.c > index fb031fc..4e70ac3 100644 > --- a/src/hyper/spadint.c > +++ b/src/hyper/spadint.c > @@ -39,6 +39,9 @@ >

[fricas-devel] [FriCASUG +API] metapatches on 2D graphs

2018-07-12 Thread Riccardo GUIDA
Mainly for Ralf ... -- https://github.com/fricas/fricas/blob/master/src/doc/htex/ug07.htex#L154 REPLACE: \spadgraph{draw(sin(tan(x)) - tan(sin(x)),x = 10..16)} BY: \spadgraph{draw(sin(tan(x)) - tan(sin(x)),x = 10..16,title=="A title here")} MOTIVATION: A title

Re: [fricas-devel] Intepreter: type declaration ignored in == AND:

2018-07-12 Thread Waldek Hebisch
> > As for "BOOT::|sayFunctionDeps| is undefined" error, it can be fixed > by following patch, > after the patch, ")display properties" works: > > (1) -> z == 2 >Type: Void > (2) -> )display properties z > Properties of z : >

Re: [fricas-devel] [PATCH] fix highlighting and enable it by default

2018-07-12 Thread Waldek Hebisch
oldk1331 wrote: > > The escape code for bold font is wrong, this was fixed in > openaxiom a long time ago. Change to escape code is OK. But note that escape codes are terminal-specific, code which wants to work on wide variety of terminals would use terminfo or ncurses. Concerning turning

Re: [fricas-devel] first and last are "BOTH a variable and a literal"

2018-07-12 Thread Bill Page
On Thu, Jul 12, 2018 at 8:00 AM, Bill Page wrote: > Actually the message "Semantic Errors" occurs 35 times during a > normal successful build of FriCAS. Many but not all of these are > due to something being "BOTH a variable and a literal". Clearly > these are not really "errors". At most this

Re: [fricas-devel] first and last are "BOTH a variable and a literal"

2018-07-12 Thread Waldek Hebisch
Bill Page wrote: > > If I use the names 'first' and 'last' in a spad file I get a message: > >Semantic Errors: > [1] last is BOTH a variable and a literal > [2] first is BOTH a variable and a literal > ... > > What does this mean? In spite of the "semantic error" the

Re: [fricas-devel] first and last are "BOTH a variable and a literal"

2018-07-12 Thread Bill Page
Actually the message "Semantic Errors" occurs 35 times during a normal successful build of FriCAS. Many but not all of these are due to something being "BOTH a variable and a literal". Clearly these are not really "errors". At most this might be just a helpful warning but I cannot see any

Re: Re : [fricas-devel] [BUG]: draw option unit == [a,b] ignored

2018-07-12 Thread Riccardo GUIDA
Ralf 1) Many graphs in chapter seven FriCAS UG do NOT correspond to what announced in the text (I was preparing a list of patches but you anticipated me). In 2D graphs this is due to a missing 'title=...' in the invoked command draw and also due the fact that 'unit=...' shows nothing

Re: [fricas-devel] [BUG]: draw option unit == [a,b] ignored

2018-07-12 Thread Ralf Hemmecke
> you must make sure that in the control panel you have "units on" and you > possibly have to scale the size of the window in order to have space for > tick labelling. Yes. No problem. Maybe I should add vp := draw(sin(11*x),x = 0..2*%pi,title == "Large and unit", unit==[0.2,0.2])

Re: [fricas-devel] [BUG]: draw option unit == [a,b] ignored

2018-07-12 Thread Prof. Dr. Johannes Grabmeier FW
I already had answered this question directly: works for me perfect: you must make sure that in the control panel you have "units on" and you possibly have to scale the size of the window in order to have space for tick labelling. Am 12.07.18 um 11:00 schrieb Ralf Hemmecke: >> IIC the user

Re: [fricas-devel] [BUG]: draw option unit == [a,b] ignored

2018-07-12 Thread Ralf Hemmecke
> IIC the user guide the draw option unit==[0.2,0.2] should add ticks to > the axes x and y, but I cannot see anything. > > Try eg: > > draw(sin(11*x),x = 0..2*%pi,toScale == true,title == "Drawn to scale") > draw(sin(11*x),x = 0..2*%pi,toScale == true,title == "Drawn to scale and > unit",

[fricas-devel] [PATCH] fix a bug in hyper/spadint.c

2018-07-12 Thread Yuan Ren
Hello everyone, Fixed magic number and buffer overflow in 'start_user_buffer'. Bests, Rey diff --git a/src/hyper/spadint.c b/src/hyper/spadint.c index fb031fc..4e70ac3 100644 --- a/src/hyper/spadint.c +++ b/src/hyper/spadint.c @@ -39,6 +39,9 @@ #include "debug.h" #include +#include