Re: [fpc-pascal] fpc_write_text_shortstr (case sensitive!)
On 27 Nov 2008, at 04:02, leledumbo wrote: Where is it defined? I can only find FPC_WRITE_TEXT_SHORTSTR, pointed by itself and Write_Str. It's the "compilerproc" directive that takes care of this. These are special routines reserved for the compiler-rtl interface, and which can be changed at will since they cannot be called from user code without hacking. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] writing to shared memory
Hi, I have the example code working to write and read string to shared memory. I'd like to write and read other things than strings (integers, Booleans, ...) to the shared memory. For writing strings, you use strpcopy. Which functions can be used for other types? I was thinking of memcpy but that doesn't seem to exist under freepascal. Thx, Tom Carly ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] writing to shared memory
On Thu, 27 Nov 2008, Tom Carly wrote: > Hi, > > I have the example code working to write and read string to shared memory. > I'd like to write and read other things than strings (integers, Booleans, > ...) to the shared memory. For writing strings, you use strpcopy. Which > functions can be used for other types? I was thinking of memcpy but that > doesn't seem to exist under freepascal. It does. Only it is called 'move'. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] fpImage resample via interpolation
As far as I can see, fpImage has for StretchDraw only the TMitchelInterpolation. The current implementation has a few drawbacks: - it creates a temporary image for resizing horizontally. If you have to resize big scanned images or gis data this makes trouble. - it computes all factors each time for every pixel - it seems to only support shrinking by up to a factor of two. I have written an interpolation that does not require a temporary image (only a small buffer for a few lines), pre computes the factors and supports any shrink factor. It is about 250 loc just like the TMitchelInterpolation, needs less memory and is about twice as fast. I will contribute it to fpImage. At the moment it uses a linear distribution for enlarging. I'm not yet sure if I should use the Mitchel distribution or a Gauss distribution. Maybe someone can give me some advice. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpc_write_text_shortstr (case sensitive!)
Jonas Maebe-2 wrote: > > It's the "compilerproc" directive that takes care of this. These are > special routines reserved for the compiler-rtl interface, and which > can be changed at will since they cannot be called from user code > without hacking. > Meaning that the compiler changes the exported symbol name from FPC_WRITE_TEXT_SHORTSTR to fpc_write_text_shortstr automatically? Then why declaring a procedure with exactly the same signature (the original has been turned off) inside system unit doesn't stop the compiler from complying "unknown compilerproc fpc_write_text_shortstr"? -- View this message in context: http://www.nabble.com/fpc_write_text_shortstr-%28case-sensitive%21%29-tp20712874p20727839.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] MIDI processing unit
I'm writing a compiler for my own music programming language producing MIDI files as result. Is there any MIDI processing unit for helping me? Doesn't have to be cross-platform, at least it must work for Windows / Linux. -- View this message in context: http://www.nabble.com/MIDI-processing-unit-tp20728794p20728794.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Calling FPC internal tools
Is it possible to call FPC internal assembler and/or linker? -- View this message in context: http://www.nabble.com/Calling-FPC-internal-tools-tp20728954p20728954.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal