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

2012-05-09 Thread Jeff Wormsley
On 05/09/2012 01:06 PM, Mark Morgan Lloyd wrote: microc...@zoho.com wrote: There are no binaries provided by my distribution. It's Slackware! But the question was, was it really necessary to use such a recent glibc? And what, pray, is wrong with Slackware? :-) Most of the SPARC systems arou

Re: [fpc-pascal] Re: convert "epoch" to UTC

2012-01-16 Thread Jeff Wormsley
I went here: http://www.satellite-calculations.com/TLETracker/SatTracker.htm It had the TLE for Galaxy 15 as follows: GALAXY 15 1 28884U 05041A 10133.62484064 .0085 0-0 1-3 0 8291 2 28884 000.1391 078.0756 0002640 331.8937 274.1784 01.00285599 16790 And did these calculations

Re: [fpc-pascal] stdcall vs. cdecl: another "using a FPC-generated .dll with Microsoft Visual C++" question

2010-03-24 Thread Jeff Wormsley
Seth Grover wrote: I appreciated Henry's comment regarding my last question (generating a .lib file from a FPC-generated for linking with VC++). I ended up using implib (http://implib.sourceforge.net) to generate the .def file with dll2def.exe and then fasm.exe to create the .lib file from that,

Re: [fpc-pascal] Is fppkg dead?

2010-02-18 Thread Jeff Wormsley
On 2/17/2010 4:46 AM, Jonas Maebe wrote: It is only sleeping. Pining for the fjords? (Sorry, couldn't resist.) Jeff. -- I haven't smoked for 3 years, 6 months and 1 day, saving $5,767.05 and not smoking 38,447.00 cigarettes. ___ fpc-pascal maill

Re: [fpc-pascal] Challenging port of Borland Pascal program to FPC

2010-01-17 Thread Jeff Wormsley
John Youngquist wrote: I would like to port the program as is, but eventually get a PCI 48 I/O line card to escape the ISA bus and also talk USB as well. Getting it to run on later versions of Windows might be useful. This program controls a machine on a single purpose computer. Windows is used

Re: [fpc-pascal] x86.pp and oldlinux.pp

2009-11-04 Thread Jeff Wormsley
Holger Bruns wrote: I need to read and write every register of that UART as explained in the National Semiconductor databook, register by register, address by address. If I may ask, just what sort of application are you developing that needs such complete and total access to the UART?  Using

Re: [fpc-pascal] x86.pp and oldlinux.pp

2009-11-03 Thread Jeff Wormsley
Holger Bruns wrote: Under the bottom line, the result is just the same. You need to become a superuser on a linux system, if you want to compile source code for accessing ports directly, regardless of the compiler or any other tool. All modern OS's have this restriction. Even on Windows, after

Re: [fpc-pascal] How to translate this C header struct to Pascal

2009-10-23 Thread Jeff Wormsley
Graeme Geldenhuys wrote: The first item is 31bit and the second item is 1 bit. Does FPC support a record structure that can define bit level sizes? I've done this kind of thing quite a bit in the past. Usually, I define a "raw" version and a "clean" version, and write two routines to conver

Re: [fpc-pascal] WORD (2 bytes) to String conversion

2009-10-23 Thread Jeff Wormsley
Graeme Geldenhuys wrote: On 23/10/2009, Jeff Wormsley wrote: That's dangerous, though, if your magic number's two bytes aren't printable That should never be a problem for my tool though. The tool I am writing is specific to the INF help format. The

Re: [fpc-pascal] WORD (2 bytes) to String conversion

2009-10-23 Thread Jeff Wormsley
Graeme Geldenhuys wrote: Hi, I'm reading in a WORD (2 bytes) from a binary file. I can display the Hex format of that value without a problem, but I would also like to display the String value of that WORD variable. It's the first 2 bytes of a file, which contains the "magic number" of the file

Re: [fpc-pascal] Who said Pascal isn't popular

2009-10-19 Thread Jeff Wormsley
Graeme Geldenhuys wrote: Any programmer worth hiring should find it relatively easy to switch to another language. Or and least become proficient in it in a relative short period of time. The basic principles apply to all languages, it's just the tool-chain and syntax that differs. I certain

Re: [fpc-pascal] Who said Pascal isn't popular

2009-10-16 Thread Jeff Wormsley
Mark Emerson wrote: Most people aren't interested in truth (e.g. that Pascal is a vastly superior language in almost every respect). They are instead interested in what is popular, politically correct, and has been artfully propagandized into their gullible, small minds from a source they beli

Re: [fpc-pascal] How to use var or object in a programm file from a unit file

2009-09-24 Thread Jeff Wormsley
yu ping wrote: Program prog1 use unit1 myObj=class private public . end; --- unit unit1 .. like above, can i access myObj in unit1? Much better to have something like this: Program prog1; uses CommonStuff, unit1; ..

Re: [fpc-pascal] Re: Problems linking C library on Linux (*.so & *.a files)

2009-02-12 Thread Jeff Wormsley
Perhaps I missed it, but are you sure you declared the functions/procedure in the library you are using cdecl?  That would explain a runtime error instead of linker error. Jeff. Guillermo Martínez Jiménez wrote: Link time error, I guess. But according to your original message, the nam

Re: [fpc-pascal] My favourite missing feature

2008-12-22 Thread Jeff Wormsley
Mark Morgan Lloyd wrote: IF cells[2, dateTime] = /(\d\d)\/(\d\d)\/((\d\d)?\d\d)\s.*/i THEN BEGIN Not only do I have no idea what the above code does, I have no desire to find out! Talk about cryptic. Jeff. -- I haven't smoked for 2 years, 4 months and 5 days, saving $3,864.50 and not smoki

Re: [fpc-pascal] Free Pascal Support for ARM Architecture

2008-12-08 Thread Jeff Wormsley
Jonas Maebe wrote: ... the assembler can perform for different ARM architectures (except for some small THUMB things, but FPC doesn't generate THUMB code). I'd wondered about THUMB support. That means no STM-32 processors, as THUMB code is all they execute. Bummer, as they are nice and extre

Re: [fpc-pascal] Binary compatibility between Intel CPU and PowerPC CPU

2008-09-16 Thread Jeff Wormsley
Well, the (inefficient / multiplatform - choose one) way is to not store data as binary, instead using something like XML. Probably not an option, but there will be a tradeoff and a penalty no matter what. One way would be store the data in the endianness of the consistently slower platform (

Re: [fpc-pascal] Compiler option to check return value ignorance

2008-08-14 Thread Jeff Wormsley
Vinzent Höfler wrote: And to be honest, there aren't many cases where you really can ignore the result of the function and keep the good conscience of having it done right. If a function in Pascal returns something it's usually useful. There are many cases like that, at least in my experien

Re: [fpc-pascal] Compiler option to check return value ignorance

2008-08-13 Thread Jeff Wormsley
Vinzent Höfler wrote: I just grep'ped the actual sources of the project (about 70K LOC) and I found exactly four occurences of my "if Ignore_Result() then {null};" pattern with FPC runtime routines. There are others, but those routines access hardware and on some occasions I really need to ig

Re: [fpc-pascal] Mac & WinCe

2008-08-13 Thread Jeff Wormsley
Felipe Monteiro de Carvalho wrote: On Tue, Aug 12, 2008 at 2:34 PM, Jeff Wormsley <[EMAIL PROTECTED]> wrote: Does this support MIPS based CE devices, or only ARM? Most people are using ARM, and that's what the pre-compiled compiler is for. Some people expe

Re: [fpc-pascal] Mac & WinCe

2008-08-12 Thread Jeff Wormsley
Felipe Monteiro de Carvalho wrote: For Windows CE the best is using the lastest add-on snapshots: http://wiki.lazarus.freepascal.org/Windows_CE_Interface#Using_the_snapshot_add-on_installer The commonly used solution is cross-compiling from desktop windows. Does this support MIPS based CE

Re: Summary on Re: [fpc-pascal] Unicode file routines proposal

2008-07-01 Thread Jeff Wormsley
Marco van de Voort wrote: I don't understand how this can work, how can I have a compiletime solution for a runtime problem? procedure mystringproc (s:FlorianUnicodeString); begin if encodingof(s)=utf-16 then begin // utf-16 code here with shiftsize 2 [] needed end else b

Re: [fpc-pascal] Serial unit for Linux and Windows

2008-04-11 Thread Jeff Wormsley
Marco van de Voort wrote: 5- Is it OK to designate serial ports by COMx fow Windows and /dev/ttySx for Linux? No, since e.g a serial port on some other device might have a different state. And strictly, this is even possible for Windows. Always keep naming configurable and

Re: [fpc-pascal] can we have fpc's doc in chm format? [Patch]

2007-12-07 Thread Jeff Wormsley
Michael Van Canneyt wrote: Sorry, Same problem. I'm also using kchmviewer 3.1, as Mattias... Perhaps some path is hard coded into the files, and it exists for Andrew (it's his system, after all) and doesn't for anyone else. Jeff. -- I haven't smoked for 1 year, 3 months and 2 weeks, saving $2

Re: [fpc-pascal] CSV via PCRE

2007-11-12 Thread Jeff Wormsley
S. Fisher wrote: Regular expressions are used by vi and emacs; in fact, any editor that doesn't let you do a regex search is a joke. (Even some microsoft applications understand regexes.) So everyone who programs should learn regular expressions. Regular expressions are also used by grep, an

Re: [fpc-pascal] Need three things

2007-08-13 Thread Jeff Wormsley
JK Smith at Grid-Sky wrote: At any rate, I've found that while you or I might be very diligent at explicitly freeing resources, on a complicated system, some programmers simply are not, and we have to work with these programmers. The point is, the traditional software warranties won't be toler

Re: [fpc-pascal] Funny things about utf-8 strings on mac

2007-06-13 Thread Jeff Wormsley
What happens if you redefine your program as follows? program utftestbom; {$mode objfpc}{$H+} uses SysUtils; const MyStr: UTF8String = 'Texto ł ñ ø ß á'; var i: Integer; begin WriteLn('Printing string values'); WriteLn('Length: ', Length(MyStr)); for i := 1 to Length(MyStr) do Write(

Re: [fpc-pascal] DLL Linking

2005-06-21 Thread Jeff Wormsley
L505 wrote: | Note that this is not allowed on Windows XP if your application is in | the Program Files directory. Applications are not allowed or should not | write to their application directory due to security restrictions. | | -- | Sly Really? So MS encourages you to write everything to th