Re: [fpc-devel]Issues with GDB on Mac OS X with mixed case file names

2004-08-29 Thread Dr. Rolf Jansen
Am 28.08.2004 um 22:26 schrieb Peter Vreman:
Many thanks for the fix. Unfortunately, I discovered too late, that
this enables GDB support on Mac OS X only for the main program file. 
In
unit files it still includes the lowercase filenames into the .stabs.

However, I found the problem and a possible solution. In globals.pas
there are three FindFile routines, namely: TSearchPathList.FindFile,
FindFile, and FindFilePchar.
All routines contain roughly the same code snippet:
Fixed
Everything is fine now. Thank you very much!
Rolf
___
fpc-devel maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel]Issues with GDB on Mac OS X with mixed case file

2004-08-29 Thread Vincent Snijders
On Sat, 28 Aug 2004 22:26:08 +0200 (CEST)
Peter Vreman [EMAIL PROTECTED] wrote:

  However, I found the problem and a possible solution. In globals.pas
  there are three FindFile routines, namely: TSearchPathList.FindFile,
  FindFile, and FindFilePchar.
 
  All routines contain roughly the same code snippet:
 
 Fixed
Does this mean the folowing is not true anymore?
// FPC searches first lowercase, then keeping case, then uppercase
FYI: This is a comment for the lazarus/main.pp.

Vincent.

___
fpc-devel maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel]Issues with GDB on Mac OS X with mixed case file

2004-08-29 Thread Peter Vreman
At 14:00 29-8-2004, you wrote:
On Sat, 28 Aug 2004 22:26:08 +0200 (CEST)
Peter Vreman [EMAIL PROTECTED] wrote:
  However, I found the problem and a possible solution. In globals.pas
  there are three FindFile routines, namely: TSearchPathList.FindFile,
  FindFile, and FindFilePchar.
 
  All routines contain roughly the same code snippet:

 Fixed
Does this mean the folowing is not true anymore?
// FPC searches first lowercase, then keeping case, then uppercase
FYI: This is a comment for the lazarus/main.pp.
Below is the mail i wrote for updating the fpc docs:
I've updated the search order of files. It is now:
For case sensitive systems (and windows):
NormalCase
lowercase
UPPERCASE
For non-case sensitive systems
lowercase
What does this mean. When you have a 'uses Hello' the compiler will first
look for a Hello.pp/.pas file. When the file HEllo.pas exists it will not
be found. So for the mixed case the uses line will be case-sensitive. This
is Kylix compatible.
Peter
___
fpc-devel maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel]Issues with GDB on Mac OS X with mixed case file

2004-08-29 Thread Peter Vreman
 One other topic: Why there are *.pp files? The handling is always very
 nonpractical and boring. Should we rename them to *.pas?

I don't see problems. You rename all your sources to *.pas. And you can
set highlighting for *.pp also to pascal. Under linux a lot of editors
already support *.pp for pascal sources.

*.pp are fpc specific (objfpc) sources
*.pas is for comaptiblity with tp7 and delphi



___
fpc-devel maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel]bug 3272

2004-08-29 Thread rstar
Hi!
Can someone solve this heavy bug below.
Thanks!
program  bug3272;
var i: integer;
begin
 for i:= -1 to -2 do
writeln (i);
 writeln;
 for i:= 1 to 0 do
writeln (i);
end.
___
fpc-devel maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-devel