[fpc-pascal] Suppressing ^C signal from stdin

2014-01-01 Thread Mark Morgan Lloyd
. Platform is predominantly Linux, possibly also Solaris and one of the BSDs. Anybody porting the program to Windows will have to do their own dirty work :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his emp

Re: [fpc-pascal] Very odd case parsing problem

2013-12-29 Thread Mark Morgan Lloyd
Great! :) Ruefully agrees :-) -- 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.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Very odd case parsing problem

2013-12-29 Thread Mark Morgan Lloyd
a dangling else, I'm not sure whether that's a good or a bad habit. -- 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@lis

Re: [fpc-pascal] Re: Very odd case parsing problem

2013-12-29 Thread Mark Morgan Lloyd
ich explicitly has case expression of case-element { ; case-element } else where a case-element ends with a statement which can be a compound-statement which again defines ; as a separator. (Oh Lord this is all we need: a syntax war to round off the year.) -- Mark Morgan Lloyd markMLl .AT. t

Re: [fpc-pascal] Very odd case parsing problem

2013-12-28 Thread Mark Morgan Lloyd
Saunders, Rich wrote: On 2013-12-28 15:47, Mark Morgan Lloyd wrote: I can fix that either by putting a semicolon before the else- which I believe is strictly incorrect- or by putting begin/end around that conditional, or by inserting a dummy statement before the else like quit_: if

[fpc-pascal] Very odd case parsing problem

2013-12-28 Thread Mark Morgan Lloyd
our in a cut-down test program? -- 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.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: how to simplify try try except end finally end?

2013-12-27 Thread Mark Morgan Lloyd
nciple it would be possible to define "start" as a macro, but I don't know how badly that would confuse Lazarus/Synedit highlighting and code folding. In practice it's completely incompatible with Delphi (and, as far as I know, every other Pascal variant) so is probably not

Re: [fpc-pascal] Re: how to simplify try try except end finally end?

2013-12-27 Thread Mark Morgan Lloyd
loaded try for two different structures should be shot. -- 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.freepascal.org

Re: [fpc-pascal] Re: MD5 decryption?

2013-12-11 Thread Mark Morgan Lloyd
hing schemes, although it must be said that most World-class fsckups have resulted from key distribution and storage failures. For the uninitiated, there's interesting info on crypto history and practice on John Savard's website http://www.quadibloc.com/ -- Mark Morgan Lloyd markM

Re: [fpc-pascal] when will Free Pascal have a stable release of 2.7.2?

2013-12-11 Thread Mark Morgan Lloyd
Sven Barth wrote: Am 11.12.2013 10:05, schrieb Mark Morgan Lloyd: Bart wrote: 2.7 branch will never be a stable release. Eventually we'll get a 2.8 release. I think that needs to be made to sound more deliberate, for Dennis's benefit. Please could any of the core team jump on

Re: [fpc-pascal] when will Free Pascal have a stable release of 2.7.2?

2013-12-11 Thread Mark Morgan Lloyd
ch might have a non-obvious numeric relationship to the current stable version) to get around a code-generation problem, but otherwise except for testing purposes you should stick to the even numbers. This echoes the development practice of the Linux kernel, and is increasingly common practice.

Re: [fpc-pascal] cannot read /sys/class/net/eth1/address even as root user on linux

2013-12-05 Thread Mark Morgan Lloyd
ules.d/z25_persistent-net.rules but again there are serious portability issues here. You do actually have an eth1 device on your system, don't you? Most if not all of the ones around here start off with eth0. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions

[fpc-pascal] Minimal telnet server

2013-12-04 Thread Mark Morgan Lloyd
x27;s otherwise entirely custom, which is to be translated from source subject to the MIT license (and possibly others: there's 50-year-old commercial code involved). -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employer

Re: [fpc-pascal] subtract longwords with rollover

2013-11-28 Thread Mark Morgan Lloyd
that converting $8000 to base10 might be dismal. -- 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.freepascal.org

Re: [fpc-pascal] CRITICAL Bug in Lnet DNSLookup failure problem

2013-11-28 Thread Mark Morgan Lloyd
return, and you should be looking more carefully at intermediate values and- in particular- validating parameters fed to the program by the user. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] _

Re: [fpc-pascal] Re: GetAffinity\SetAffinity

2013-11-22 Thread Mark Morgan Lloyd
ing on one core when it ran correctly. I'm afraid that I'm planning to spend the next few hours, and possibly days, catching up with some long-overdue SPARC and PPC testing- there's some fixed bugs on Mantis that I should have checked and my conscience is catching up with me.

Re: [fpc-pascal] Re: GetAffinity\SetAffinity

2013-11-22 Thread Mark Morgan Lloyd
.com/file/n5717549/test_threads.pas> Both appear to run OK here, for at least several minutes. Test system is x86, P3x2 with no ht etc., Debian "Squeeze" with standard kernel (2.6.32). -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's,

Re: [fpc-pascal] Re: GetAffinity\SetAffinity

2013-11-22 Thread Mark Morgan Lloyd
rd units, and test_threads.pas isn't standalone. -- 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.freepascal.org h

Re: [fpc-pascal] Re: GetAffinity\SetAffinity

2013-11-21 Thread Mark Morgan Lloyd
nd in that type of architecture you'd want to try to keep a process near to any ports it was servicing (i.e. with suitable interrupt affinity) even if traffic between boards was comparatively efficient. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions

Re: [fpc-pascal] Re: GetAffinity\SetAffinity

2013-11-20 Thread Mark Morgan Lloyd
n I/O device is "nearer" some CPUs than others. I've had hardware of this type in the past, but in those days kernel support for these calls was patchy. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not t

Re: [fpc-pascal] optionally uses a unit

2013-11-18 Thread Mark Morgan Lloyd
from local svn, and set up appropriate symlinks. The major issue would be directories and search paths. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pas

Re: [fpc-pascal] System.FileSize documentation

2013-11-06 Thread Mark Morgan Lloyd
Tomas Hajny wrote: On Wed, November 6, 2013 10:35, Mark Morgan Lloyd wrote: "Filesize returns the total number of records in file F. It cannot be invoked with a file of type Text. (under linux and unix, this also means that it cannot be invoked on pipes). If F is empty, 0 is returned."

[fpc-pascal] System.FileSize documentation

2013-11-06 Thread Mark Morgan Lloyd
lared with "of byte" etc. -- 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.freepascal.org http://lists.freep

Re: [fpc-pascal] same routine with different parameters?

2013-10-29 Thread Mark Morgan Lloyd
In general, the compiler will tell you if you're doing something silly. Assume that this is for value parameters only. In particular, I don't think there's a way of defaulting a var parameter to a nil pointer. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions abo

Re: [fpc-pascal] same routine with different parameters?

2013-10-29 Thread Mark Morgan Lloyd
o omit the parameter: procedure MyObject.MyRoutine(const VarA : string; VarB: integer= -1); -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pasca

Re: [fpc-pascal] How to detect if my program is running with root/elevated privileges?

2013-10-29 Thread Mark Morgan Lloyd
Bart wrote: On 10/28/13, Mark Morgan Lloyd wrote: For windows there is winutils.iswindowsadmin(), for unix likes there is fpgeteuid (which should return zero for root). Also remember unix-style capabilities. Care to elaborate on that? You can use the setcap utility to add or remove

Re: [fpc-pascal] How to detect if my program is running with root/elevated privileges?

2013-10-28 Thread Mark Morgan Lloyd
Bart wrote: On 10/27/13, Marco van de Voort wrote: For windows there is winutils.iswindowsadmin(), for unix likes there is fpgeteuid (which should return zero for root). Thanks a lot. Also remember unix-style capabilities. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk

[fpc-pascal] Sparse files and and copy-on-write filesystems

2013-10-26 Thread Mark Morgan Lloyd
at least I think I'd prefer to be able to use raw files. -- 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

Re: [fpc-pascal] fcl-process, SimpleIPC and pipes

2013-10-08 Thread Mark Morgan Lloyd
ason that I wanted to explore issues of naming etc., but porting to Windows turned out to be problematic despite my having used the MS/IBM variant in the past. Use SimpleIPC unless you have an informed reason not to. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are th

Re: [fpc-pascal] [OT] sealed?

2013-10-08 Thread Mark Morgan Lloyd
). FPC supports this since 2.4.2. Does it prevent the creation of class helpers? -- 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-p

Re: [fpc-pascal] Getting the state of a TRTLCriticalSection

2013-10-07 Thread Mark Morgan Lloyd
rms". They also always require a native alignment on all platforms, because those are cpu limitations for atomic instructions. On 07 Oct 2013, at 11:40, Mark Morgan Lloyd wrote: Thanks Jonas, noted. For completeness, is there a way to force one? See http://www.freepascal.org/docs-

Re: [fpc-pascal] Getting the state of a TRTLCriticalSection

2013-10-07 Thread Mark Morgan Lloyd
Jonas Maebe wrote: On 07 Oct 2013, at 09:14, Mark Morgan Lloyd wrote: Benito van der Zander wrote: In the end I stuck in code to increment/decrement a counter, and looked for it to be explicitly 0 or 1. Do you need to put a memory barrier around that, or does the critical section take care

Re: [fpc-pascal] Getting the state of a TRTLCriticalSection

2013-10-07 Thread Mark Morgan Lloyd
understand it- should handle membar itself on architectures that can benefit from it. -- 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 -

Re: [fpc-pascal] Getting the state of a TRTLCriticalSection

2013-10-06 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Sun, 6 Oct 2013, Mark Morgan Lloyd wrote: Is there a preferred way of reading back whether something (including the current thread) has already entered a TCriticalSection? To my knowlede this does not exist. The Microsoft implementation of a critical section

[fpc-pascal] Getting the state of a TRTLCriticalSection

2013-10-06 Thread Mark Morgan Lloyd
k = true); fails where indicated since the lock is owned by the current thread so TryEnter has succeeded. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pa

Re: [fpc-pascal] Socket error messages

2013-09-24 Thread Mark Morgan Lloyd
strerror() But aren't those EsysEINVAL rather than EsockEINVAL etc.? I notice that the example for fpconnect at http://lazarus-ccr.sourceforge.net/docs/rtl/sockets/fpconnect.html actually describes a variant of Connect that's not documented for fpconnect. -- Mark Morgan Lloyd markML

[fpc-pascal] Socket error messages

2013-09-24 Thread Mark Morgan Lloyd
-ccr.sourceforge.net/docs/rtl/sockets/fpconnect.html actually describes a variant of Connect that's not documented for fpconnect. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] _

Re: [fpc-pascal] lnet for TCP daemon

2013-09-12 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 09/12/2013 12:47 PM, Mark Morgan Lloyd wrote: I've concluded that using a thread is, in fact, preferable True. It's a pity that Synapse and friend (especially SynaSer) does does not implement internal threads that throw appropriate events in the Main T

Re: [fpc-pascal] lnet for TCP daemon

2013-09-12 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Michael Schnell wrote: On 09/11/2013 07:22 PM, Mark Morgan Lloyd wrote: I'd normally use a thread for this, but I've already got lnet's telnet client running in the program so would rather stick to the same library if possible. AFAIK, Lnet does n

Re: [fpc-pascal] lnet for TCP daemon

2013-09-12 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 09/11/2013 07:22 PM, Mark Morgan Lloyd wrote: I'd normally use a thread for this, but I've already got lnet's telnet client running in the program so would rather stick to the same library if possible. AFAIK, Lnet does not do threading internally (a

[fpc-pascal] lnet for TCP daemon

2013-09-11 Thread Mark Morgan Lloyd
t's telnet client running in the program so would rather stick to the same library if possible. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pas

Re: [fpc-pascal] Breaking Pascal source lines

2013-09-06 Thread Mark Morgan Lloyd
Howard Page-Clark wrote: On 06/09/2013 14:10, Mark Morgan Lloyd wrote: I'm sure there isn't a single "right" answer to this question, but if transferring Pascal source to a system that enforces short lines (e.g. 78 chars + CRLF) what's the best automatic breaking

Re: [fpc-pascal] Breaking Pascal source lines

2013-09-06 Thread Mark Morgan Lloyd
d to other dialects. -- 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.freepascal.org http://lists.freepascal.org/mailma

Re: [fpc-pascal] Re: Breaking Pascal source lines

2013-09-06 Thread Mark Morgan Lloyd
leledumbo wrote: Use JEDI Code Formatter with max line length 78 and let the magic works... Worth remembering, thanks :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colle

[fpc-pascal] Breaking Pascal source lines

2013-09-06 Thread Mark Morgan Lloyd
but is it valid to break after e.g. . (if not followed by a digit), ^ and possibly others? Syntax errors are acceptable. Truncation isn't. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Re: [fpc-pascal] How to clear the value of a field in a table using parameters?

2013-08-30 Thread Mark Morgan Lloyd
Actually, it means "we don't know and won't be told" since null or true -> null and so on. A bit like some political movements, frankly :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are t

Re: [fpc-pascal] Compilation Error At revision 25270.

2013-08-16 Thread Mark Morgan Lloyd
25271. As a general point, you'd make it far easier for everybody- including yourself- if you used the stable compiler (2.6.2) as your starting point. Also, if you want to know what revision you're at then use svn info rather than svn up. -- Mark Morgan Lloyd markMLl .AT. telemetry.c

Re: [fpc-pascal] User-defined operators and dummy parameters

2013-08-12 Thread Mark Morgan Lloyd
Sven Barth wrote: On 10.08.2013 12:04, Mark Morgan Lloyd wrote: Is it possible to pass a dummy parameter to a user-defined operator, with no expectation that it be referenced? The following test program compiles OK but fails at runtime with an error 217 on all platforms if the record is empty

Re: [fpc-pascal] Re: User-defined operators and dummy parameters

2013-08-10 Thread Mark Morgan Lloyd
:= t1.create(6,7,8,9); Does there have to be an explicit destroy or similar? -- 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@

[fpc-pascal] User-defined operators and dummy parameters

2013-08-10 Thread Mark Morgan Lloyd
1] := 2; a1[2] := 3; a1[3] := 4; a1[4] := 5; WriteLn('a1:'); print(a1); WriteLn('+/ a1:'); WriteLn(reduce + a1); WriteLn end. This is of no particular importance, I'm just exploring capabilities. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opini

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-08-01 Thread Mark Morgan Lloyd
a couple of years ago: it was decided fairly early that it had probably been compiled with MS tools, but inspection of the calling convention suggested that it was non-standard and it took a lot of head scratching before people decided which compiler/linker and what pragmata had been used. --

Re: [fpc-pascal] RE: FPIDE 1.0.6

2013-07-31 Thread Mark Morgan Lloyd
d. In particular, is he looking at something comparable with this: FreePascal IDE for Linux for i386 Target CPU: i386 Version 1.0.12 2012/11/14 -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those

Re: [fpc-pascal] ++ and --

2013-07-30 Thread Mark Morgan Lloyd
= etc. are fairly unambiguous: they're almost macro expansions and as such they don't mandate any extra overloadable operators etc. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of hi

Re: [fpc-pascal] what is the FPC equivalent of Delphi's zlib unit?

2013-07-28 Thread Mark Morgan Lloyd
or GIF handling? -- 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.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] RE: FPIDE 1.0.6

2013-07-24 Thread Mark Morgan Lloyd
o a really old compiler. It will be difficult to get feedback on outdate releases... /If/ that's the case, then he's got FPC 2.0.2. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of hi

Re: [fpc-pascal] Cross compiling Windows to arm-linux

2013-07-23 Thread Mark Morgan Lloyd
the C runtime .o files after my own code or something like that. But how do I accomplish that feat? This is a placeholder pending somebody more experienced commenting. A number of people have reported similar problems over the last few months, e.g. http://comments.gmane.org/gmane.comp.compil

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-07-19 Thread Mark Morgan Lloyd
that sort of device will without thinking use techniques that FPC would have difficulty accommodating. http://www.theregister.co.uk/2013/07/18/how_to_write_apps_for_the_pebble_smartwatch/ -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those o

Re: [fpc-pascal] Wiki licensing

2013-07-06 Thread Mark Morgan Lloyd
Mac OS Classic which no longer builds. -- 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.freepascal.org http://lists.fre

Re: [fpc-pascal] Re: (OT) Re: How to use UART of ARM platforms (e.g. Raspberry Pi ) through free Pascal?

2013-07-04 Thread Mark Morgan Lloyd
Luca Olivetti wrote: Al 04/07/13 17:24, En/na Mark Morgan Lloyd ha escrit: In any event, my experience is that USB->serial converters are very poor for anything that involves accurate timing, and I suspect that controlling a 485 transceiver in conjunction with one would be problematic.

Re: [fpc-pascal] Re: (OT) Re: How to use UART of ARM platforms (e.g. Raspberry Pi ) through free Pascal?

2013-07-04 Thread Mark Morgan Lloyd
ould help but exploiting them would take a non-standard driver. -- 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.f

Re: [fpc-pascal] Re: It is possible to pass command line to pascal

2013-07-02 Thread Mark Morgan Lloyd
unfamiliarity with the medium. -- 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.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] It is possible to pass command line to pascal

2013-06-30 Thread Mark Morgan Lloyd
Calling an external program is not something to be approached for a trivial reason, unless you're writing shell or in a scripting language such as Perl where it might be less trouble than searching CPAN for the appropriate extension module. -- Mark Morgan Lloyd markMLl .AT. telemetr

Re: [fpc-pascal] It is possible to pass command line to pascal

2013-06-30 Thread Mark Morgan Lloyd
inally, Linux (but not necessarily other unix implementations) puts version information into /proc/version which is accessible as a standard file- no external program required. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the auth

Re: [fpc-pascal] is there a ready to use FPC Cross compiler x86-Linux -> MIPS-linux?

2013-06-16 Thread Mark Morgan Lloyd
's probably a uClibc toolchain, one of the known issues is that it has to load the right .so file on the target. The big question is whether it also implies that there has to be special support for the Atheros (Broadcom?) target in the RTL. -- Mark Morgan Lloyd markMLl .AT. telemetry.co

Re: [fpc-pascal] why is MIPS not equivalent to MIPSEB

2013-06-15 Thread Mark Morgan Lloyd
lists/fpc-devel/2013-May/thread.html I'd remind you that the binaries I sent you were built with triplets etc. as given on http://wiki.lazarus.freepascal.org/Native_MIPS_Systems and that they worked here. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are th

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: /But/ I've got a vague recollection that somebody else had problems running on some router or other, which is one of the reasons why I fired things up at the end of last year and did some careful builds. I

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: /But/ I've got a vague recollection that somebody else had problems running on some router or other, which is one of the reasons why I fired things up at the end of last year and did some careful builds. I can't remember exactly

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: /But/ I've got a vague recollection that somebody else had problems running on some router or other, which is one of the reasons why I fired things up at the end of last year and did some careful builds. I can't remember exactly where that one got to- I su

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Dennis Poon wrote: Since I have spent days but still cannot produce a helloworld binary for MIPS big endian, I need someone to to produce that for me so I can test it on my MIPS hardware. I need to know at this stage whether a FPC produced program compiled for MIPS

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: /But/ I've got a vague recollection that somebody else had problems running on some router or other, which is one of the reasons why I fired things up at the end of last year and did some careful builds. I can't remember exactly where that one got to- I su

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-12 Thread Mark Morgan Lloyd
things up at the end of last year and did some careful builds. I can't remember exactly where that one got to- I suggest that you look back through the fpc-devel and fpc-pascal archive. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not t

Re: [fpc-pascal] is there a ready to use FPC Cross compiler x86-Linux -> MIPS-linux?

2013-06-12 Thread Mark Morgan Lloyd
t the innards of the compiler, but it should result in your having usable tools. If you are referring to a different link, please kindly send again as I did not see it on the fpc discussion list. http://lists.freepascal.org/lists/fpc-pascal/2013-June/038362.html -- Mark Morgan Lloyd markMLl .A

Re: [fpc-pascal] is there a ready to use FPC Cross compiler x86-Linux -> MIPS-linux?

2013-06-12 Thread Mark Morgan Lloyd
r. Can anyone provide me with links of PROVED binutils for MIPS linux? I've already given you a link, on our wiki, describing how to build them from scratch on a Debian system. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the autho

Re: [fpc-pascal] OT: Re: http://www.freepascal.org/future.var

2013-06-06 Thread Mark Morgan Lloyd
Howard Page-Clark wrote: On 06/06/2013 08:32, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: On 6-6-2013 7:52, Florian Klämpfl wrote: Reinier Olislagers schrieb: On 5-6-2013 22:02, Florian Klämpfl wrote: I'am opposed to an LLVM backend but if Jonas implements one I can and wil

Re: [fpc-pascal] OT: Re: http://www.freepascal.org/future.var

2013-06-06 Thread Mark Morgan Lloyd
ant I can not and will not ... Sure, I understood you: German and Dutch are much alike in this particular construction where you leave out one not/nicht/niet, I think ;) English is the same. Don't worry about it. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinion

Re: [fpc-pascal] is there a ready to use FPC Cross compiler x86-Linux -> MIPS-linux?

2013-06-05 Thread Mark Morgan Lloyd
more updated document or cross compiler already ready for use? Also see the link it cites, which describes building a Linux-hosted cross-compiler as a necessary stage towards getting it running natively on MIPS. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the au

Re: [fpc-pascal] how to generate Free Pascal program for Open source router OpenWrt?

2013-06-04 Thread Mark Morgan Lloyd
e I'm in no way an expert: Google suggests that's MIPS24k, what's the output from cat /proc/cpuinfo on that box? What does the file command have to say about your binary? What version of FPC are you using? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions ab

Re: [fpc-pascal] Program not running

2013-05-29 Thread Mark Morgan Lloyd
the symlink that is used by the fpc wrapper. I think in general it will be in the same directory as the fpc wrapper gets placed. So which fpc should give this, and then there'll be a symlink ppcarm or whatever. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above ar

Re: [fpc-pascal] FPC / Lazarus install on Fedora 18

2013-05-24 Thread Mark Morgan Lloyd
hat he'd done wrong. However I find the number of complaints I see about this behaviour irritating- it's difficult enough to keep abreast of things as it is. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the autho

Re: [fpc-pascal] FPC / Lazarus install on Fedora 18

2013-05-24 Thread Mark Morgan Lloyd
new email to start another discussion thread and stay away from "Reply" button for convenience. YES, YES, YES, YES, YES!!! Ask yourself: would you walk into a party with a friend, find two people in earnest conversation, stand next to them talking loudly and expect them to be happy abo

Re: [fpc-pascal] TProcess, Batch script and Windows

2013-05-17 Thread Mark Morgan Lloyd
use [poNoConsole] option. Is this a bug? As far as I know, batch files need CMD and that needs a console ? For completeness: I've certainly got a Delphi program that can "shell out" to cmd in its main window, but it was non-trivial to code. -- Mark Morgan Lloyd markMLl .AT. te

Re: [fpc-pascal] systemh.inc(117, 16) Error: Duplicate identifier "FarPointer"h

2013-05-09 Thread Mark Morgan Lloyd
ascal version 2.7.1, release 123456. The only compiler version supported by the build procedure is 2.6.2. This wouldn't solve historical questions for somebody trying to get every major version on his system (e.g. "which version of FPC should I use to build 2.4.2") but might

Re: [fpc-pascal] systemh.inc(117, 16) Error: Duplicate identifier "FarPointer"

2013-05-08 Thread Mark Morgan Lloyd
;d suggest that anything like that would be counterproductive, since it implies that prompt support will be given for things that are even dumber- like trying to compile FPC using Delphi :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those

Re: [fpc-pascal] systemh.inc(117, 16) Error: Duplicate identifier "FarPointer"

2013-05-07 Thread Mark Morgan Lloyd
Eric Kom wrote: On 07/05/2013 10:12, Mark Morgan Lloyd wrote: Eric Kom wrote: Good day, Compile failed. Please see below the error/bug. svn up make clean make OVERRIDEVERSIONCHECK=1 NOGDB=1 OPT='-O- -gl -Xs-' all You've already posted that, this isn't a chatroom an

Re: [fpc-pascal] systemh.inc(117, 16) Error: Duplicate identifier "FarPointer"

2013-05-07 Thread Mark Morgan Lloyd
ying to compile with that override, despite being told by one of the core developers not to? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-

Re: [fpc-pascal] MS DOS 8086 compiler?

2013-04-28 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: Actually, I have a vintage IBM PC 5150, with a 4.77 MHz 8088 processor, so this isn't true, it's very testable actually :) However, the i8086 code generator still generates some 186/286+ instructions, so

Re: [fpc-pascal] MS DOS 8086 compiler?

2013-04-28 Thread Mark Morgan Lloyd
on then. A pure-8086 port could be valuable if it generated reliable code for something like vtprolog.pas, since this implements its own garbage collection relying on detailed knowledge of how Turbo Pascal manages its heap. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions ab

Re: [fpc-pascal] MS DOS 8086 compiler?

2013-04-28 Thread Mark Morgan Lloyd
hy would anybody want to when even embedded processors are based on a newer architecture? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal m

Re: [fpc-pascal] GetCurrentDir

2013-04-22 Thread Mark Morgan Lloyd
that the kernel can't parse. -- 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.freepascal.org http://lists.freepascal

Re: [fpc-pascal] Re: Mipsel compilation: changing elf flags?!

2013-04-22 Thread Mark Morgan Lloyd
hoping to be able to test the MIPS etc. targets on a fairly regular basis, but Qemu (running on the systems available here) quite simply turned out to not be fast enough, and I'm struggling to find time to revisit getting an SGI system running for big-endian work. -- Mark Morgan Ll

Re: [fpc-pascal] Mipsel compilation: changing elf flags?!

2013-04-21 Thread Mark Morgan Lloyd
el, I think that the problem is that /some/ kernel builds are expecting a particular ELF header on /some/ machine types. If OP could identify the correct parameter for ld it might be possible to use fpc's -k option. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions abo

Re: [fpc-pascal] fpGUI Toolkit v1.0 release for FPC 2.6.2

2013-04-21 Thread Mark Morgan Lloyd
other look when I've got a chance, what I've seen so far has been impressive. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pasca

Re: [fpc-pascal] LLVM (again)

2013-04-19 Thread Mark Morgan Lloyd
.." unless such conciseness is frowned upon as an attribute of brace-using languages :-) :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pasca

Re: [fpc-pascal] socket timeout

2013-04-16 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 04/16/2013 11:26 AM, Xiangrong Fang wrote: How can I set the connection and read/write timeout when using socket in free pascal? I seem to remember that synapse can do this. Otherwise for non-standard protocols use fpconnect(), fpselect() etc. -- Mark Morgan Lloyd

Re: [fpc-pascal] Array assignment, and not-a-number

2013-04-15 Thread Mark Morgan Lloyd
fine e.g. + for a pair of 1-D dynamic arrays, a pair of 2-D dynamic arrays and so on. If I understand things correctly it's not possible to define a generalised dynamic array parameter where the dimension (number of axes/indexes) as well as the rank (range of each index) is undefined. -

Re: [fpc-pascal] Array assignment, and not-a-number

2013-04-15 Thread Mark Morgan Lloyd
s passed as the parameter which I suppose is not entirely surprising. Using varnull as a placeholder seems safest, although it looks as though I can't initialise a variant at declaration... WTH, it's just a toy for the moment at least. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT

Re: [fpc-pascal] Array assignment, and not-a-number

2013-04-15 Thread Mark Morgan Lloyd
Jonas Maebe wrote: On 15 Apr 2013, at 16:48, Mark Morgan Lloyd wrote: I was having a bit of fun earlier while waiting for a call. Am I correct in believing that something like typet1= array of integer; var a1: t1; x: integer; a1 := [1,2,3,4,5]; can't be done at pr

[fpc-pascal] Array assignment, and not-a-number

2013-04-15 Thread Mark Morgan Lloyd
re an accessible not-a-number constant, to allow me to do something like var reduce: double= NAN; x := reduce + a1; with an appropriate definition of the + operator without risk that an error would try to evaluate it as an ordinary arithmetic expression? -- Mark Morgan Lloyd markML

Re: [fpc-pascal] Portable (or at least working) version of GetDomainName()?

2013-04-09 Thread Mark Morgan Lloyd
something explicitly entered by the user. -- 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.freepascal.org http://lists.freepa

Re: [fpc-pascal] Portable (or at least working) version of GetDomainName()?

2013-04-09 Thread Mark Morgan Lloyd
Ludo Brands wrote: On 04/09/2013 10:14 AM, Mark Morgan Lloyd wrote: It might be notable that Debian doesn't volunteer a domain name unless it's able to contact DNS. I'll get onto nslookup, or just use temporary text (it's only salt for a password hash, and is stored).

<    1   2   3   4   5   6   7   8   9   10   >