[fpc-pascal] Shortstrings/ ANSIStrings

2005-09-02 Thread antal
What is the main difference between the shortstrings (256 byte) and the ANSI Strings? I mean, upon using the Strings, we have plenty of functions, manipulating the string, while with ANSIStrings we have certain difficulties obtaining the same result This is ranging from Pos(), Delete(), String ad

[fpc-pascal] Re: set envirom variable with pascal in linux

2005-09-02 Thread Jeff Pohlmeyer
> In Bach, Perl, can do set SDL_VER=`sdl-config --version` > But in Pascal non have the setenv() procedure as in C :( > ... > Actualy I resolve this problem with sending the output to a file, and > then reading the file. It sounds to me like you just want a global variable, not an environment va

[fpc-pascal] Test, please ignore

2005-09-02 Thread Florian Klaempfl
___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Test, please ignore

2005-09-02 Thread Florian Klaempfl
___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] RE: old code with readdir

2005-09-02 Thread Jeff Pohlmeyer
> >  Error: Identifier not found "opendir" > See baseunix.fpreaddir etc in the help. > Note that it is nearly always better to use the highlevel > Pascal equivalents findfirst/findnext. Just be careful calling FindNext recursively on Linux, things can go haywire if you hit a symlink to '.' or s

[fpc-pascal] FindPart and wildcards

2005-09-02 Thread Claudio Oliveira
A simple question: how do I work with wildcards and "FindPart" ("strutils" unit) function? If I use writeln(FindPart('de?','abcdefgh')); i'll got "4", but if I use writeln(FindPart('de*','abcdefgh')); I'll got "0". Why? How can I use the asterisk wildcard? Thanks a lot! Claudio

[fpc-pascal] exec with many params

2005-09-02 Thread Antal
in linux I can't use the exec for executing a program with more than one parameter. I tried to supply more than a parameter separeted with whitespace, but it's not reliable, since the program is treating it as just one parameter so I can't pass options to programs, such as: ls -l .* _

[fpc-pascal] Array of Char

2005-09-02 Thread Carsten Bager
We are moving from another Pascal compiler where this is allowed. -- Type   txt_typ=packed array[0..1] of char; Const   txt1:txt_typ=('12'); -- Is there a way around this without having to write   txt1:txt_typ=('1','2'); Anoth

[fpc-pascal] Embedded ARM system unit

2005-09-02 Thread Carsten Bager
I am in the first stage of creating a system unit for Embedded ARM. Things are working but I get a lot of Warnings and Hints (Se below). Should I be worried about this? In the "fpc_InitializeUnits" procedure I have excluded the call to the "fpc_cpuinit" procedure, my system cannot start if it is in

[fpc-pascal] Re: fpc-pascal Digest, Vol 11, Issue 7

2005-09-02 Thread DSTRODT
In a message dated 7/7/2005 5:02:07 A.M. Central Daylight Time, Steve Williams writes: I got the latest FPC source using Subversion on Win32.  Running make build in the root directory worked fine.  Running make install fails because cp.exe does not ignore hidden directories, therefore

[fpc-pascal] Diff for GTK 2.6

2005-09-02 Thread Federico \"Lox\" Lucignano
I made this little patch thinking that the default GTK_2_2 define directive in gtk2.pas is really obsolete looking at the current versions (2.8.x and 2.6.x). gtk_2.6.x.diff Description: Binary data ___ fpc-pascal maillist - fpc-pascal@lists.freepascal

Re: [fpc-pascal] Pascal-Compiler under Linux

2005-09-02 Thread Klaus Hartnegg
> Hello, > > I try to write a little article about Pascal-programming under Linux. As I > now, Kylix, FPC and the GNU Pascal Compiler Have a look at Lazarus http://www.lazarus.freepascal.org/ Lazarus is for FreePascal what Delphi or Kylix is for TurboPascal.

[fpc-pascal] Windows Type LPARAM, WPARAM

2005-09-02 Thread Urbansound
Hi,   I've been working with FPC 2.0.0 and Dev-Pas for some GUI efforts and another programmer pointed out an interesting thing, regarding the LPARAM and WPARAM types.  I hope I'm not kicking up old dust, but for the sake of clarification if we may...   The Microsoft architecture affiliates t

Re: [fpc-pascal] exec with many params

2005-09-02 Thread Marco van de Voort
> in linux I can't use the exec for executing a program with more than one > parameter. "the exce" ? Which exec? Can you provide an example? > I tried to supply more than a parameter separeted with whitespace, but > it's not reliable, since the program is treating it as just one parameter > > so

Re: [fpc-pascal] exec with many params

2005-09-02 Thread Michael Van Canneyt
On Tue, 21 Jun 2005, Antal wrote: > in linux I can't use the exec for executing a program with more than one > parameter. > I tried to supply more than a parameter separeted with whitespace, but > it's not reliable, since the program is treating it as just one parameter > > so I can't pass opti

[fpc-pascal] Dynamic-linker

2005-09-02 Thread Paul Davidson
fpc 2.1.1 (2005/07/24) Darwin When compiling with -pg (generate profiling data) linker complains with: /usr/bin/ld: unknown flag: -dynamic-linker= P Davidson Corax Networks Inc. http://CoraxNetworks.com IMPORTANT NOTICE: This message is intended only for the use of the individual or entity to

[fpc-pascal] Cross compiler win32/ARM error code 2 ?

2005-09-02 Thread [EMAIL PROTECTED]
Hi, just trying to build fpc (today snapshot 2.1.X) for win32 plateform and wince arm target. i get the following error message ? D:\FPC\2.1.x-src>make all OPT=-vt CPU_TARGET=arm OS_TARGET=wince CROSSBINDIR=d:\ fpc\cross\arm-wince BINUTILSPREFIX=arm-wince- INSTALL_PREFIX=d:\FPC\2.1.X >d:\

[fpc-pascal] I can't set up ! (the mac osx user)

2005-09-02 Thread nano-k
I can't see even "Hello World". After downloading from the "download" corner,installing to my h/d, what shall I do next ? I can't understand at all. I can't find out on any document to set up after installing. " Only type fpc" can't lead me to even " Hello World". I do hope the script file

[fpc-pascal] fpGetRUsage

2005-09-02 Thread Paul Davidson
Trying to get fpGetRusage to work. Using: function fpGetRUsage( who : cint; data : pRUsage ) : cint; cdecl; external 'c' name 'getrusage'; But this gives silly results. Any hints? P Davidson Corax Networks Inc. http://CoraxNetworks.com IMPORTANT NOTICE: This message is intended only for the

[fpc-pascal] fpGetRUsage

2005-09-02 Thread Paul Davidson
(Oops) Trying to get fpGetRusage to work WITH DARWIN. Using: function fpGetRUsage( who : cint; data : pRUsage ) : cint; cdecl; external 'c' name 'getrusage'; But this gives silly results. Any hints? P Davidson Corax Networks Inc. http://CoraxNetworks.com IMPORTANT NOTICE: This message is in

[fpc-pascal] Two-dimensional dynamic arrays in C libraries

2005-09-02 Thread Silvio a Beccara
Hi everybody, I need to pass two- or three-dimensional dynamic arrays to C libraries from FPC. I know this is feasible with one-dimensional arrays, by using a pointer to the array: for instance ---code type PDouble = ^Double; function get_array(a, b: PDouble; size: integer; value: double): i

Re: [fpc-pascal] Shortstrings/ ANSIStrings

2005-09-02 Thread Michael . VanCanneyt
On Tue, 14 Jun 2005 [EMAIL PROTECTED] wrote: > What is the main difference between the shortstrings (256 byte) and the ANSI > Strings? Shortstrings are on the stack, and have the length stored in the 0-th byte. AnsiStrings are on the heap, and have their length stored somewhere hidden. Ansistr

Re: [fpc-pascal] Extended float to single and pchar types

2005-09-02 Thread Urbansound
Please ignore this. It is an FPC mailing list error, repeated from August - Original Message - From: "Urbansound" <[EMAIL PROTECTED]> To: Cc: "Matt Emson" <[EMAIL PROTECTED]> Sent: Tuesday, August 02, 2005 1:41 PM Subject: Re: [fpc-pascal] Extended float to single and pchar types

Re: [fpc-pascal] Windows Type LPARAM, WPARAM

2005-09-02 Thread Michael Van Canneyt
On Tue, 16 Aug 2005, Urbansound wrote: > Hi, > > I've been working with FPC 2.0.0 and Dev-Pas for some GUI efforts and another > programmer pointed out an interesting thing, regarding the LPARAM and WPARAM > types. I hope I'm not kicking up old dust, but for the sake of clarification > if w

Re: [fpc-pascal] Windows Type LPARAM, WPARAM

2005-09-02 Thread Urbansound
Please ignore this.  FPC has generated this as an error.  This is an old discussion from August - Original Message - From: Urbansound To: fpc-pascal@lists.freepascal.org Sent: Tuesday, August 16, 2005 9:25 PM Subject: [fpc-pascal] Windows Type LPARAM, WPARAM

Re: [fpc-pascal] Two-dimensional dynamic arrays in C libraries

2005-09-02 Thread Michael Van Canneyt
On Fri, 15 Jul 2005, Silvio a Beccara wrote: > Hi everybody, > > I need to pass two- or three-dimensional dynamic arrays to C libraries from > FPC. I know this is feasible with one-dimensional arrays, by using a pointer > to the array: for instance > > ---code > type > PDouble = ^Double; >