Re: [fpc-pascal] FPC release for Solaris not available on SF

2011-07-29 Thread Mark Morgan Lloyd
. Was this simply a minor oversight? Probably, yes. Someone in the core team with access to Sourceforge should probably upload it. Assuming that Graeme is referring to Intel-architecture Solaris here, is there anything I can usefully do to help make a 2.4.4 SPARC binary available? -- Mark Morgan Lloyd

Re: [fpc-pascal] operator overloading and counting references / creating / destoying anonymous instances

2011-07-29 Thread Mark Morgan Lloyd
Sven Barth wrote: Am 28.07.2011 23:04, schrieb Mark Morgan Lloyd: I wonder if I could ask a silly question here, without displaying too much ignorance. I generally understand the significance of an interface in the Windows context, where COM (or whatever today's name for it) is integrated

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-09 Thread Mark Morgan Lloyd
, in the general case, be easier to enforce a rule that filenames don't contain characters which have special significance, at which point option values aren't going to need to be quoted except for cases like OPT= passed to the FPC build. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk

Re: [fpc-pascal] ARM STM32F Processor

2011-09-19 Thread Mark Morgan Lloyd
a proprietary protocol over USB, but that there might be alternatives. http://hackaday.com/2010/10/12/arm-prototyping-on-the-cheap-with-stm32-discovery/ http://answerpot.com/showthread.php?1008813-ST-Link+with+OpenOCD%3F -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

Re: [fpc-pascal] Compiling sources obtained via SVN

2011-10-19 Thread Mark Morgan Lloyd
(not tested on x64 since I don't have one). -- 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

Re: [fpc-pascal] Compiling sources obtained via SVN

2011-10-19 Thread Mark Morgan Lloyd
and in particular on the debugger, even I have taken to using Lazarus for this. I think possibly that the time has come that without an explicit option to include it the debugger (i.e. calls to libgdb) should be excluded by default. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions

[fpc-pascal] Unicode function names

2011-10-20 Thread Mark Morgan Lloyd
Out of curiosity, I've just tried creating a function named ⍳ (Unicode character 2373, i.e. the APL iota function). FPC trunk complains Fatal: illegal character '�' ($E2) What is the rule here- functions must be entirely ANSI or functions must start with ANSI? -- Mark Morgan Lloyd markMLl

Re: [fpc-pascal] Unicode function names

2011-10-20 Thread Mark Morgan Lloyd
Sven Barth wrote: Am 20.10.2011 10:04, schrieb michael.vancann...@wisa.be: On Thu, 20 Oct 2011, Mark Morgan Lloyd wrote: Out of curiosity, I've just tried creating a function named ⍳ (Unicode character 2373, i.e. the APL iota function). FPC trunk complains Fatal: illegal character

Re: [fpc-pascal] How are Assigned, Free, Nil and Destroy related?

2011-10-22 Thread Mark Morgan Lloyd
of all zeros, and anything with even the slightest interest in compatibility sticks to this as a convention. -- 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] How are Assigned, Free, Nil and Destroy related?

2011-10-24 Thread Mark Morgan Lloyd
at OS/2 (the one that bombed when you said BYTE(0)). I've also seen : used by a disassembler (Sourcer), possibly for the same value that Frank suggests. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: RE : [fpc-pascal] Re: How to insert a record and get the primary keywith sqldb?

2011-10-24 Thread Mark Morgan Lloyd
the data and relying on the server to reject it if not unique. A minor warning about Postgres's serial type: if the table is cleared the underlying sequence isn't automatically reset. That might or might not be what's needed/expected. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions

Re: [fpc-pascal] text.inc(1955, 20) Error: identifier idents no member CodePage

2011-10-26 Thread Mark Morgan Lloyd
forces me to update my own sources or to use a bleeding-edge version of Lazarus then that's my problem. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal

[fpc-pascal] Debugging ancient heap allocation

2011-11-21 Thread Mark Morgan Lloyd
a problem. This isn't particularly important, if it looks like something useful I'll rewrite anyway. But I'd prefer to have this even partly functional first. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

[fpc-pascal] WideString and TRegexpr

2011-12-01 Thread Mark Morgan Lloyd
. -- 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] WideString and TRegexpr

2011-12-03 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Has anybody with experience of WideStrings tried compiling the new Regexpr unit to support them? I'm in a position where I could very much benefit from using these, but I think that I'm only seeing patterns match for characters = #$00ff and even then am not seeing

Re: [fpc-pascal] WideString and TRegexpr

2011-12-03 Thread Mark Morgan Lloyd
as x86 (and SPARC behaves the same as PPC). Reported as issue 0020806. I'm not able to test using a recent Delphi, or on a 64-bit CPU. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

[fpc-pascal] UTF-16 strings

2011-12-13 Thread Mark Morgan Lloyd
. TWideStringList? -- 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

Re: [fpc-pascal] Timer in X11

2011-12-21 Thread Mark Morgan Lloyd
linux. Google around to find examples. Presumably with the usual health warnings on whether select() updates its parameters. As far as I could tell when hacking serial.pp, Linux does but Solaris (8, 10) doesn't. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

Re: [fpc-pascal] Forward declarations

2011-12-22 Thread Mark Morgan Lloyd
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] LGPL rtl

2011-12-25 Thread Mark Morgan Lloyd
separately. On what do you base this understanding? Mine is that what you're saying applies to GPL, but not to LGPL. -- 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] convert epoch to UTC

2012-01-16 Thread Mark Morgan Lloyd
. *) VAR y, m: Int64; d: DOUBLE; BEGIN jYear(td, y, m, d); yy:= y; mm:= m; dd:= Trunc(d) END { jYear } ; which was transcribed from Perl (originally written in C) Moon phase calculations and again I believe tests OK. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT

Re: [fpc-pascal] convert epoch to UTC

2012-01-16 Thread Mark Morgan Lloyd
put it into operation ;) The ultimate reference for almost all this stuff usually turns out to be one of Jean Meeus's books. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

[fpc-pascal] Best practice for getting heap usage summary

2012-01-19 Thread Mark Morgan Lloyd
comparable for FPC- THeapStatus.TotalAllocated 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

Re: [fpc-pascal] Best practice for getting heap usage summary

2012-01-19 Thread Mark Morgan Lloyd
Mattias Gaertner wrote: On Thu, 19 Jan 2012 09:06:46 + Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: What is considered best practice for getting a summary of heap usage, in a single-threaded program which doesn't need to be Delphi-compatible? In Delphi programs that have

Re: [fpc-pascal] IPTables log parser?

2012-01-19 Thread Mark Morgan Lloyd
] Command-line handling of iptables can be irritating since setting up a rule doesn't give you a unique tag you can use to delete it. I've had a situation in the past where I no longer knew the addresses etc. when it came to tearing a rule down, which caused problems. -- Mark Morgan Lloyd

[fpc-pascal] Class helpers and properties

2012-01-27 Thread Mark Morgan Lloyd
this with a protected writer property? My attempt as below messed up the reader: TLLEvaluator = class helper for TLexemeList private procedure SetValue(v: TPrimaevalValue); protected property Value: TPrimaevalValue write SetValue; ... -- Mark Morgan Lloyd markMLl

Re: [fpc-pascal] Class helpers and properties

2012-01-27 Thread Mark Morgan Lloyd
Sven Barth wrote: On 27.01.2012 22:46, Mark Morgan Lloyd wrote: If a class has a public reader property like this: TLexemeList= class(TObject) protected fValue: TPrimaevalValue; public property Value: TPrimaevalValue read fValue; ... Note that below is in a different unit. is there a way

Re: [fpc-pascal] Class helpers and properties

2012-01-28 Thread Mark Morgan Lloyd
Sven Barth wrote: On 27.01.2012 23:51, Mark Morgan Lloyd wrote: Sven Barth wrote: On 27.01.2012 22:46, Mark Morgan Lloyd wrote: If a class has a public reader property like this: TLexemeList= class(TObject) protected fValue: TPrimaevalValue; public property Value: TPrimaevalValue read fValue

Re: [fpc-pascal] I found FPC v0.2 source code :-)

2012-01-29 Thread Mark Morgan Lloyd
to read them? I've still a 5 1/4 floppy lying around, afaik it should still work with current MBs. My experience is that both media and drives suffer with age, even if not being used. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his

Re: [fpc-pascal] I found FPC v0.2 source code :-)

2012-01-30 Thread Mark Morgan Lloyd
major damage). -- 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

Re: [fpc-pascal] I found FPC v0.2 source code :-)

2012-01-30 Thread Mark Morgan Lloyd
Graeme Geldenhuys wrote: On 30 January 2012 10:54, Mark Morgan Lloyd wrote: People who repair things are a dying breed. I fully agree. Totally off-topic, but anybody here know of a course or books one could buy on basic electronic repairs. Thinking in lines of PSU etc to start with. I've

Re: [fpc-pascal] I found FPC v0.2 source code :-)

2012-01-30 Thread Mark Morgan Lloyd
with it, or maybe oberon, it's been so long that I cannot remember the details. Just trying to keep it a bit on topic. I've commented to this in fpc-other. -- 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] fpc 2.6.0 for arm-embedded

2012-02-03 Thread Mark Morgan Lloyd
responded: what does fpc -h|head give you? That error 127 can be caused by the symlink from (e.g.) /usr/local/bin/ppcarm pointing to a file that doesn't exist. -- 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] Why is Free Pascal a blacklisted package on linux distro?

2012-02-06 Thread Mark Morgan Lloyd
which was supposed to be a collaborative effort between SGI and MS. IIRC SGI eventually disposed of the documentation on the bonfire at a beach party. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

[fpc-pascal] looking for binary of 2.2.0

2012-02-16 Thread Mark Morgan Lloyd
Is there a binary of 2.2.0 for i386 Linux still available anywhere? I'm having difficulty compiling it from source (possible problem in 2.2.4) and need it to investigate something that appears not to have worked properly in (Lazarus running with) later versions. -- Mark Morgan Lloyd markMLl

Re: [fpc-pascal] looking for binary of 2.2.0

2012-02-16 Thread Mark Morgan Lloyd
source (possible problem in 2.2.4) and need it to investigate something that appears not to have worked properly in (Lazarus running with) later versions. -- 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] looking for binary of 2.2.0

2012-02-16 Thread Mark Morgan Lloyd
Denne mail er blevet scannet for virus af TDC Mailfilter. Med venlig hilsen Carsten Bager BEAS A/S Brørupvænget 10 DK-7650 Bøvlingbjerg Tlf. : +45 9788 5222 Fax : +45 9788 5434 www.beas.dk -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

[fpc-pascal] Outputting a set for debugging

