Re: [fpc-pascal] Unit testing for RTL packages

2021-01-24 Thread Sven Barth via fpc-pascal
Am 24.01.2021 um 20:58 schrieb Noel Duffy via fpc-pascal: On 24/01/21 11:53 pm, Sven Barth via fpc-pascal wrote: Am 24.01.2021 um 08:37 schrieb Noel Duffy via fpc-pascal: How should one go about adding unit tests to a package in the RTL? In many packages, for instance fcl-db, there is a tests f

Re: [fpc-pascal] Unit testing for RTL packages

2021-01-24 Thread Noel Duffy via fpc-pascal
On 24/01/21 11:53 pm, Sven Barth via fpc-pascal wrote: Am 24.01.2021 um 08:37 schrieb Noel Duffy via fpc-pascal: How should one go about adding unit tests to a package in the RTL? In many packages, for instance fcl-db, there is a tests folder with fpcunit units and programs in them, and they'r

Re: [fpc-pascal] Unit testing for RTL packages

2021-01-24 Thread Sven Barth via fpc-pascal
Am 24.01.2021 um 08:37 schrieb Noel Duffy via fpc-pascal: How should one go about adding unit tests to a package in the RTL? In many packages, for instance fcl-db, there is a tests folder with fpcunit units and programs in them, and they're referenced in fpmake.pp as example programs, but these

Re: [fpc-pascal] unit GUi creation also usable for visually impaired developers with no sight at all

2019-08-09 Thread Mgr. Janusz Chmiel
Oh it is very promising programmers approach. I Am even dreaming about live Internet radio player written by using Pas2JS. I have analysed included units and I have found Webaudio unit. BUt I Am afraid, that opening live stream with .MP3 live stream and play it from Pascal source by using Pas2JS

Re: [fpc-pascal] unit GUi creation also usable for visually impaired developers with no sight at all

2019-08-09 Thread Jean SUZINEAU
Le 09/08/2019 à 12:22, Mgr. Janusz Chmiel a écrit : Does somebody of you know about Lazarus compatible Unit, which is able to create Windows GUi with no need to specify object position values in points or in Pixels? Something similar like VCL units have for commercial BOrland Delphi. Or unfortu

Re: [fpc-pascal] unit GUi creation also usable for visually impaired developers with no sight at all

2019-08-09 Thread fredvs
Hello. There is ideU, a child of mseide that is voice-assisted and gives also the position of the mouse by voice. https://github.com/fredvs/ideU/releases Fre:D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/

Re: [fpc-pascal] Unit path search order

2016-04-24 Thread Martin Schreiber
On Saturday 23 April 2016 11:18:48 Martin Schreiber wrote: > On Saturday 23 April 2016 10:40:58 Jonas Maebe wrote: > > Martin Schreiber wrote: > > > http://www.freepascal.org/docs-html/current/user/usersu7.html#x21-28000 > > >3. 1.2 states: > > > " > > > You can add a directory to the unit search p

Re: [fpc-pascal] Unit path search order

2016-04-23 Thread Martin Schreiber
On Saturday 23 April 2016 10:40:58 Jonas Maebe wrote: > Martin Schreiber wrote: > > http://www.freepascal.org/docs-html/current/user/usersu7.html#x21-280003. > >1.2 states: > > " > > You can add a directory to the unit search path with the (-Fu (see page > > 100)) option. Every occurrence of one of

Re: [fpc-pascal] Unit path search order

2016-04-23 Thread Jonas Maebe
Martin Schreiber wrote: http://www.freepascal.org/docs-html/current/user/usersu7.html#x21-280003.1.2 states: " You can add a directory to the unit search path with the (-Fu (see page 100)) option. Every occurrence of one of these options will insert a directory to the unit search path. i.e. the

Re: [fpc-pascal] unit for PHostEnt definition

2015-12-17 Thread leledumbo
> after a whole night of unsuccessful googling I’m still wondering, which unit(s) I have to use to find a type definition of PHostEnt in linux. I need it for the gethostbyname function. > > In Windows it’s defined in winsock and there should be an equivalent > record in linux according to systems

Re: [fpc-pascal] Unit crt

2015-09-24 Thread Roger Rivero Jr. (SAMPA WebMaster)
El 23/9/2015 12:25 PM, Rainer Stratmann escribió: Rather than saving the state in a static way, I prefer implementing a Push/Pop (LIFO queue) approach to allow for nested pairs of setting and restoring, like this: Type IOsCollection = {Any sort of collection, array, list, or record with lin

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 13:19:28 you wrote: > Rainer Stratmann wrote on Wed, 23 Sep 2015: > > Does an example exist to turn off (and on) the rawmode? > > You posted the routine to do that yourself in the first mail of this > thread (the last one). There is not enough information available

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 22:40:32 you wrote: > What means CRT for ? :) https://en.wikipedia.org/wiki/Cathode_ray_tube ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Ched
What means CRT for ? :) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 18:24:54 you wrote: > On 23/09/15 15:06, Rainer Stratmann wrote: > > On Wednesday 23 September 2015 13:19:28 you wrote: > >> >Rainer Stratmann wrote on Wed, 23 Sep 2015: > >>> > >Does an example exist to turn off (and on) the rawmode? > >> > > >> >You posted the ro

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 18:24:54 you wrote: > On 23/09/15 15:06, Rainer Stratmann wrote: > > On Wednesday 23 September 2015 13:19:28 you wrote: > >> >Rainer Stratmann wrote on Wed, 23 Sep 2015: > >>> > >Does an example exist to turn off (and on) the rawmode? > >> > > >> >You posted the ro

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Jonas Maebe
On 23/09/15 15:06, Rainer Stratmann wrote: On Wednesday 23 September 2015 13:19:28 you wrote: >Rainer Stratmann wrote on Wed, 23 Sep 2015: > >Does an example exist to turn off (and on) the rawmode? > >You posted the routine to do that yourself in the first mail of this >thread (the last one)

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: On Wednesday 23 September 2015 13:19:28 you wrote: Rainer Stratmann wrote on Wed, 23 Sep 2015: Does an example exist to turn off (and on) the rawmode? You posted the routine to do that yourself in the first mail of this thread (the last one). http://man7.org/linux/ma

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 13:19:28 you wrote: > Rainer Stratmann wrote on Wed, 23 Sep 2015: > > Does an example exist to turn off (and on) the rawmode? > > You posted the routine to do that yourself in the first mail of this > thread (the last one). > http://man7.org/linux/man-pages/man3/te

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 13:19:28 you wrote: > Rainer Stratmann wrote on Wed, 23 Sep 2015: > > Does an example exist to turn off (and on) the rawmode? > > You posted the routine to do that yourself in the first mail of this > thread (the last one). Ok, I guess the ONOCR flag in c_oflag bit

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Jonas Maebe
Rainer Stratmann wrote on Wed, 23 Sep 2015: Does an example exist to turn off (and on) the rawmode? You posted the routine to do that yourself in the first mail of this thread (the last one). Jonas ___ fpc-pascal maillist - fpc-pascal@lists.f

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: Does it have something to do with the output of Linux commands? Now the outputs are: Message 1 Message 2 Message 3 How is it possible to get the normal behaviour? stty sane Note that is doesn't so much affect the out

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
On Wednesday 23 September 2015 12:05:43 you wrote: > In our previous episode, Rainer Stratmann said: > > Does it have something to do with the output of Linux commands? > > Yes. In raw mode cr and lf are separate. so suddenly your lf only advances > to the next line, but doesn't reset the carriag

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Marco van de Voort
In our previous episode, Rainer Stratmann said: > Does it have something to do with the output of Linux commands? Yes. In raw mode cr and lf are separate. so suddenly your lf only advances to the next line, but doesn't reset the carriage to the first column. Use TProcess to capture the command ou

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Rainer Stratmann
Does it have something to do with the output of Linux commands? Now the outputs are: Message 1 Message 2 Message 3 How is it possible to get the normal behaviour? Message 1 Message 2 Message 3 On Wednesday 23 September 2015 11:46:15 you wrot

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: What does SetRawMode do? Applies CFMakeRaw. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Michael Van Canneyt
On Tue, 22 Sep 2015, Rainer Stratmann wrote: What does SetRawMode do? puts the terminal in RAW mode. This disables usual terminal tricks such as translating CTRL-C to SIGINT etc. A terminal does quite some things 'behind your back', which are not desirable for the CRT unit. Michael.

Re: [fpc-pascal] unit crt linux CR LF

2014-12-22 Thread leledumbo
> When using the crt unit the CR LF is not working properly as I understand. quite the opposite, crt makes CR LF works as intended per character (see last answer) > Is it possible to change this behaviour? yes, don't use crt > So that the CR LF is working? Back to first answer > For examlp

Re: [fpc-pascal] Unit alias

2013-01-19 Thread Michael Van Canneyt
On Sat, 19 Jan 2013, Martin Schreiber wrote: Hi, Does FPC support unit alias commandline parameter like Delphi? " -A= = Set unit alias " http://docwiki.embarcadero.com/RADStudio/XE3/en/DCC32.EXE,_the_Delphi_Command_Line_Compiler Not to my knowledge. It was, at the time, a conscious decisi

Re: [fpc-pascal] Unit alias

2013-01-19 Thread Sven Barth
On 19.01.2013 10:41, Martin Schreiber wrote: Hi, Does FPC support unit alias commandline parameter like Delphi? " -A= = Set unit alias " http://docwiki.embarcadero.com/RADStudio/XE3/en/DCC32.EXE,_the_Delphi_Command_Line_Compiler No, it doesn't. And as this is normally only used for the dep

Re: [fpc-pascal] Unit testing aid...

2012-08-23 Thread michael . vancanneyt
On Wed, 22 Aug 2012, Martin wrote: On 22/08/2012 18:08, Michael Van Canneyt wrote: Hi, for those that do unit testing, I committed a small tool "pas2ut" which analyses a unit, and creates a unit with a number of (empty) test cases. Obviously, the unit should be compileable (well, at least

Re: [fpc-pascal] Unit testing aid...

2012-08-23 Thread Sven Barth
Am 22.08.2012 21:56, schrieb Martin: On 22/08/2012 18:08, Michael Van Canneyt wrote: Hi, for those that do unit testing, I committed a small tool "pas2ut" which analyses a unit, and creates a unit with a number of (empty) test cases. Obviously, the unit should be compileable (well, at least it

Re: [fpc-pascal] Unit testing aid...

2012-08-23 Thread Sven Barth
Am 22.08.2012 21:56, schrieb Martin: On 22/08/2012 18:08, Michael Van Canneyt wrote: Hi, for those that do unit testing, I committed a small tool "pas2ut" which analyses a unit, and creates a unit with a number of (empty) test cases. Obviously, the unit should be compileable (well, at least it

Re: [fpc-pascal] Unit testing aid...

2012-08-22 Thread Martin
On 22/08/2012 18:08, Michael Van Canneyt wrote: Hi, for those that do unit testing, I committed a small tool "pas2ut" which analyses a unit, and creates a unit with a number of (empty) test cases. Obviously, the unit should be compileable (well, at least it must be parseable). I just updat

Re: [fpc-pascal] Unit testing aid...

2012-08-22 Thread Graeme Geldenhuys
On 22 August 2012 18:47, Daniel Gaspary wrote: > The obvious example: insert calls to logging procedures at the enter > and exit of each method, procedure or function of a unit. This is already possible for some time. Take a look at the 'fpprofiler' project. I have a version of it that I worked

Re: [fpc-pascal] Unit testing aid...

2012-08-22 Thread Daniel Gaspary
On Wed, Aug 22, 2012 at 2:08 PM, Michael Van Canneyt > I would appreaciate feedback and suggestions. I believe could be interesting to have a similar tool to generate "annotations" to a unit(or set of units). The obvious example: insert calls to logging procedures at the enter and exit of each m

Re: [fpc-pascal] Unit initialization in dll initialization for arm/WinCE

2012-06-12 Thread Sven Barth
On 12.06.2012 18:27, Tomas Hajny wrote: On Tue, June 12, 2012 18:04, Sven Barth wrote: Am 12.06.2012 15:20 schrieb "kyan": . . The problem is that function GetModuleName() is stubbed out in WinCE (and Linux): unit SysUtils.inc; function GetModuleName(Module: HMODULE): string; begin {$ifd

Re: [fpc-pascal] Unit initialization in dll initialization for arm/WinCE

2012-06-12 Thread Tomas Hajny
On Tue, June 12, 2012 18:04, Sven Barth wrote: > Am 12.06.2012 15:20 schrieb "kyan" : . . >> The problem is that function >> GetModuleName() is stubbed out in WinCE (and Linux): >> >> unit SysUtils.inc; >> >> function GetModuleName(Module: HMODULE): string; >> begin >> {$ifdef MSWINDOWS} >> SetL

Re: [fpc-pascal] Unit initialization in dll initialization for arm/WinCE

2012-06-12 Thread kyan
Thank you for your reply Sven. > It might't be that Windows (or CE only) initalizes a library only if you use > GetProcAddress at least once... I have not tested that, but it might be an > idea. If that is the case we can not influence that. No need to, it really doesn't matter since one has to d

Re: [fpc-pascal] Unit initialization in dll initialization for arm/WinCE

2012-06-12 Thread Sven Barth
Am 12.06.2012 15:20 schrieb "kyan" : > > OK, I apologize. It seems that the problem lies elsewhere. The fact > that library initialization seems to be deferred until you do a > GetProcAddress() confused me. It might't be that Windows (or CE only) initalizes a library only if you use GetProcAddress

Re: [fpc-pascal] Unit initialization in dll initialization for arm/WinCE

2012-06-12 Thread kyan
OK, I apologize. It seems that the problem lies elsewhere. The fact that library initialization seems to be deferred until you do a GetProcAddress() confused me. The problem is that function GetModuleName() is stubbed out in WinCE (and Linux): unit SysUtils.inc; function GetModuleName(Module: HMO

Re: [fpc-pascal] Unit initialization in dll initialization for arm/WinCE

2012-06-11 Thread Sven Barth
Am 11.06.2012 12:25, schrieb kyan: Does unit initialization in libraries (.dll files) work in arm/WinCE? From the startup code of arm-wince I don't see why it should not work... Somehow it seems that even code placed in the library initialization begin end block isn't executed either. How d

Re: [fpc-pascal]Unit initialization on Android library

2011-02-12 Thread Jeppe Johansen
Den 12-02-2011 13:26, Dejan Boras skrev: Okay, this works nicely. I do realize it should be done automatically, but for whatever reason it does not, and I am not sure if this is something Android related or a fpc bug. Thanks. It's probably fpc rtl related. It's a certain flavour of Linux that h

Re: [fpc-pascal]Unit initialization on Android library

2011-02-12 Thread Dejan Boras
Okay, this works nicely. I do realize it should be done automatically, but for whatever reason it does not, and I am not sure if this is something Android related or a fpc bug. Thanks. - Original Message - From:Paul Ishenin To:Dejan Boras ; FPC-Pascal users discussions Cc: Sent:Satu

Re: [fpc-pascal]Unit initialization on Android library

2011-02-12 Thread Paul Ishenin
12.02.2011 16:36, Dejan Boras wrote: I've got a library which runs on Android, and is loaded by a Java program. The INITIALIZATION sections of units do not seem to be called, is there a way to do this manually, or am I missing something? It must be done automatically but you can force it yours

Re: [fpc-pascal] unit export control

2010-05-31 Thread Luca Olivetti
Al 31/05/10 18:25, En/na Jonas Maebe ha escrit: For instance, the first point I met is a literal notation for records "r := (a:1 ; b:2);". But fpc refuses that to me :-( (Same result with array notations.) FPC indeed does not support this, and I'm not aware of any immediate plans to add supp

Re: [fpc-pascal] unit export control

2010-05-31 Thread Jonas Maebe
On 31 May 2010, at 16:16, spir ☣ wrote: > I'm converting a few components, first developped in independant programs, > into units. I have 2 issues in the process. > > -1- internal dependency > How can an interface element E0 depend on an implementation element E1? It cannot, regardless of the

Re: [fpc-pascal] Unit/library for writing data structures to files

2008-08-10 Thread Francisco Reyes
David W Noon writes: Incidentally, from your first message in this thread, you said you were writing an OLAP application. You might care to look at PostgreSQL as a database manager. It does rather nice OLAP functionality, straight out of the box -- and it's free. Somewhat offtopic... Im a full

Re: [fpc-pascal] Unit/library for writing data structures to files

2008-08-10 Thread David W Noon
On Sun, 2008-08-10 at 16:51 -0400, Francisco Reyes wrote: > Michael Van Canneyt writes: > > > You can also try the Classes unit if you use object oriented programming. > > Each component can write itself to stream. > > Played a little bit with the Classes unit. > Don't really see any benefit ove

Re: [fpc-pascal] Unit/library for writing data structures to files

2008-08-10 Thread Francisco Reyes
Michael Van Canneyt writes: You can also try the Classes unit if you use object oriented programming. Each component can write itself to stream. Played a little bit with the Classes unit. Don't really see any benefit over justin writing records directly. Am I missing something? Also when read

Re: [fpc-pascal] Unit/library for writing data structures to files

2008-08-10 Thread Michael Van Canneyt
On Sat, 9 Aug 2008, Francisco Reyes wrote: > I looked through the contributed units in the http://freepascal.org site and > did not see anything that could take an array or some other data structure and > write it to disk. Also the library would need to do the opposite, read from > disk into a d

Re: [fpc-pascal] unit

2008-03-25 Thread Valdas Jankūnas
Tomas Hajny rašė: Isn't Fps one of the third party front-ends for fpc (with completely independent versioning, of course)? Yes, "FPS is system consisting from graphical user interface and integrated Free Pascal compiler." (http://ims.mii.lt/fps/en/devel/index.html). -- Valdas Jankūnas

Re: [fpc-pascal] unit system;  procedure move();

2008-03-17 Thread Pete Cervasio
On Monday 17 March 2008 06:40:51 Jonas Maebe wrote: > On 17 Mar 2008, at 12:34, [EMAIL PROTECTED] wrote: > > Is the use of the move procedure right? The array length is > > Maximum-1. When I > > put this length on value[1], the last entry value[Maximum-1] would > > be deleted > > or would be shifte

Re: [fpc-pascal] unit system;  procedure move ();

2008-03-17 Thread Jonas Maebe
On 17 Mar 2008, at 12:34, [EMAIL PROTECTED] wrote: I need more informations about the move() procedure form unit system. I want to shift an array (values:array[0..Maximum-1] of single) like the following lines: for i:=Maximum-1 downto 1 do values[i]:=values[i-1]; values[0]:=sameothervalue;

Re: [fpc-pascal] unit

2008-03-17 Thread Tomas Hajny
On Sat, March 15, 2008 12:58, Marco van de Voort wrote: >> Why I can't to run unit - programa say: 'Illegal unit name' I try Fps >> 0.9.6and 0.6.4 program versions. > > Units are not runnable, FPC versions before 1.0 are from the 1900s. Maybe > you mean the version of something else? > > If on Linu

Re: [fpc-pascal] unit

2008-03-15 Thread Marco van de Voort
> Why I can't to run unit - programa say: 'Illegal unit name' I try Fps > 0.9.6and 0.6.4 program versions. Units are not runnable, FPC versions before 1.0 are from the 1900s. Maybe you mean the version of something else? If on Linux, your source file must be either lowercase, or match the casing

Re: [fpc-pascal] unit

2008-03-15 Thread Jonas Maebe
On 14 Mar 2008, at 21:30, europietis N wrote: Why I can't to run unit - programa say: 'Illegal unit name' Make sure the unit name matches the file name that contains it. I try Fps 0.9.6and 0.6.4 program versions. These are quite strange versions. FPC 0.6.4 was released somewhere in 1995

Re: [fpc-pascal] Unit output directory

2007-08-30 Thread Michael Van Canneyt
On Thu, 30 Aug 2007, Graeme Geldenhuys wrote: > On 30/08/2007, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > > User's manual, section 5.3 "Variable substitution in paths". > > > > > That obvious!! ;-) Thanks Michael. It works perfectly now. > > PS: > Not sure if I told you, but tiOPF

Re: [fpc-pascal] Unit output directory

2007-08-30 Thread Graeme Geldenhuys
On 30/08/2007, Jonas Maebe <[EMAIL PROTECTED]> wrote: > > Using custom fpc config files has its own issues, see > http://www.freepascal.org/mantis/view.php?id=9450 > > The config file handling was simply not designed with this purpose in > mind. fpcmake really is quite easy to use. Funny that. It

Re: [fpc-pascal] Unit output directory

2007-08-30 Thread Jonas Maebe
On 30 Aug 2007, at 14:11, Graeme Geldenhuys wrote: Ummm... damn. I was hoping to get away from Makefile's (for CLI users) and instead use a custom extrafpc.cfg file in each of the important directories. I guess it's back to reading the manual on Makefile.fpc and fpcmake. Using custom fpc co

Re: [fpc-pascal] Unit output directory

2007-08-30 Thread Graeme Geldenhuys
On 30/08/2007, Jonas Maebe <[EMAIL PROTECTED]> wrote: > > I guess you mean -FU... Ah yes. That's what I meant. > > How can I force the compiler to create the output directory if it > > doesn't exist? Is there another parameter for that? > > No, the compiler does not create directories, only file

Re: [fpc-pascal] Unit output directory

2007-08-30 Thread Jonas Maebe
On 30 Aug 2007, at 13:59, Graeme Geldenhuys wrote: I now specify a unit output path as follows: -Fu../lib/$fpctarget I guess you mean -FU... How can I force the compiler to create the output directory if it doesn't exist? Is there another parameter for that? No, the compiler does no

Re: [fpc-pascal] Unit output directory

2007-08-30 Thread Graeme Geldenhuys
On 30/08/2007, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > > User's manual, section 5.3 "Variable substitution in paths". > Another question... (sorry). I read the whole chapter 5 and looked at the fpc parameters and couldn't find any hints. I now specify a unit output path as follows:

Re: [fpc-pascal] Unit output directory

2007-08-30 Thread Graeme Geldenhuys
On 30/08/2007, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > User's manual, section 5.3 "Variable substitution in paths". > That obvious!! ;-) Thanks Michael. It works perfectly now. PS: Not sure if I told you, but tiOPF Core is now GUI free! At last true non-gui apps can be written. I've

Re: [fpc-pascal] Unit output directory

2007-08-30 Thread Michael Van Canneyt
On Thu, 30 Aug 2007, Graeme Geldenhuys wrote: > Hi, > > Under Lazarus I can specify the unit output directory as follows: > ../../lib/$(TargetCPU)-$(TargetOS) > > > I'm trying to do the same thing from the command line (without > Lazarus), but FPC doesn't know about the TargetCPU or TargetO

Re: [fpc-pascal] Unit for working with Lists, Double Linked Lists and Stacks

2007-06-03 Thread Cesar Romero
Catalin, Because it's GPL/GNU? :) Exactly []s Cesar Romero On Monday 04 June 2007 04:23, Cesar Romero wrote: Catalin, Interesting stuff, unhappily the licence dont allow me to use in my business app. []s Cesar Romero Hello, Just wanted to contribute my two cents wit

Re: [fpc-pascal] Unit for working with Lists, Double Linked Lists and Stacks

2007-06-03 Thread Catalin Zamfir Alexandru
Because it's GPL/GNU? :) On Monday 04 June 2007 04:23, Cesar Romero wrote: > Catalin, > > Interesting stuff, unhappily the licence dont allow me to use in my > business app. > > []s > > Cesar Romero > > > Hello, > > Just wanted to contribute my two cents with this homemade Unit [attached > >

Re: [fpc-pascal] Unit for working with Lists, Double Linked Lists and Stacks

2007-06-03 Thread Cesar Romero
Catalin, Interesting stuff, unhappily the licence dont allow me to use in my business app. []s Cesar Romero Hello, Just wanted to contribute my two cents with this homemade Unit [attached to the mail] for working with: - Simple Linked Lists; - Double Linked Lists; - Stacks; Don't know

Re: [fpc-pascal] unit inet... for resolving dns

2006-12-17 Thread lionel
ok i missed some thing RFC 1912 Common DNS Errors February 1996 Make sure your PTR and A records match. For every IP address, there should be a matching PTR record in the in-addr.arpa domain. If a host is multi-homed, (more than one IP address) make su

Re: [fpc-pascal] unit inet... for resolving dns

2006-12-15 Thread Lionel Drevon
ok after a long read inside the rfc actually it seem that http://tools.ietf.org/html/rfc2317 the rfc 2317 specify that the in-addr.arpa can be a CNAME in case of Classless IN-ADDR.ARPA delegation. less than a /24 so the answer could be a CNAME not only a PTR. I need to correct the Function

Re: [fpc-pascal] unit inet... for resolving dns

2006-12-15 Thread Lionel Drevon
Nice i try the netbd but i found a "bug",i use the testdns.pp provide in the directory of netbd. hostAddrtostr('www.adeli.fr') give the good 195.167.230.4 answer. but the H:=StrtoHostAddr('195.167.230.4'); L:=ResolveAddress(H,NAns); give me 0 result ! i notice that the result for this is pr

Re: [fpc-pascal] unit inet... for resolving dns

2006-12-14 Thread Michael Van Canneyt
On Thu, 14 Dec 2006, Lionel Drevon wrote: > I found in the doc the inet unit, but i don't found it under my system nor on > the web > on page http://www.freepascal.org/packages/inet.html > the link ftp://ftp.freepascal.org/pub/fpc/source/packages.zip seem to be > broken! Try the netdb or resolv

Re: [fpc-pascal] Unit "Sockets"

2006-11-16 Thread Daniël Mantione
Op Thu, 16 Nov 2006, schreef Rainer Stratmann: > Am Donnerstag, 16. November 2006 10:58 schrieb Marco van de Voort: > > > does there exist a Demo Program for Unit Sockets? > > > I want to make a direct IPX connection between 2 Computers. > > > And later an Internet connection. > > > > Which OS?

Re: [fpc-pascal] Unit "Sockets"

2006-11-16 Thread Rainer Stratmann
Am Donnerstag, 16. November 2006 10:58 schrieb Marco van de Voort: > > does there exist a Demo Program for Unit Sockets? > > I want to make a direct IPX connection between 2 Computers. > > And later an Internet connection. > > Which OS? Anyway, socket is mainly about TCP/IP, and there are demoes in

Re: [fpc-pascal] Unit "Sockets"

2006-11-16 Thread Marco van de Voort
> does there exist a Demo Program for Unit Sockets? > I want to make a direct IPX connection between 2 Computers. > And later an Internet connection. Which OS? Anyway, socket is mainly about TCP/IP, and there are demoes in the description of the unit in the manual. Why do you want to use IPX in t

Re: [fpc-pascal] unit name with dots

2006-05-27 Thread mariano podesta
None of the FPC developers currently has the time nor wish to supportany of the .NET enhancements, and that includes the dot in the unit names.despite it was originally intended for .net, i don't see it as a .net specific enhancement, but it's ok. i appreciate your answer. Michael.marianop

Re: [fpc-pascal] unit name with dots

2006-05-27 Thread mariano podesta
We don't support every bug/strange thing delphi supports.ok, i understand your point. in my very humble opinion it was an interesting idea.If you want to insult people you might do it somewhere else. Thank you. it was a joke. not aiming to offend anybody.thanks,marianop

Re: [fpc-pascal] unit name with dots

2006-05-26 Thread Michael Van Canneyt
On Thu, 25 May 2006, mariano podesta wrote: > > > > > > This looks to me like a delphi bug. > > > a bug? are you serious? > > A unit must be a valid pascal > > > > identifier. > > > fpc just support valid standard pascal? this is not what i heard. > delphi7 supports it since 2002. not a .net rel

Re: [fpc-pascal] unit name with dots

2006-05-26 Thread Florian Klaempfl
mariano podesta wrote: > > > This looks to me like a delphi bug. > > > a bug? are you serious? Of course, asdf.asdf is no valid pascal identifier. > > A unit must be a valid pascal > > > identifier. > > > fpc just support valid standard pascal? this is not what i heard. > delphi

Re: [fpc-pascal] unit name with dots

2006-05-26 Thread mariano podesta
> > This looks to me like a delphi bug.a bug? are you serious? A unit must be a valid pascal> > identifier. fpc just support valid standard pascal? this is not what i heard. delphi7 supports it since 2002. not a .net release. Or is there any use in supporting this?ofcourse there is a use.you see

Re: [fpc-pascal] unit name with dots

2006-05-25 Thread Marco van de Voort
> On 5/25/06, Florian Klaempfl <[EMAIL PROTECTED]> wrote: > > mariano podesta wrote: > > > hi, > > > does fpc support unit names with more than one dot or is planned? > > > > > > in delphi 7 you can compile this: > > > > This looks to me like a delphi bug. A unit must be a valid pascal > > identifi

Re: [fpc-pascal] unit name with dots

2006-05-25 Thread Graeme Geldenhuys
On 5/25/06, Florian Klaempfl <[EMAIL PROTECTED]> wrote: mariano podesta wrote: > hi, > does fpc support unit names with more than one dot or is planned? > > in delphi 7 you can compile this: This looks to me like a delphi bug. A unit must be a valid pascal identifier. Or is there any use in supp

Re: [fpc-pascal] unit name with dots

2006-05-25 Thread Micha Nelissen
On Wed, 24 May 2006 10:42:30 -0300 "mariano podesta" <[EMAIL PROTECTED]> wrote: > hi, > does fpc support unit names with more than one dot or is planned? > > begin > test.sec.doit; > end. Don't you think this is very confusing ? Micha ___ fpc-pascal

Re: [fpc-pascal] unit name with dots

2006-05-25 Thread Florian Klaempfl
mariano podesta wrote: > hi, > does fpc support unit names with more than one dot or is planned? > > in delphi 7 you can compile this: This looks to me like a delphi bug. A unit must be a valid pascal identifier. Or is there any use in supporting this? > > // unit main.dpr > program main; > >

Re: [fpc-pascal] unit testing framework for fpc

2005-06-27 Thread Marc Santhoff
Am Montag, den 27.06.2005, 19:33 +0200 schrieb Michael Van Canneyt: > > On Mon, 27 Jun 2005, Marc Santhoff wrote: > > > Hi, > > > > not long ago there has been some talk about a test framework for object > > pascal on this list. IIRC it was some sort of port of junit to pascal. > > > > Is it in

Re: [fpc-pascal] unit testing framework for fpc

2005-06-27 Thread Dean Zobec
Michael Van Canneyt wrote: >>Where can I find it? >> >> > >It's included with FPC by default. Sources are in fcl/fpcunit. >Just include fpcunit in your source. See the examples for a console demo. > >Lazarus has a special package that allows you to create either a GUI or >a console test applic

Re: [fpc-pascal] unit testing framework for fpc

2005-06-27 Thread Michael Van Canneyt
On Mon, 27 Jun 2005, Marc Santhoff wrote: > Hi, > > not long ago there has been some talk about a test framework for object > pascal on this list. IIRC it was some sort of port of junit to pascal. > > Is it in a usable state? Very much so. > Where can I find it? It's included with FPC by de

Re: [fpc-pascal]Unit Graph with Linux (Knoppix) or alternative unit

2003-02-07 Thread Holger Peters
Hi, > You may want to have a look at the 4th or 5th GTK article on the website. > There I explain how you could set up such a thing. (It's the one with the > breakout game) I've already read this article, and I tried to write a Widget, that does this, but it does not work right (I'm searching sti

Re: [fpc-pascal]Unit Graph with Linux (Knoppix) or alternative unit

2003-02-06 Thread Michael Van Canneyt
On Thu, 6 Feb 2003, Holger Peters wrote: > Hi, > are there any alternatives? > I think of a simple Graphic Unit, or a Widget for GTK with some simple > drawing functions. I'm satisfied with a simple PutPixel procedure. You may want to have a look at the 4th or 5th GTK article on the website. Th

Re: [fpc-pascal]Unit Graph with Linux (Knoppix) or alternative unit

2003-02-06 Thread Anton Tichawa
Hello, Holger Peters! I hvae a unit that sits on top of X and allows run-time switching between normal and DGA mode, and - in DGA mode - fast painting. There are almost no widgets, but some examples (two fonts, balls, rainbows, ..). Currently, it does NOT run under proprietary OS's. Also, it is

Re: [fpc-pascal]Unit Graph with Linux (Knoppix) or alternative unit

2003-02-06 Thread Holger Peters
Hi, are there any alternatives? I think of a simple Graphic Unit, or a Widget for GTK with some simple drawing functions. I'm satisfied with a simple PutPixel procedure. Holger ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/m

Re: [fpc-pascal]Unit Graph with Linux (Knoppix) or alternative unit

2003-02-01 Thread Marco van de Voort
> I've got a question again :) > > I get the mistake, which is described in the FAQ under my Knoppix > Distribution: > > >Why can't the linker find "vga"? > > >This error typically looks like this: > > >Free Pascal Compiler version 1.0.x [/yy/zz] for i386 > >Copyright (c) 1993-2000 by Flor