Re: [Plplot-devel] F95 changes

2012-02-01 Thread Andrew Ross
On Fri, Jan 27, 2012 at 01:43:17PM -0800, Alan Irwin wrote: > On 2012-01-25 11:36- Andrew Ross wrote: > >> On Wed, Jan 25, 2012 at 11:06:06AM +0100, Arjen Markus wrote: >>> Hi Andrew, >>> >>> On 2012-01-25 10:57, Andrew Ross wrote: >>> If the string contained characters, then just the char

Re: [Plplot-devel] F95 changes

2012-01-27 Thread Alan W. Irwin
On 2012-01-25 11:36- Andrew Ross wrote: > On Wed, Jan 25, 2012 at 11:06:06AM +0100, Arjen Markus wrote: >> Hi Andrew, >> >> On 2012-01-25 10:57, Andrew Ross wrote: >> >>> If the string contained characters, then just the characters were passed >>> (with trailing spaces removed). If a null stri

Re: [Plplot-devel] F95 changes

2012-01-25 Thread Andrew Ross
On Wed, Jan 25, 2012 at 11:06:06AM +0100, Arjen Markus wrote: > Hi Andrew, > > On 2012-01-25 10:57, Andrew Ross wrote: > > > If the string contained characters, then just the characters were passed > > (with trailing spaces removed). If a null string was passed (i.e. of > > length 0), then the

Re: [Plplot-devel] F95 changes

2012-01-25 Thread Arjen Markus
Hi Andrew, On 2012-01-25 10:57, Andrew Ross wrote: > If the string contained characters, then just the characters were passed > (with trailing spaces removed). If a null string was passed (i.e. of > length 0), then the returned string was a C NULL string. If the fortran > string was of length

Re: [Plplot-devel] F95 changes

2012-01-25 Thread Andrew Ross
On Wed, Jan 25, 2012 at 09:45:25AM +, Andrew Ross wrote: > On Wed, Jan 25, 2012 at 09:35:23AM +0100, Arjen Markus wrote: > > Hi Alan, > > > > On 2012-01-24 20:06, Alan W. Irwin wrote: > > > > > > Actually, trailing blanks in character strings do have a significant > > > effect in Fortran. I

Re: [Plplot-devel] F95 changes

2012-01-25 Thread Andrew Ross
On Wed, Jan 25, 2012 at 09:35:23AM +0100, Arjen Markus wrote: > Hi Alan, > > On 2012-01-24 20:06, Alan W. Irwin wrote: > > > > Actually, trailing blanks in character strings do have a significant > > effect in Fortran. In particular, if a Fortran > > user wants to put a trailing blank into one

Re: [Plplot-devel] F95 changes

2012-01-25 Thread Arjen Markus
Hi Alan, On 2012-01-24 20:06, Alan W. Irwin wrote: > > Actually, trailing blanks in character strings do have a significant > effect in Fortran. In particular, if a Fortran > user wants to put a trailing blank into one of the character > string arguments of PLplot, she should be allowed to do s

Re: [Plplot-devel] F95 changes

2012-01-24 Thread Alan W. Irwin
On 2012-01-24 11:35- Andrew Ross wrote: > > Arjen, > > While running make test_diff_psc I've noticed a couple of issues with the > recent changes to the fortran 95 string handling. First one was a typo > with the arguments to achar being reversed which caused C to fortran > string conversions

Re: [Plplot-devel] F95 changes

2012-01-24 Thread Arjen Markus
Hi Andrew, hm, I had not spotted those yet - I will have a look. Not sure what the best way is vis-a-vis trailing blanks: in Fortran they are simply not significant - you have to program that yourself. Regards, Arjen On Tue, 24 Jan 2012 11:35:19 + Andrew Ross wrote: > > Arjen, > > Whil

[Plplot-devel] F95 changes

2012-01-24 Thread Andrew Ross
Arjen, While running make test_diff_psc I've noticed a couple of issues with the recent changes to the fortran 95 string handling. First one was a typo with the arguments to achar being reversed which caused C to fortran string conversions to fail. This is fixed. The other is more subtle. Us