2012-02-21 Thread Mark Morgan Lloyd
What type can I cast a set (actually Lazarus's TShiftState) to, in order to be compatible with IntToHex() for debugging output? Or is there some other preferred procedure? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers

Re: [fpc-pascal] Outputting a set for debugging

2012-02-21 Thread Mark Morgan Lloyd
Mattias Gaertner wrote: On Tue, 21 Feb 2012 21:19:52 + Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: What type can I cast a set (actually Lazarus's TShiftState) to, in order to be compatible with IntToHex() for debugging output? Or is there some other preferred procedure

Re: [fpc-pascal] FPC with case insensitive file system under Linux

2012-02-24 Thread Mark Morgan Lloyd
to be used in anger. -- 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

Re: [fpc-pascal] xterm -e program-compiled-with-fpc2.4.0 doesn't work

2012-02-27 Thread Mark Morgan Lloyd
with an absolute path (i.e. not relying on the PATH shell variable), or if you're in the current directory make sure you put ./ in front of it. I don't know why this should depend on the version of FPC used. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's

Re: [fpc-pascal] Re: FPC with case insensitive file system under Linux

2012-02-27 Thread Mark Morgan Lloyd
filesystem that he's had good reasons to do so, and not to try to overrule or protect him. -- 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

Re: [fpc-pascal] Linking message ...did you forget -T?

2012-02-28 Thread Mark Morgan Lloyd
for that... | grep -v :-) -- 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

Re: [fpc-pascal] Re: OT: Amazing new development tools

2012-03-01 Thread Mark Morgan Lloyd
. the exact position of visible components could be rather useful. -- 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: OT: Amazing new development tools

2012-03-03 Thread Mark Morgan Lloyd
Martin wrote: On 29/02/2012 11:44, Mark Morgan Lloyd wrote: Martin wrote: Sure one *could* record *all* variables, and the callstack... But what if - you add a new variable, what to initialize it with? - remove the function that called the current code, or even delete the line where you just

Re: [fpc-pascal] Re: Trim(): incompatibility with Delphi

2012-03-06 Thread Mark Morgan Lloyd
some weird locale-specific problem. -- 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

[fpc-pascal] FPC Advanced Records

2012-03-09 Thread Mark Morgan Lloyd
Can an Advanced Record, i.e. a record which as well as having fields has at least one embedded function, be safely used as a cast or type transfer overlaying unstructured bytes? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his

Re: [fpc-pascal] FPC Advanced Records

2012-03-09 Thread Mark Morgan Lloyd
Jonas Maebe wrote: On 09 Mar 2012, at 22:26, Mark Morgan Lloyd wrote: Thanks Jonas, I don't think I need to do it but I thought it was a fair question: better safe than sorry. OK, so hopefully I can get away with another. I'm looking at a program written in Delphi, which reads a file

Re: [fpc-pascal] FPC Advanced Records

2012-03-09 Thread Mark Morgan Lloyd
Martin wrote: On 09/03/2012 21:26, Mark Morgan Lloyd wrote: but is there any way to define something like an endianness-correcting type, i.e.: Type TAWSHeader=Record ThisSize: WordLE; .. where by the time ThisSize is accessed any disparity has been corrected? Not sure

Re: [fpc-pascal] FPC Advanced Records

2012-03-10 Thread Mark Morgan Lloyd
Sven Barth wrote: Am 09.03.2012 23:26, schrieb Mark Morgan Lloyd: Martin wrote: On 09/03/2012 21:26, Mark Morgan Lloyd wrote: but is there any way to define something like an endianness-correcting type, i.e.: Type TAWSHeader=Record ThisSize: WordLE; .. where by the time ThisSize

Re: [fpc-pascal] status of MIPS port

2012-03-10 Thread Mark Morgan Lloyd
. There was relevant discussion in this ML at end-Jan/start-Feb, also see http://wiki.lazarus.freepascal.org/Native_MIPS_Systems which I knocked together when I started looking at it. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his

Re: [fpc-pascal] Burn a CD

2012-03-14 Thread Mark Morgan Lloyd
that I'd settle for building a .iso image, and rely on the user having his own software which is known to be compatible with his hardware. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

[fpc-pascal] [No subject]

2012-03-15 Thread Mark Morgan Lloyd
___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] [No subject]

2012-03-15 Thread Mark Morgan Lloyd
___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Problems with broken (or unclear) download urls for fpc-solaris

2012-03-28 Thread Mark Morgan Lloyd
. Lazarus 0.9.30-fixed should compile and run on v10 now that some alignment patches have been incorporated. In all cases, you need the freeware gas, gld, gmake and probably gtar etc., and need to be careful with your paths. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Mark Morgan Lloyd
the *first* thing to do is to confirm that the variable has stuck by using the set command. After that try running the Pascal 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] Text matching for configuration files etc.

2012-04-11 Thread Mark Morgan Lloyd
is a configuration file handler, where parameters describe things like keyboard layout, and I want to include some latitude so that a user doesn't have to get it exactly right if editing by hand. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those

Re: [fpc-pascal] Text matching for configuration files etc.

2012-04-12 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: I know that there are algorithms which given a text fragment will find the best fit from a number of candidates, based on how many substrings have to be deleted or changed. Is there anything like this in the standard FPC library, and if not does anybody have one

[fpc-pascal] Resolving a local hostnames to an IP address

2012-04-13 Thread Mark Morgan Lloyd
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] Resolving a local hostnames to an IP address

2012-04-13 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: a particular development system but if it happens to me it might happen to others. In short, how best should I work around this? Have a look at unit cnetdb.pp in fcl-net package. Thanks Marco, now working. I see

Re: [fpc-pascal] Resolving a local hostnames to an IP address

2012-04-14 Thread Mark Morgan Lloyd
waldo kitty wrote: On 4/13/2012 04:54, Mark Morgan Lloyd wrote: If I use THostResolver.NameLookup I find that it can convert a fully-qualified name but not one where the domain is omitted, can you explain this a bit more, please? the reason i ask is because some code wants at least one dot

Re: [fpc-pascal] Resolving a local hostnames to an IP address

2012-04-17 Thread Mark Morgan Lloyd
. For unqualified lookups on unix you need to use cnetdb, i.e. go via libc, or parse resolv.conf in application code. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal

Re: RE : [fpc-pascal] Resolving a local hostnames to an IP address

2012-04-17 Thread Mark Morgan Lloyd
that the base configuration will still compile. -- 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

[fpc-pascal] Open vs dynamic arrays

2012-04-22 Thread Mark Morgan Lloyd
time the procedure's called. What, please, is the correct syntax to use in this sort of case? FPC 2.6.0 on Linux x86. -- 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] Open vs dynamic arrays

2012-04-22 Thread Mark Morgan Lloyd
the problem, reverting to array of integer fixes the other but I'm not sure why that works when it didn't earlier (i.e. before I'd started using array of const). -- 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] Open vs dynamic arrays

2012-04-22 Thread Mark Morgan Lloyd
cobines wrote: 2012/4/22 Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk: but I'm not sure why that works when it didn't earlier (i.e. before I'd started using array of const). You said you used DbgArray= array of integer then I assume this declaration? procedure ClrDebug(const panels

Re: [fpc-pascal] Open vs dynamic arrays

2012-04-22 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Sun, 22 Apr 2012, Mark Morgan Lloyd wrote: cobines wrote: 2012/4/22 Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk: but I'm not sure why that works when it didn't earlier (i.e. before I'd started using array of const). You said you used DbgArray= array

[fpc-pascal] Sending break on (Windows) serial comms

2012-04-24 Thread Mark Morgan Lloyd
correctly. -- 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

Re: [fpc-pascal] Sending break on (Windows) serial comms

2012-04-25 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: Marco, I see you had a StackOverflow question on this a year or so ago. Did you ever get anywhere with it in practice? It was an idea to lower the overhead and improve the reliability of our

[fpc-pascal] Testing existence of a file at compilation time

2012-04-26 Thread Mark Morgan Lloyd
/Lazarus_Documentation#Free_Pascal_Compiler_Documentation is still 2.2. -- 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

Re: [fpc-pascal] making FPC more code optimized

2012-04-29 Thread Mark Morgan Lloyd
a lot since those days it should, in theory, no longer be an issue: but I suspect that many old prejudices remain. -- 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] Reversing bit-order of byte

2012-05-03 Thread Mark Morgan Lloyd
this, but arm-assembler is new to me. I think I'd use a lookup table (making sure it's cacheable), particularly since what you're doing is going to be called frequently and you're likely to have much more than 64K memory. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

[fpc-pascal] Linux sound (especially MIDI) programming: ALSA?

2012-05-06 Thread Mark Morgan Lloyd
Has anybody used FPC to control ALSA on Linux? I need to filter a MIDI stream in real time, and handle transposition etc. If anybody knows of useful resources I'd appreciate any hints. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his

Re: [fpc-pascal] Linux sound (especially MIDI) programming: ALSA?

2012-05-06 Thread Mark Morgan Lloyd
you remember which Pascal interface to the ALSA libraries you were using? I think I've seen two, but I've not yet checked to see whether they were actually minor variants of the same thing. On 2012/05/06 10:09 AM, Mark Morgan Lloyd wrote: Has anybody used FPC to control ALSA on Linux? I need

Re: [fpc-pascal] Linux sound (especially MIDI) programming: ALSA?

2012-05-07 Thread Mark Morgan Lloyd
Wimpie Nortje wrote: On 2012/05/06 05:49 PM, Mark Morgan Lloyd wrote: Wimpie Nortje wrote: I have used ALSA to record sound. It was some time ago, I think on Kubuntu 10.04 or so. I can send you some code I used but I have no idea whether it will work under newer Linux's Thanks, but since

Re: [fpc-pascal] Re: Linux sound (especially MIDI) programming: ALSA?

2012-05-07 Thread Mark Morgan Lloyd
code that will support either if possible. If I could also code to support PortMidi that would be a bonus, but by no means essential: I'm trying to knock together a MIDI transposer for my own use, and testbed some techniques for another project. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT

Re: RE : [fpc-pascal] 2.6.0 for Solaris?

2012-05-09 Thread Mark Morgan Lloyd
-generation bugs that weren't fixed until a few months ago- the fixes are in 2.7.1 but haven't been backported. Having said that, 2.7.1 plus the trunk version of Lazarus work fine together for basic projects (there's things I don't routinely test, like database access). -- Mark Morgan Lloyd

Re: [fpc-pascal] Subject: Re: 2.6.0 for Solaris? And other questions

2012-05-09 Thread Mark Morgan Lloyd
and 10), but I've got Slackware 12 IIRC on an E4500 since the Debian installer wouldn't work. Good machine for testing multithreaded stuff on account of the number of CPUs. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers

Re: [fpc-pascal] Subject: Re: 2.6.0 for Solaris? And other questions

2012-05-09 Thread Mark Morgan Lloyd
for that platform within the core team recently which is the reason why there are no official builds for Solaris for version 2.6.0. Mark Morgan Lloyd who already responded to your e-mail probably has the most experience with these targets at the moment. My main role is being a thorn in the side of the core

Re: [fpc-pascal] Re: 2.6.0 for Solaris?

2012-05-09 Thread Mark Morgan Lloyd
microc...@zoho.com wrote: On Wed, 09 May 2012 16:10:06 + Mark Morgan Lloyd wrote: There is a directory for Solaris SPARC but it is empty. Is it possible to get 2.6.0 for Solaris SPARC? Thanks again. I've got a copy that I've built and run here, but I started off with an earlier version

Re: RE : [fpc-pascal] Re: 2.6.0 for Solaris?

2012-05-09 Thread Mark Morgan Lloyd
calculations that the problems became apparent. -- 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

Re: [fpc-pascal] Re: 2.6.0 for Solaris?

2012-05-10 Thread Mark Morgan Lloyd
microc...@zoho.com wrote: On Wed, 09 May 2012 18:18:59 + Mark Morgan Lloyd wrote: My main role is being a thorn in the side of the core developers when something stops working :-) However I've previously offered to host a (not very fast) system here for compilation etc., and the offer

Re: [fpc-pascal] Re: 2.6.0 for Solaris? And other questions

2012-05-10 Thread Mark Morgan Lloyd
... in addition being a Xerox PARC design it has a certain pedigree ;-) -- 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

Re: [fpc-pascal] Re: 2.6.0 for Solaris? And other questions

2012-05-10 Thread Mark Morgan Lloyd
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: 2.6.0 for Solaris?

2012-05-10 Thread Mark Morgan Lloyd
- and CPU-specific code. -- 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

[fpc-pascal] FPC and (minimal) telnet

2012-05-12 Thread Mark Morgan Lloyd
the terminal type subcommand is not supported. If anybody else is using it (or if Ales is reading this) I'd be interested in any suggestions as to how best to add this facility (i.e. hardcoded internally, subcommands passed to a callback, etc.). -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk

Re: [fpc-pascal] Parsing parameters inside an interpreter

2012-05-14 Thread Mark Morgan Lloyd
. In other cases use something like recursive descent, or investigate (p)yacc, (p)lex 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

Re: [fpc-pascal] Re: Linux sound (especially MIDI) programming: ALSA?

2012-05-15 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: leledumbo wrote: http://sourceforge.net/projects/fpalsa/ http://sourceforge.net/projects/humus/ Thanks for those. Also http://perso.wanadoo.es/plcl/alsapas/alsapas-en.html so as I thought there appears to be (at least) two sets of ALSA bindings: fpalsa and alsapas

Re: [fpc-pascal] Re: 2.6.0 for Solaris? And other questions [one resolved]

2012-05-23 Thread Mark Morgan Lloyd
manually, irrespective or platform. I usually use two stages, e.g. ppcsparc - ppcsparc-2.4.4 and ppcsparc-2.4.4 - /usr/local/lib/fpc/2.4.4/ppcsparc, and in cases where I'm e.g. running Lazarus I tell it to use the one in the middle i.e. ppcsparc-2.4.4. -- Mark Morgan Lloyd markMLl

[fpc-pascal] Parameters to Format()

2012-05-25 Thread Mark Morgan Lloyd
: Incompatible type for arg no. 2: Got Open Array Of Variant, expected Array Of Const I was caught by this one years ago, and at the time the Delphi developers I was in contact with had no easy solution. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's

Re: [fpc-pascal] Parameters to Format()

2012-05-25 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Fri, 25 May 2012, Mark Morgan Lloyd wrote: How should I put this? procedure TUnyokedFrontendForm.OutputWriteF(const str: widestring; values: array of variant; fg: TColor= clBlack; bg: TColor= clDefault); var scratch: widestring; begin scratch := Format

[fpc-pascal] Default value for an open array

2012-06-01 Thread Mark Morgan Lloyd
that OutputWriteF('Test, no params\n') is valid? -- 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

Re: [fpc-pascal] Default value for an open array

2012-06-01 Thread Mark Morgan Lloyd
array parameter passing an empty array, or an array initialised with whatever default values you want: Thanks, good point and adequate workaround. -- 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] Accessing open array

2012-06-03 Thread Mark Morgan Lloyd
; Force your absolute address into fontTable, then dereference to get at the content. -- 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

Re: [fpc-pascal] Strings and objects crossing dll boundaries

2012-06-14 Thread Mark Morgan Lloyd
best debugs operation as control is transferred from the main program into the shared library, bearing in mind that this might be important since the library might have all the tricky code. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his

[fpc-pascal] Shared libraries and threadvars

2012-06-26 Thread Mark Morgan Lloyd
the number of a particular object being allocated/deallocated), but distinct across program invocations (i.e. two programs using the same shared library wouldn't clash)? The discussion of libraries in ch16 of the Language reference guide is rather quiet on the semantics. -- Mark Morgan Lloyd

Re: [fpc-pascal] Shared libraries and threadvars

2012-06-26 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: I'm currently tinkering with shared libraries, using cmem, mainly on Linux. In one case the main-program code is multithreaded, but so far I'm not moving data between threads inside the library. Am I correct in believing that unit-level variables in a shared library

Re: [fpc-pascal] Shared libraries and threadvars

2012-06-26 Thread Mark Morgan Lloyd
for an embedded system, but have never tried exploiting it with a real OS. -- 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

Re: [fpc-pascal] Shared libraries and threadvars

2012-06-27 Thread Mark Morgan Lloyd
on tinkering with this, I've not yet retrieved the exact error message and I'm interested in seeing what happens if the .so itself tries to use libdl to reopen the main program. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers

Re: [fpc-pascal] Shared libraries and threadvars

2012-06-27 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Can such an alternative entry point in the main unit be called by a shared library, i.e. either resolved at load time or with the main binary reopened like a library? Or is the only way to pass a main- program entry point to a shared library by using

  1   2   3   4   5   6   7   8   9   10   >