Re: [fpc-pascal] *** GMX Spamverdacht *** Re: Documentation, syntax diagrams

2014-01-12 Thread Michael Van Canneyt



On Sat, 11 Jan 2014, Jürgen Hestermann wrote:


Am 11.01.2014 19:58, schrieb Michael Van Canneyt:

Why this inconsistency?

I don't necessarily consider this inconsistent.


Why not?
Do you mean syntax diagrams don't need any logic?


In their headers ? No. In the content ? Yes.


If the diagrams stay like this they are too confusing to be of any use.

That is your opinion, to which you are of course entitled.
Feel free to make suggestions for improvements. If I consider the 

suggestions good, I will certainly incorporate them.

How kind you are...
Now if that is not arrogant...


That is not arrogant. I am the author of the documentation.
So it is entirely my decision what goes in it and what not.
So I'm just stating a fact.



You seem to imply that I am demanding something for myself.
But I only report these documentation problems for potential new users
because I think that Pascal should be used by more people
while you seem to not care about them.


Well, you seem to think that you represent 'all users' which is 'arrogant' imho.

I think we just differ in opinion on what consitutes a good diagram.
So, it is my opinion against yours.

Your problem with the captions of the diagram I do not consider to be a 
general problem of the diagrams, but I think it is more you personally who 
cannot accept the form of the diagrams. Hence, I will not change that aspect.


But as I said: if I agree with one of your opinions, I will certainly take it 
to heart.

What is more: I have already done so. As a result of your remarks I have changed
the type diagram, and I added a section on type aliases.

That is all there is to say about it.

Michael.___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Documentation, syntax diagrams

2014-01-12 Thread Michael Van Canneyt



On Sat, 11 Jan 2014, Marco van de Voort wrote:


In our previous episode, Michael Van Canneyt said:

Am 2014-01-11 13:14, schrieb Michael Van Canneyt:

I meant that I use a diagram typesetting package for LaTeX. This package
definitely works like that.


Then something is wrong with this package.
Which one is it?


listings.sty


syntax.sty?


Sorry, yes. listings.sty is for the code fragments.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] fpc build breaks since 26398

2014-01-12 Thread denisgolovan
Hi

Looks like since 26398 rev. fpc cannot be built.
It fails with following when running "make all". 

classes.pp(56) Warning: Implicit uses of Variants unit
Fatal: Can't find unit variants used by Classes
Fatal: Compilation aborted

Any hints to resolve?

P.S. I am under Linux, svn rev. 26427

 -- 
Regards,
Denis Golovan
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpc build breaks since 26398

2014-01-12 Thread Mattias Gaertner
On Sun, 12 Jan 2014 15:28:27 +0400
denisgolovan  wrote:

> Hi
> 
> Looks like since 26398 rev. fpc cannot be built.
> It fails with following when running "make all". 
> 
> classes.pp(56) Warning: Implicit uses of Variants unit
> Fatal: Can't find unit variants used by Classes
> Fatal: Compilation aborted
> 
> Any hints to resolve?
> 
> P.S. I am under Linux, svn rev. 26427

fpc trunk 26427 compiles here under Linux 64bit with fpc 2.6.2.

Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpc build breaks since 26398

2014-01-12 Thread denisgolovan
> 
> fpc trunk 26427 compiles here under Linux 64bit with fpc 2.6.2.
> 
> Mattias

Hi Mattias

Even though it currently works, I believe at least Makefile.fpc in rtl/linux 
directory is not updated.
It still assumes varutils.pp, variants.pp in old places.
You can try to look at my roughly made patch attached.

Please fix.

 -- 
Regards,
Denis Golovandiff --git a/rtl/linux/Makefile.fpc b/rtl/linux/Makefile.fpc
index 23ca2b6..8586d78 100644
--- a/rtl/linux/Makefile.fpc
+++ b/rtl/linux/Makefile.fpc
@@ -16,7 +16,7 @@ units=$(SYSTEMUNIT) fpintres $(SYSINIT_UNITS) \
   charset cpall buildcollations character unixcp getopts \
   errors  ipc serial terminfo dl dynlibs \
   types sysconst fpwidestring \
-  cthreads classes fgl strutils rtlconsts dos  cwstring fpcylix clocale
+  cthreads classes variants fgl strutils rtlconsts dos  cwstring fpcylix clocale
 implicitunits=exeinfo \
   cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 \
   cp437 cp646 cp850 cp856 cp866 cp874 cp932 cp936 cp949 cp950 cp8859_1 cp8859_5 \
@@ -40,8 +40,8 @@ fpcdir=../..
 target=linux
 
 [compiler]
-includedir=$(INC) $(PROCINC) $(UNIXINC) $(ARCH)
-sourcedir=$(INC) $(PROCINC) $(UNIXINC) $(ARCH) $(COMMON)
+includedir=$(INC) $(PROCINC) $(UNIXINC) $(ARCH) $(VARINC)
+sourcedir=$(INC) $(PROCINC) $(UNIXINC) $(VARINC) $(ARCH) $(COMMON)
 targetdir=.
 
 [shared]
