Re: [fpc-devel] generated assembler

2008-09-04 Thread Graeme Geldenhuys
On Wed, Sep 3, 2008 at 7:50 PM, David Pethes
[EMAIL PROTECTED] wrote:
 as PNG is 28K. As a GIF it's only 17.5K
 :-) Don't use JPG's, they are useless and look damn ugly!

 It's 9K in PNG if you use a palette/256 colors, much like GIF does ;)


Cool!  I never thought to look at the colour palette information.


Regards,
 - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] generated assembler

2008-09-04 Thread Michael Schnell




It's 9K in PNG if you use a palette/256 colors, much like GIF does ;)
Firefox shows PNGs (and JPGs) within the message, while you would need 
to open an external viewer for GIFs. So PNG is really nice here !


-Michael
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] generated assembler

2008-09-04 Thread Graeme Geldenhuys
On 9/4/08, Michael Schnell [EMAIL PROTECTED] wrote:
  Firefox shows PNGs (and JPGs) within the message, while you would need to
 open an external viewer for GIFs. So PNG is really nice here !

Huh??  Many sites use gif images!
Firefox supports PNG, GIF, JPG etc.. all natively.  At least my
version does (Firefox v3). I just tested this as well. I could view a
website and my gmail with uses both gif and png files in the content.


Ah, I see your problem:
  User-Agent: Thunderbird 2.0.0.16 (Windows/20080708)

Please upgrade to a working OS - something like Linux. ;-)  Actually
my wife's computer uses Firefox 2 under Windows, and she as no issues
with viewing gif images either.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] generated assembler

2008-09-04 Thread Michael Schnell

Graeme Geldenhuys wrote:

On 9/4/08, Michael Schnell [EMAIL PROTECTED] wrote:
  

 Firefox shows PNGs (and JPGs) within the message, while you would need to
open an external viewer for GIFs. So PNG is really nice here !



Huh??  

Sorry Typo: Thunderbird !

-Michael
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] generated assembler

2008-09-04 Thread Graeme Geldenhuys
On 9/4/08, Michael Schnell [EMAIL PROTECTED] wrote:

  Huh??
  Sorry Typo: Thunderbird !

Makes no difference, that test email I mentioned was from one account
to my work account. HTML email (which I hate) or plain text emails...
Thunderbird shows png, gif and jpg inline, without issues. In the case
of plain text, the images are inline at the end of the email - one
image after another.

Anyway, we are way off-topic here...


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] generated assembler

2008-09-04 Thread Michael Schnell
You are right. it does show gif. No idea why it did not when I tested 
this some time ago...

-Michael
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] an observation about GetMem

2008-09-04 Thread Peter Popov
As I was porting things from delphi to fp today I noticed the following  
difference:


Delphi (2,5)   : GetMem(p, 0) will set p to nil.
FPC (2.2.2, 2.3.1) : GetMem(p, 0) will assign something to p

Clearly, the above calls are bad karma (which I have been practicing,  
apparently). Delphi's help does not say what GetMem should do when the  
size is 0 (realloc does). On the other hand, assigning something is a bad  
idea too, as it suggests at least Size(pointer) amount of storage, unless  
that memory spot is somehow marked as empty, etc.


Do you think this should be reported as a feature, or should the  
definition of GetMem be changed to cover this case. Note that it is  
desirable to specify explictly what GetMem(p, 0) should do, since one can  
in principle provide a separate heap manager. Therefore, behavior of  
use-supplied getmem should be unniform.


Peter Popov
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] an observation about GetMem

2008-09-04 Thread Micha Nelissen

Peter Popov wrote:
size is 0 (realloc does). On the other hand, assigning something is a 
bad idea too, as it suggests at least Size(pointer) amount of storage, 
unless that memory spot is somehow marked as empty, etc.


How does it suggest a storage space with size  0 ?

Micha
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] an observation about GetMem

2008-09-04 Thread Peter Popov
Well, if it points to something, then there is space, isn't it? Unless it  
is clearly mentioned in the documentation that GetMem(p,0) results in p  
being undefined and it is put as a requirement for any custom  
implementation of a heap manager.

Either way would work.

Peter

On Thu, 04 Sep 2008 14:27:35 -0500, Micha Nelissen [EMAIL PROTECTED]  
wrote:



Peter Popov wrote:
size is 0 (realloc does). On the other hand, assigning something is a  
bad idea too, as it suggests at least Size(pointer) amount of storage,  
unless that memory spot is somehow marked as empty, etc.


How does it suggest a storage space with size  0 ?

Micha
___

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel