![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Mon, 23 Sep 2002 15:51:04 +0200, "Thorsten Froehlich" <tho### [at] trf de>
wrote:
> Oh, this is easy. It so happens that the constant table defines the
> constant at array locaction "0" to be zero and the constant at array
> locaction "1" to be one. For maximum clarity, replace it with
> "POVFPU_AddConstant(0.0)", which will have the same effect.
Is this replacement for all 0 and/or 0.0 ? Does this influence only parsing
time?
ABX
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Warp
Subject: Re: cleaning source code from warnings troubles
Date: 23 Sep 2002 10:04:34
Message: <3d8f1f72@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Thorsten Froehlich <tho### [at] trf de> wrote:
> ignoring the rest of your post.
A lesson in politeness?
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Thorsten Froehlich
Subject: Re: cleaning source code from warnings troubles
Date: 23 Sep 2002 12:32:14
Message: <3d8f420e@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <687uouc7i1dtlqjjj2coji4lq7d2a7ej9s@4ax.com> , ABX
<abx### [at] abx art pl> wrote:
> Is this replacement for all 0 and/or 0.0 ? Does this influence only parsing
> time?
For the 0.0 only. It does not really influence parsing time.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Warp <war### [at] tag povray org> wrote in news:3d8f1f72@news.povray.org
> Thorsten Froehlich <tho### [at] trf de> wrote:
>> ignoring the rest of your post.
> A lesson in politeness?
it's quite sad to see flame-war beetween, as I see, good programers ;)
--
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Warp
Subject: Re: cleaning source code from warnings troubles
Date: 26 Sep 2002 19:12:30
Message: <3d93945e@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Rafal 'Raf256' Maj <raf### [at] raf256 com> wrote:
> it's quite sad to see flame-war beetween, as I see, good programers ;)
Differing opinions is one source of progress, I think.
If everyone would think in the exact same way, then there would be
a lot less room for innovation.
--
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Mon, 23 Sep 2002 10:51:19 +0200, "Thorsten Froehlich" <tho### [at] trf de>
wrote:
>In article <28gtou4t56f843790s28f5r236q80k3boi@4ax.com> , ABX
><abx### [at] abx art pl> wrote:
>
> > warnings when -Wall setting is used with gcc
>
> Using all gcc warning is pointless.
But somehow I did it :-)
I have now warning-free version of sources. And now I can say what I changed -
warnings were mostly generated with additions/changes introduced in 3.5. Old
code from 3.1 and earlier versions did not cause warnings usually. I can say
nothing about (x)windows compilation. I did it only with pure dos/unix
compile.
> > 1. "aggregate has a partly bracketed initializer"
>
> No idea what it is complaining about. The code is perfectly legal.
It is array of structures with one element - array. It have to be "double
bracketed" (is this english correct ?). So instead of:
{ ".jpg", ".JPG", ".jpeg", ".JPEG" },
it should be:
{ { ".jpg", ".JPG", ".jpeg", ".JPEG" } },
> > 2. "multi-character character constant"
>
> These are nonsensical compiler warnings for perfectly legal and portable
> code as long as the platform being used has 32 bit or bigger ints.
It helped to add definition:
#define FOURCHARS_TO_INT(c1,c2,c3,c4) \
(((unsigned long) c1 << 24) | \
((unsigned long) c2 << 16) | \
((unsigned long) c3 << 8 ) | \
((unsigned long) c4 ))
I have additional question. Is this more correct or still valid if I replace
line 1756:
fprintf(file, "%.8x%.8x\n", h, l);
with line:
fprintf(file, "%.8lx%.8lx\n", h, l);
?
ABX
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Thorsten Froehlich
Subject: Re: cleaning source code from warnings troubles
Date: 30 Sep 2002 05:44:39
Message: <3d981d07@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <5jsfpuofbifqlq9avonj4mejd3f7siihe0@4ax.com> , ABX
<abx### [at] abx art pl> wrote:
> It helped to add definition:
>
> #define FOURCHARS_TO_INT(c1,c2,c3,c4) \
> (((unsigned long) c1 << 24) | \
> ((unsigned long) c2 << 16) | \
> ((unsigned long) c3 << 8 ) | \
> ((unsigned long) c4 ))
No, this is incorrect! All it does is trick the compiler in shutting up
with its nonsense messages while changing absolutely nothing for the broken
compiler, but potentially *breaking* the code on compilers which handle
multibyte character constants correctly!!!
The correct solution is to simply turn off the particular warning.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Mon, 30 Sep 2002 11:44:39 +0200, "Thorsten Froehlich" <tho### [at] trf de>
wrote:
> but potentially *breaking* the code on compilers which handle
> multibyte character constants correctly!!!
how ?
ABX
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Mon, 30 Sep 2002 08:58:48 +0200, ABX <abx### [at] abx art pl> wrote:
> I have additional question. Is this more correct or still valid if I replace
> line 1756:
> fprintf(file, "%.8x%.8x\n", h, l);
> with line:
> fprintf(file, "%.8lx%.8lx\n", h, l);
> ?
I mean in povms.cpp :-)
ABX
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Thorsten Froehlich
Subject: Re: cleaning source code from warnings troubles
Date: 30 Sep 2002 07:11:20
Message: <3d983158@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <rs7gpukm3087jh97t57rg628i23c4mk01h@4ax.com> , ABX
<abx### [at] abx art pl> wrote:
>> line 1756:
>> fprintf(file, "%.8x%.8x\n", h, l);
>> with line:
>> fprintf(file, "%.8lx%.8lx\n", h, l);
>> ?
>
> I mean in povms.cpp :-)
Line numbers don't help me much (they change...). I need the function name
:-)
Thorstem
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |