John Coppens | 1 Jan 2012 17:08
Favicon

Re: Free Pascal 2.6.0 released!

On Sun, 1 Jan 2012 16:43:01 +0100 (CET)
marcov@... (Marco van de Voort) wrote:

> For Downloads, please use the FTP server at
> 
> ftp://freepascal.stack.nl/pub/fpc/dist/2.6.0/


Hallo Marco!

A new happy 2012 for you and the FPC team...

Wanted to point out that the above directory is empty!

John
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Marco van de Voort | 1 Jan 2012 17:22
Picon
Favicon

Re: Free Pascal 2.6.0 released!

In our previous episode, John Coppens said:
> Wanted to point out that the above directory is empty!

Was a permission problem. Fixed, thank you!
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Marvin Cohrs | 2 Jan 2012 00:32
Picon
Favicon
Gravatar

Re: Free Pascal 2.6.0 released!

Changelog:
> IInterface.QueryInterface, ._AddRef and ._Release definitions have been  
> changed
> Old behaviour: The IInterface.QueryInterface, ._AddRef and ._Release  
> methods were defined stdcall and the IID was passed as const.New  
> behaviour: These methods are defined stdcall on Windows and cdecl on the  
> other operating systems. The IID parameter has become a constref.

I think, it's really ugly to always use ifdef/ifndef directives when
overriding those methods. What's about introducing a 'nativecall'
convention,
which means 'stdcall' on windoze and 'cdecl' on other operating systems?
Wouldn't that look much prettier?

--

-- 
Marvin Cohrs <marvin.cohrs@...>
Jabber <implementor@...>
Alternatively <poehse@...>
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Jonas Maebe | 2 Jan 2012 00:43
Picon
Favicon

Re: Re: Free Pascal 2.6.0 released!


On 02 Jan 2012, at 00:32, Marvin Cohrs wrote:

> Changelog:
>> IInterface.QueryInterface, ._AddRef and ._Release definitions have been changed
>> Old behaviour: The IInterface.QueryInterface, ._AddRef and ._Release methods were defined stdcall
and the IID was passed as const.New behaviour: These methods are defined stdcall on Windows and cdecl on
the other operating systems. The IID parameter has become a constref.
> 
> I think, it's really ugly to always use ifdef/ifndef directives when
> overriding those methods. What's about introducing a 'nativecall'
> convention,
> which means 'stdcall' on windoze and 'cdecl' on other operating systems?

You can actually do that yourself, if you wish:

{$macro on}
{$ifdef windows}
{$define nativecall:=stdcall}
{$else}
{$define nativecall:=cdecl}
{$endif}

and then you can use "nativecall".

Jonas_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

(Continue reading)

John Sewell | 2 Jan 2012 03:51
Picon

SSE 4.2 usage with FPC ?

 Hello,
I'm trying to understand how to use SSE with fpc, especially the CRC32 instruction available in SSE4.2
It seems that it is available since fpc 2.6.0, but i really got no idea on how to use assembler in fpc.
I get the general idea, but i'm not sure of how the registers work, especially to exchange data with my local variables ?
Is there a tutorial somewhere or any asm guru who could give me some hints ?
Thanks,
John

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
dhkblaszyk | 2 Jan 2012 11:31
Picon

Problems with fpdoc

 

Hi,
 
I seem to have some problems using fpdoc in combination with html tags. When I enter some text (taken from the documentation) I get compilation errors:
 
Text used:
<p>
<code> 
With Strings do 
  For i:=Count-1 downto 0 do 
    Delete(i); 
</code>
</p>
 
Compilation errors:
[<no context>] Invalid description (illegal XML element: "#text")
[<no context>] Invalid paragraph content
[<no context>] Invalid description (illegal XML element: "#text")
 
If I drop the <p> tags, I still get compilation errors (just not the 2nd one) but to my surprise the pascal code is shown in the .chm file. However any text after this code section is ignored. So my question is, how am I supposed to use html tags inside the documentation? Is there a special switch needed?
 
I'm using: 2.7.1 [2011/12/27] for i386
 
On a side note, I would like to include images in my documentation. How to do this? Is simply putting a <link> tag enough and will these links be embedded in the chm file?
 
Regards, Darius
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
michael.vancanneyt | 2 Jan 2012 11:40
Picon
Favicon

Re: Problems with fpdoc


On Mon, 2 Jan 2012, dhkblaszyk@... wrote:

>
>
> Hi,
>
> I seem to have some problems using fpdoc in combination with
> html tags. When I enter some text (taken from the documentation) I get
> compilation errors:
>
> Text used:
>
> With Strings do
> For i:=Count-1
> downto 0 do
> Delete(i);
>
> Compilation errors:
> [] Invalid description
> (illegal XML element: "#text")
> [] Invalid paragraph content
> [] Invalid
> description (illegal XML element: "#text")
>
> If I drop the  tags, I
> still get compilation errors (just not the 2nd one) but to my surprise
> the pascal code is shown in the .chm file. However any text after this
> code section is ignored. So my question is, how am I supposed to use
> html tags inside the documentation? Is there a special switch needed?

Can you post the actual XML you used in a separate mail ?

Because the above is useless, I just see plain text.

> I'm using: 2.7.1 [2011/12/27] for i386
>
> On a side note, I would like
> to include images in my documentation. How to do this? Is simply putting
> a  tag enough and will these links be embedded in the chm file?

Yes, an 'img' tag exists. This is documented. It does NOT use the HTML
syntax, though.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

dhkblaszyk | 2 Jan 2012 11:51
Picon

Re: Problems with fpdoc

Here's the xml file. See attached. The problem code is around line 235.

 

As for the img tag, thanks for that, i'll start using it.

 

Regards, Darius

 

 

On 2 jan '12, michael.vancanneyt-0Is9KJ9Sb0A@public.gmane.org wrote:

On Mon, 2 Jan 2012, dhkblaszyk-47ckw973qWsGTViba+RHyw@public.gmane.orgwrote:
Hi, I seem to have some problems using fpdoc in combination with html tags. When I enter some text (taken from the documentation) I get compilation errors: Text used: With Strings do For i:=Count-1 downto 0 do Delete(i); Compilation errors: [] Invalid description (illegal XML element: "#text") [] Invalid paragraph content [] Invalid description (illegal XML element: "#text") If I drop the tags, I still get compilation errors (just not the 2nd one) but to my surprise the pascal code is shown in the .chm file. However any text after this code section is ignored. So my question is, how am I supposed to use html tags inside the documentation? Is there a special switch needed?
Can you post the actual XML you used in a separate mail ? Because the above is useless, I just see plain text.
I'm using: 2.7.1 [2011/12/27] for i386 On a side note, I would like to include images in my documentation. How to do this? Is simply putting a tag enough and will these links be embedded in the chm file?
Yes, an 'img' tag exists. This is documented. It does NOT use the HTML syntax, though. Michael. _______________________________________________ fpc-pascal maillist - fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b@public.gmane.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

 

Attachment (nvwidgets.zip): application/zip, 2026 bytes
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
michael.vancanneyt | 2 Jan 2012 13:23
Picon
Favicon

Re: Problems with fpdoc


On Mon, 2 Jan 2012, dhkblaszyk@... wrote:

>
>
> Here's the xml file. See attached. The problem code is around line
> 235.
>

<p><code>With Strings do
   For i:=Count-1 downto 0 do
     Delete(i); 
</code></p>

Is wrong. the <code> tag must be at the same level as a <p> tag, and cannot
appear in a <p> tag.

It should be

<p> some text</p>
<code>
With Strings do
   For i:=Count-1 downto 0 do
     Delete(i); 
</code>
<p> more text </p>

Michael.

> As for the img tag, thanks for that, i'll start using it.
>
>
> Regards, Darius
>
> On 2 jan '12, michael.vancanneyt@... wrote:
>
>>
> On Mon, 2 Jan 2012, dhkblaszyk@... [1]wrote:
>>
>>> Hi, I seem
> to have some problems using fpdoc in combination with html tags. When I
> enter some text (taken from the documentation) I get compilation errors:
> Text used: With Strings do For i:=Count-1 downto 0 do Delete(i);
> Compilation errors: [] Invalid description (illegal XML element:
> "#text") [] Invalid paragraph content [] Invalid description (illegal
> XML element: "#text") If I drop the tags, I still get compilation errors
> (just not the 2nd one) but to my surprise the pascal code is shown in
> the .chm file. However any text after this code section is ignored. So
> my question is, how am I supposed to use html tags inside the
> documentation? Is there a special switch needed?
>>
>> Can you post the
> actual XML you used in a separate mail ?
>>
>> Because the above is
> useless, I just see plain text.
>>
>>> I'm using: 2.7.1 [2011/12/27] for
> i386 On a side note, I would like to include images in my documentation.
> How to do this? Is simply putting a tag enough and will these links be
> embedded in the chm file?
>>
>> Yes, an 'img' tag exists. This is
> documented. It does NOT use the HTML
>> syntax, though.
>>
>> Michael.
>>
> _______________________________________________
>> fpc-pascal maillist -
> fpc-pascal@... [2]
>>
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal [3]
>
>
>
>
> Links:
> ------
> [1] mailto:dhkblaszyk@...
> [2]
> mailto:fpc-pascal@...
> [3]
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

dhkblaszyk | 2 Jan 2012 14:24
Picon

Re: Problems with fpdoc

Thanks for the help. After also re-reading the documentation I now better understand how to use fpdoc. No more error messages anymore....

 

However, including an image in the documentation does not work unfortunately. After generating the chm file the image is not shown and an alternative text is displayed.

 

At line 244 of this file: http://lazarus-ccr.svn.sourceforge.net/viewvc/lazarus-ccr/components/nvidia-widgets/doc/nvwidgets.xml?revision=2215&view=markup

you can see the syntax. The image (nvwidgets.png) is located in the same directory as the .xml file is and from where the chm file is generated from.

 

All relevant files and scripts are in SVN.

 

Regards, Darius

 

 

 

On 2 jan '12, michael.vancanneyt-0Is9KJ9Sb0A@public.gmane.org wrote:

On Mon, 2 Jan 2012, dhkblaszyk <at> zeelandnet.nlwrote:
Here's the xml file. See attached. The problem code is around line 235.

With Strings do For i:=Count-1 downto 0 do Delete(i);

Is wrong. the tag must be at the same level as a

tag, and cannot appear in a

tag. It should be

some text

With Strings do For i:=Count-1 downto 0 do Delete(i);

more text

Michael.

As for the img tag, thanks for that, i'll start using it. Regards, Darius On 2 jan '12, michael.vancanneyt-0Is9KJ9Sb0A@public.gmane.orgwrote:On Mon, 2 Jan 2012, dhkblaszyk-47ckw973qWsGTViba+RHyw@public.gmane.org[1]wrote:
Hi, I seem
to have some problems using fpdoc in combination with html tags. When I enter some text (taken from the documentation) I get compilation errors: Text used: With Strings do For i:=Count-1 downto 0 do Delete(i); Compilation errors: [] Invalid description (illegal XML element: "#text") [] Invalid paragraph content [] Invalid description (illegal XML element: "#text") If I drop the tags, I still get compilation errors (just not the 2nd one) but to my surprise the pascal code is shown in the .chm file. However any text after this code section is ignored. So my question is, how am I supposed to use html tags inside the documentation? Is there a special switch needed?
Can you post the
actual XML you used in a separate mail ?
Because the above is
useless, I just see plain text.
I'm using: 2.7.1 [2011/12/27] for
i386 On a side note, I would like to include images in my documentation. How to do this? Is simply putting a tag enough and will these links be embedded in the chm file?
Yes, an 'img' tag exists. This is
documented. It does NOT use the HTML
syntax, though. Michael.
_______________________________________________
fpc-pascal maillist -
fpc-pascal-PD4FTy7X32m1d49RdXlXVQ@public.gmane.orgcal.org[2]http://lists.freepascal.org/mailman/listinfo/fpc-pascal [3] Links: ------ [1] mailto:dhkblaszyk <at> zeelandnet.nl [2] mailto:fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b@public.gmane.org [3] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

_______________________________________________ fpc-pascal maillist - fpc-pascal-PD4FTy7X32n3axELgK8WoQ@public.gmane.orgl.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

 

 

 
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Gmane