@@ -58,6 +58,8 @@ INC=$(RTL)/inc
 COMMON=$(RTL)/common
 PROCINC=$(RTL)/$(ARCH)
 UNIXINC=$(RTL)/unix
+VARINC=../../packages/rtl-objpas/src/inc
+RTLOBJPAS=../../packages/rtl-objpas/src/unix
 
 UNITPREFIX=rtl
 
@@ -288,7 +290,7 @@ sysutils$(PPUEXT) : $(UNIXINC)/sysutils.pp $(wildcard $(OBJPASDIR)/sysutils/*.in
 $(COMPILER) -Fi$(OBJPASDIR)/sysutils $(UNIXINC)/sysutils.pp
 
 classes$(PPUEXT) : $(UNIXINC)/classes.pp $(wildcard $(OBJPASDIR)/classes/*.inc) \
-   sysutils$(PPUEXT) typinfo$(PPUEXT) rtlconsts$(PPUEXT) fgl$(PPUEXT)
+   variants$(PPUEXT) sysutils$(PPUEXT) typinfo$(PPUEXT) rtlconsts$(PPUEXT) fgl$(PPUEXT)
 $(COMPILER) -Fi$(OBJPASDIR)/classes $(UNIXINC)/classes.pp
 
 typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT) sysutils$(PPUEXT) rtlconsts$(PPUEXT)
@@ -304,12 +306,12 @@ math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
 gettext$(PPUEXT): $(OBJPASDIR)/gettext.pp objpas$(PPUEXT) sysutils$(PPUEXT)
 $(COMPILER) $(OBJPASDIR)/gettext.pp
 
-varutils$(PPUEXT) : $(OBJPASDIR)/cvarutil.inc $(OBJPASDIR)/varutils.inc \
-$(OBJPASDIR)/varutilh.inc $(UNIXINC)/varutils.pp sysutils$(PPUEXT)
-$(COMPILER) -I$(OBJPASDIR) $(UNIXINC)/varutils.pp
+varutils$(PPUEXT) : $(VARINC)/cvarutil.inc $(VARINC)/varutils.inc \
+$(VARINC)/varutilh.inc $(UNIXINC)/varutils.pp sysutils$(PPUEXT)
+$(COMPILER) -I$(OBJPASDIR) -I$(VARINC) $(RTLOBJPAS)/varutils.pp
 
-variants$(PPUEXT) : $(INC)/variants.pp sysutils$(PPUEXT) sysconst$(PPUEXT) varutils$(PPUEXT) typinfo$(PPUEXT) rtlconsts$(PPUEXT)
-$(COMPILER) -Fi$(INC) $(INC)/variants.pp
+variants$(PPUEXT) : $(VARINC)/variants.pp sysutils$(PPUEXT) sysconst$(PPUEXT) varutils$(PPUEXT) typinfo$(PPUEXT) rtlconsts$(PPUEXT)
+$(COMPILER) -Fi$(INC) $(VARINC)/variants.pp
 
 fmtbcd$(PPUEXT) : $(OBJPASDIR)/fmtbcd.pp objpas$(PPUEXT) sysutils$(PPUEXT) variants$(PPUEXT) classes$(PPUEXT) system$(PPUEXT)
 $(COMPILER) $(OBJPASDIR)/fmtbcd.pp
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpc build breaks since 26398

2014-01-12 Thread Marco van de Voort
In our previous episode, denisgolovan said:
> > 
> > fpc trunk 26427 compiles here under Linux 64bit with fpc 2.6.2.
> > 
> > Mattias
> Even though it currently works, I believe at least Makefile.fpc in rtl/linux 
> directory is not updated.
> It still assumes varutils.pp, variants.pp in old places.
> You can try to look at my roughly made patch attached.

This patch is totally, totally wrong.  variants and varutils are no longer
part of the RTL, and this patch tries to reinstate them.

It should simply work as is. Yes, there are some old dependencies left in
the old makefile.fpc, but that doesn't matter.

Something else in your setup is wrong, and I suggest you look for it.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpc build breaks since 26398

2014-01-12 Thread denisgolovan
> This patch is totally, totally wrong. variants and varutils are no longer
> part of the RTL, and this patch tries to reinstate them.
> 
> It should simply work as is. Yes, there are some old dependencies left in
> the old makefile.fpc, but that doesn't matter.
> 
> Something else in your setup is wrong, and I suggest you look for it.

Yes. I found a problem.
It works now.
It's just "old" dependencies seem weird.

 -- 
Regards,
Denis Golovan
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] invalid floating point

2014-01-12 Thread John Lee
Running win32 fpc 2.7.1 10/01/2014

Compiling with no -v options.I get

An unhandled exception occurred at $0043C670:37
EInvalidOp: Invalid floating point operation
  $0043C670  REGRESS,  line 347 of c:/com/livel.pp

When I check what this line no is it is last line of a procedure regress
which does linear regression calcs.

I've normally got more line no info for fpu problems eg the line in regress
at which it went wrong, which would be helpful.

Have the defaults re line nos changed in latest 2.7.1s?. Do I have to
compile with -vl to get more info?

Any ideas on how to fix welcome.
John




>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal