Re: [fpc-pascal] compiler message files

2015-01-05 Thread Bee
On Tue, Jan 6, 2015 at 2:46 PM, Bee bee.ogra...@gmail.com wrote:


 Do you mean including the content?


Sorry... I mean, the structure and numbering is also created manually?

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

Re: [fpc-pascal] compiler message files

2015-01-05 Thread Tomas Hajny
On Tue, January 6, 2015 08:00, Michael Van Canneyt wrote:
 On Tue, 6 Jan 2015, Bee wrote:


Hi,

 I'm experimenting with FPC's message (.msg) files. I wonder, who did
 create those files? Where are the text taken from? Is there any tool to
 generate those files?

 They are created manually.
 .
 .

I'll extend Michael's answer a bit: The English message file is then
converted to an include file and compiled into the compiler as the default
messages (i.e. errore.msg doesn't need to be read at run time, although
it's possible to enforce that using the respective command line option).
Furthermore, some parts and their associated comments are also included in
the documentation.

Tomas


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


Re: [fpc-pascal] compiler message files

2015-01-05 Thread Bee
On Tue, Jan 6, 2015 at 2:46 PM, Bee bee.ogra...@gmail.com wrote:


 1. The '\section' - '\end' pair. With this, I found 12 sections.


Sorry again... I mean, 10 sections. Lots of typo. I think I need some rest.
:)

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

[fpc-pascal] compiler message files

2015-01-05 Thread Bee
Hi,

I'm experimenting with FPC's message (.msg) files. I wonder, who did create
those files? Where are the text taken from? Is there any tool to generate
those files?

I also found some inconsistencies in the file structure. There are some
sections that are not following the standard structure. Most sections are
marked by '\section' - '\end' pair string, which I think using Tex syntax.
But there are some sections that doesn't have that mark, though its comment
part is clearly indicates that it's a section. Those sections that don't
have the '\section' mark still have pattern of a section, like section
title and max number info on the header comment.

For example in the errore.msg file. Compare the assembler reader section,
starting from line 2167 with the general section, starting from line 47.

Which one is the correct structure? If I want to list the sections of a
message file, which mark should I follow? Or is that a bug? Should I report
it to bugtracker? Or did I understand it wrong?

Oh, I'm using FPC 2.6.4 on OS X Yosemite.

Thank you.

Regards,

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

Re: [fpc-pascal] compiler message files

2015-01-05 Thread Michael Van Canneyt



On Tue, 6 Jan 2015, Bee wrote:


Hi,
I'm experimenting with FPC's message (.msg) files. I wonder, who did create 
those files? Where are the text taken from? Is there any tool to generate those 
files?


They are created manually.



I also found some inconsistencies in the file structure. There are some sections that are 
not following the standard structure. Most sections are marked by '\section' 
- '\end' pair string,
which I think using Tex syntax. But there are some sections that doesn't have 
that mark, though its comment part is clearly indicates that it's a section. 
Those sections that don't have the
'\section' mark still have pattern of a section, like section title and max 
number info on the header comment.


Only 
# BeginOfTex 
# EndOfTex 
mark the beginning or end of TeX code. The \section is simply transferred to the TeX file, you should not pay attention to it.

That said, in LaTeX there is no need for \section to be ended explicitly. It is 
ended automatically.

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


Re: [fpc-pascal] compiler message files

2015-01-05 Thread Bee
On Tue, Jan 6, 2015 at 2:00 PM, Michael Van Canneyt mich...@freepascal.org
wrote:


 I'm experimenting with FPC's message (.msg) files. I wonder, who did
 create those files? Where are the text taken from? Is there any tool to
 generate those files?


 They are created manually.


Do you mean including the content?


 I also found some inconsistencies in the file structure. There are some
 sections that are not following the standard structure. Most sections are
 marked by '\section' - '\end' pair string,
 which I think using Tex syntax. But there are some sections that doesn't
 have that mark, though its comment part is clearly indicates that it's a
 section. Those sections that don't have the
 '\section' mark still have pattern of a section, like section title and
 max number info on the header comment.


 Only # BeginOfTex # EndOfTex mark the beginning or end of TeX code. The
 \section is simply transferred to the TeX file, you should not pay
 attention to it.


I notice that the '# BeginOfTex' and '# EndOfTex' pair mark is also
inconsistent. I need to look for the sections or groups of the messages. I
found 3 patterns:

1. The '\section' - '\end' pair. With this, I found 12 sections.
2. The '# BeginOfTex' - '# EndOfTex' pair. With this, I found 7 sections.
3. The '# is the last used one' string. With this, I found 12 sections.

But the sum of messages of the section found using these patterns isn't
equal to the real number of messages. There are 901 messages, but the sum
of messages of each section is less than that. What did I miss?


 That said, in LaTeX there is no need for \section to be ended explicitly.
 It is ended automatically.


So, which one is indicating the real sections?

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

Re: [fpc-pascal] SDL_Net vs Synapse

2015-01-05 Thread Sandro Cumerlato
Pascal-SDL-2-Headers can be found on GitHub at:

https://github.com/ev1313/Pascal-SDL-2-Headers

Sandro


On 5 January 2015 at 17:03, Daniel Gaspary dgasp...@gmail.com wrote:

 On Mon, Jan 5, 2015 at 1:23 PM, Brian v...@golden.net wrote:
  Any opinions/experience pro/con using SDL2 (SDL_Net) vs Synapse
  (http://synapse.ararat.cz/doku.php) ?

 Does SDL2 net FPC binding exist?

 The non-existence would be a big con.
 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

Re: [fpc-pascal] SDL_Net vs Synapse

2015-01-05 Thread Daniel Gaspary
On Mon, Jan 5, 2015 at 2:44 PM, Sandro Cumerlato
sandro.cumerl...@gmail.com wrote:
 Pascal-SDL-2-Headers can be found on GitHub at:

 https://github.com/ev1313/Pascal-SDL-2-Headers

Good to know. Thank you for sharing, Sandro.

Is it a fork from another older version that was posted here?
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] strlower causes EAccessViolation

2015-01-05 Thread Michael Van Ham
On Mon, Jan 5, 2015 at 3:39 PM, Sven Barth pascaldra...@googlemail.com
wrote:

 Am 05.01.2015 21:33 schrieb Michael Van Ham michael.van...@gmail.com:

 
  Hello,
 
  The simple program below compiles and produces the expected output in
 2.6.4. In 2.7.1 (3.1.1 now)  an EAccessViolation is caused.
 
  The strlower function seems to be in strings.inc and written in
 assembler. Unfortunately I can not decipher the assembly to research
 further.
 
  ---
 
  program teststrlowersimple;
 
  {$mode objfpc}
  {$H+}
 
  uses
sysutils;
 
  var
s : string;
p : pchar;
 
  begin
s := 'UPPPERCASESTRING';
p := pchar(s);
strlower(p); // EAccessViolation: Access violation
writeln(s);
  end.

 It's because in your example s points to a constant string which since
 2.7.1 resides in a non-writeable section of the executable (Delphi
 compatible if I remember correctly). Instead of assigning a constant try
 for example  Readln(s) or use UniqueString(s) (if I remember the function
 name correctly) after the assignment.

 Regards,
 Sven

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


Thank you for the explanation Sven!
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] SDL_Net vs Synapse

2015-01-05 Thread fredvs
Hello Sandro and many thanks for the link.

Hum, i do not know SDL, is it a alternative to PortAudio ?
Does it deal with mp3 and other audio formats ?

Thanks.

Fre;D



-
Many thanks ;-)
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/SDL-Net-vs-Synapse-tp5720715p5720719.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] strlower causes EAccessViolation

2015-01-05 Thread Michael Van Ham
Hello,

The simple program below compiles and produces the expected output in
2.6.4. In 2.7.1 (3.1.1 now)  an EAccessViolation is caused.

The strlower function seems to be in strings.inc and written in assembler.
Unfortunately I can not decipher the assembly to research further.

---

program teststrlowersimple;

{$mode objfpc}
{$H+}

uses
  sysutils;

var
  s : string;
  p : pchar;

begin
  s := 'UPPPERCASESTRING';
  p := pchar(s);
  strlower(p); // EAccessViolation: Access violation
  writeln(s);
end.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] strlower causes EAccessViolation

2015-01-05 Thread Sven Barth
Am 05.01.2015 21:33 schrieb Michael Van Ham michael.van...@gmail.com:

 Hello,

 The simple program below compiles and produces the expected output in
2.6.4. In 2.7.1 (3.1.1 now)  an EAccessViolation is caused.

 The strlower function seems to be in strings.inc and written in
assembler. Unfortunately I can not decipher the assembly to research
further.

 ---

 program teststrlowersimple;

 {$mode objfpc}
 {$H+}

 uses
   sysutils;

 var
   s : string;
   p : pchar;

 begin
   s := 'UPPPERCASESTRING';
   p := pchar(s);
   strlower(p); // EAccessViolation: Access violation
   writeln(s);
 end.

It's because in your example s points to a constant string which since
2.7.1 resides in a non-writeable section of the executable (Delphi
compatible if I remember correctly). Instead of assigning a constant try
for example  Readln(s) or use UniqueString(s) (if I remember the function
name correctly) after the assignment.

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

Re: [fpc-pascal] SDL_Net vs Synapse

2015-01-05 Thread Brian
SDL2 Headers also available here ...

http://sourceforge.net/projects/sdl2fpc/



--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/SDL-Net-vs-Synapse-tp5720715p5720720.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] SDL_Net vs Synapse

2015-01-05 Thread Daniel Gaspary
On Mon, Jan 5, 2015 at 4:55 PM, Brian v...@golden.net wrote:
 SDL2 Headers also available here ...

 http://sourceforge.net/projects/sdl2fpc/

We'll end the day knowing new two up to date SDL2 binding projects.

Thank you, Brian
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] SDL_Net vs Synapse

2015-01-05 Thread Brian
Any opinions/experience pro/con using SDL2 (SDL_Net) vs Synapse
(http://synapse.ararat.cz/doku.php) ?

Thanks
Brian



--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/SDL-Net-vs-Synapse-tp5720715.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] SDL_Net vs Synapse

2015-01-05 Thread Daniel Gaspary
On Mon, Jan 5, 2015 at 1:23 PM, Brian v...@golden.net wrote:
 Any opinions/experience pro/con using SDL2 (SDL_Net) vs Synapse
 (http://synapse.ararat.cz/doku.php) ?

Does SDL2 net FPC binding exist?

The non-existence would be a big con.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal