[fpc-pascal] Kubuntu installation

2011-11-06 Thread Rainer Stratmann
I installed Kubuntu from a USB Stick (you can dd the iso file to an usb-stick and then boot from it, very userfriendly!) http://www.kubuntu.org There is also a userfriendly package manager included. http://www.packagekit.org With this package manager it was the first time, that I installed very

[fpc-pascal] Compilation time

2011-11-12 Thread Rainer Stratmann
Does more cpu cores mean less compile time? I am searching for a new computer, which is the best cpu? Is it possible to write the compile time in the Lazarus output window? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] pchar with more than 255 characters

2011-11-12 Thread Rainer Stratmann
procedure getchars( p : pchar ); var l : longint; begin l := length( p ); end; If calling getchars with chars longer than 255 l is always 255. For example: getchars( '12345 ... 255256257258' + '1234567213939873987' + ... ...

Re: [fpc-pascal] Re: pchar with more than 255 characters

2011-11-14 Thread Rainer Stratmann
Am Sunday 13 November 2011 02:15:07 schrieb leledumbo: It works when {$LONGSTRINGS ON} or {$H+} directive exists. I think the compiler treats functions receiving array of char (or pointer to it) as ShortString when none of the directives above exist. No it does not work then. I put already the

Re: [fpc-pascal] Re: pchar with more than 255 characters

2011-11-16 Thread Rainer Stratmann
Am Monday 14 November 2011 22:00:28 schrieb Jonas Maebe: On 13 Nov 2011, at 14:02, Rainer Stratmann wrote: Am Sunday 13 November 2011 02:15:07 schrieb leledumbo: It works when {$LONGSTRINGS ON} or {$H+} directive exists. I think the compiler treats functions receiving array of char

Re: [fpc-pascal] pchar with more than 255 characters

2011-11-16 Thread Rainer Stratmann
Am Wednesday 16 November 2011 17:15:51 schrieb Felipe Monteiro de Carvalho: On Tue, Nov 15, 2011 at 11:33 AM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: length(pchar) is translated into strlen(pchar) (just like in Delphi). But why is it limited to 255 chars in {$H-} ? (I understood that it

[fpc-pascal] Name of a var

2011-11-21 Thread Rainer Stratmann
Is it possible to get information of the name of a var? For Example. var counter : longint; varname : shortstring; varname := nameofvar( counter ); The content of varname then is 'counter'. ___ fpc-pascal maillist -

Re: [fpc-pascal] Name of a var

2011-11-21 Thread Rainer Stratmann
Am Monday 21 November 2011 14:08:43 schrieb michael.vancann...@wisa.be: On Mon, 21 Nov 2011, Rainer Stratmann wrote: Is it possible to get information of the name of a var? For Example. var counter : longint; varname : shortstring; varname := nameofvar( counter

Re: [fpc-pascal] Name of a var

2011-11-21 Thread Rainer Stratmann
Am Monday 21 November 2011 20:06:10 schrieb Jeppe Græsdal Johansen: Den 21-11-2011 13:56, Rainer Stratmann skrev: Is it possible to get information of the name of a var? For Example. var counter : longint; varname : shortstring; varname := nameofvar( counter

Re: [fpc-pascal] Name of a var

2011-11-22 Thread Rainer Stratmann
Am Tuesday 22 November 2011 10:13:20 schrieb michael.vancann...@wisa.be: On Tue, 22 Nov 2011, Sven Barth wrote: Am 21.11.2011 14:22, schrieb michael.vancann...@wisa.be: On Mon, 21 Nov 2011, Rainer Stratmann wrote: Am Monday 21 November 2011 14:08:43 schrieb michael.vancann...@wisa.be

Re: [fpc-pascal] Name of a var

2011-11-22 Thread Rainer Stratmann
Am Tuesday 22 November 2011 12:05:07 schrieb michael.vancann...@wisa.be: On Tue, 22 Nov 2011, Sven Barth wrote: Am 22.11.2011 10:13, schrieb michael.vancann...@wisa.be: If we choose to implement such a function, yes. My response was based on the compiler as it is. Seems like I'm not the

Re: [fpc-pascal] Name of a var

2011-11-22 Thread Rainer Stratmann
Am Tuesday 22 November 2011 12:14:54 schrieb michael.vancann...@wisa.be: On Tue, 22 Nov 2011, Rainer Stratmann wrote: Am Tuesday 22 November 2011 12:05:07 schrieb michael.vancann...@wisa.be: On Tue, 22 Nov 2011, Sven Barth wrote: Am 22.11.2011 10:13, schrieb michael.vancann...@wisa.be

Re: [fpc-pascal] Name of a var

2011-11-22 Thread Rainer Stratmann
Am Tuesday 22 November 2011 14:09:42 schrieb michael.vancann...@wisa.be: On Tue, 22 Nov 2011, Rainer Stratmann wrote: The name of a variable is only used for debugging, and then you can just as well use the debug info. And the change of a name is usually done with searchreplace, option

Re: [fpc-pascal] Name of a var

2011-11-22 Thread Rainer Stratmann
Am Tuesday 22 November 2011 13:50:06 schrieb John Lee: Call me old fashioned, but to ask for this capability to save typing seems bizarre. There are many functions I don't need. For example am I not a friend of dynamic allocated memory. I have reasons for not using it. You may have reasons for

Re: [fpc-pascal] Free Pascal 2.6.0rc1 released

2011-11-24 Thread Rainer Stratmann
Isn't it possible to put all processors in the compiler. At least ARM and 8086 because they are the most popular. As I know now it is one compiler program each processor. Just a question. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Forward declarations

2011-12-22 Thread Rainer Stratmann
Am Thursday 22 December 2011 21:33:13 schrieb Timothy Groves: Can anyone think of a situation in which you would *have* to use forward declared functions? I'm trying to come up with an example for such for my book, and I am drawing a blank. ___

Re: [fpc-pascal] Forward declarations

2011-12-22 Thread Rainer Stratmann
Am Thursday 22 December 2011 22:04:34 schrieb Anton Shepelev: Fward  decla- rations  are  necessary to allow mutually recur- sive procedures and functions that are not nest- ed. Forward declarations are the only option in special situations: If your program is huge and you only have this option

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-08 Thread Rainer Stratmann
Am Sunday 08 January 2012 02:17:29 schrieb Luciano de Souza: I have downloaded a Lazarus deb package compatible with FPC 2.4.4. I try to install with: sudo dpkg -i *. It fails, so: sudo apt-get install -f. ... ... ... This was already some time discussed here and in my opinion this is the

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-08 Thread Rainer Stratmann
Am Sunday 08 January 2012 13:35:49 schrieb Sven Barth: On 08.01.2012 13:06, Rainer Stratmann wrote: Am Sunday 08 January 2012 02:17:29 schrieb Luciano de Souza: I have downloaded a Lazarus deb package compatible with FPC 2.4.4. I try to install with: sudo dpkg -i *. It fails, so: sudo apt

Re: [fpc-pascal] MSEide+MSEgui 2.8 for FPC 2.6.0

2012-01-13 Thread Rainer Stratmann
Am Friday 13 January 2012 06:58:53 schrieb Martin Schreiber: Hi, MSEide+MSEgui 2.8 for FPC 2.6.0 has been released: http://sourceforge.net/projects/mseide-msegui/ Martin ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] MSEide+MSEgui 2.8 for FPC 2.6.0

2012-01-13 Thread Rainer Stratmann
Am Friday 13 January 2012 12:13:17 schrieb Martin Schreiber: Am Friday 13 January 2012 11.22:52 schrieb Rainer Stratmann: You can not go to xxx with the cursor in your editor. You can only go to the end of a line. Can you fix that? begin for x := 1 to 10 do writeln; end

Re: [fpc-pascal] fpc 2.6.0 for arm-embedded

2012-02-06 Thread Rainer Stratmann
Am Monday 06 February 2012 14:27:20 schrieb Koenraad Lelong: I do have a working crosscompiler (I think), only I have to call it via /usr/lib/fpc/2.6.0/ppcrossarm ..., instead of via fpc ... The code seems not to work, but that could be my own RTL, which I copied from SMT32F103RE. I'm working

Re: [fpc-pascal] TFPHTTPClient Post works with jetty, fails with tomcat

2012-02-07 Thread Rainer Stratmann
Am Monday 19 December 2011 01:22:18 schrieb Mattias Gaertner: Hi, For some reason TFPHTTPClient.Post hangs when accessing a solr server over tomcat. It works with solr over jetty. curl works fine with both, so I guess the tomcat server works normally. Here is the code:

Re: [fpc-pascal] How to ? Using two compiler versions.

2012-02-08 Thread Rainer Stratmann
Am Wednesday 08 February 2012 12:24:11 schrieb Koenraad Lelong: Hi, I'm searching for some document how to set up a system to use two versions of fpc. I'm trying to make a working arm-embedded compiler. With 2.6.0 I seem unable to do that, so I want to try it with the svn-version of fpc. But

Re: [fpc-pascal] fpc 2.7.1 for arm-embedded

2012-02-09 Thread Rainer Stratmann
Am Friday 10 February 2012 08:25:01 schrieb Koenraad Lelong: I did another experiment. I make a zip-file with a 2.7.1 compiler and its sources. I installled this on a brand new virtual machine with OpenSuse, so no fpc 2.6.0 available. With this I compiled the compiler itself (no install). This

Re: [fpc-pascal] FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-11 Thread Rainer Stratmann
Am Friday 10 February 2012 15:24:11 schrieb Reinier Olislagers: Hi all, With the help of the people on the forums and the lists, I've completed the first version of FPCup, a tool that downloads FPC and Lazarus sources from SVN, compiles and installs them. Sorry for not reading the whole

Re: [fpc-pascal] Easy way to install FPC 2.6.x on Mint Linux?

2012-02-20 Thread Rainer Stratmann
Am Monday 20 February 2012 16:09:44 schrieb Juha Manninen: 2012/2/20 Henry Vermaak henry.verm...@gmail.com On 20/02/12 14:03, Juha Manninen wrote: It is funny how people still think the Debian based package system is the best. It was so maybe 10 or 15 years ago but not any more. These

Re: [fpc-pascal] MSEide+MSEgui 2.8.2, MSEgit 1.2

2012-04-01 Thread Rainer Stratmann
Am Sunday 01 April 2012 19:27:25 schrieb Martin Schreiber: Hi, MSEide+MSEgui 2.8.2 has been released: If you made it possible to go behind the last character of the line with the cursor as in all modern IDE's I will try it again. See discussion from 13.01.2012. That shoud be relatively easy

[fpc-pascal] Debug information

2012-05-27 Thread Rainer Stratmann
How to get debug information? There is an error, but only adresses are shown. I put on debugger Information in Lazarus (-g) but can get no further infos when an error occurs (except the adresses). Lazarus 0.9.30 fpc 2.4.2 ___ fpc-pascal maillist -

Re: [fpc-pascal] Debug information

2012-05-28 Thread Rainer Stratmann
Am Sunday 27 May 2012 17:44:41 schrieb Sven Barth: On 27.05.2012 14:32, Rainer Stratmann wrote: How to get debug information? There is an error, but only adresses are shown. I put on debugger Information in Lazarus (-g) but can get no further infos when an error occurs (except

Re: [fpc-pascal] Debug information

2012-05-28 Thread Rainer Stratmann
Am Monday 28 May 2012 21:12:30 schrieb Martin: On 27/05/2012 13:32, Rainer Stratmann wrote: How to get debug information? There is an error, but only adresses are shown. How/ Where are the addresses shown? The addresses were shown in the output window (console). Runtime error 207

Re: [fpc-pascal] Debug information

2012-05-28 Thread Rainer Stratmann
Am Monday 28 May 2012 22:09:21 schrieb Martin: On 28/05/2012 20:35, Rainer Stratmann wrote: Am Monday 28 May 2012 21:12:30 schrieb Martin: On 27/05/2012 13:32, Rainer Stratmann wrote: How to get debug information? There is an error, but only adresses are shown. How/ Where

Re: [fpc-pascal] Debug information

2012-05-28 Thread Rainer Stratmann
Am Monday 28 May 2012 22:25:47 schrieb Martin: Check that you have not accidentally set any options that will block -gl, such as -Xs or maybe (may work but I do not know for sure) -Xg After changing options, change Build or Build all from run menu. All done, same effect (only addresses

Re: [fpc-pascal] Debug information

2012-05-29 Thread Rainer Stratmann
Am Tuesday 29 May 2012 01:42:12 schrieb Martin: On 28/05/2012 23:53, Rainer Stratmann wrote: Am Monday 28 May 2012 22:25:47 schrieb Martin: Check that you have not accidentally set any options that will block -gl, such as -Xs or maybe (may work but I do not know for sure) -Xg After

[fpc-pascal] asm statement

2012-06-12 Thread Rainer Stratmann
Is it still necessary to fill in the registers at the end of a asm statement? What happens if there is only the end; statement without the used registers? asm mov eax , ebx end ['EAX' , 'EBX' ... ]; ___ fpc-pascal maillist -

Re: [fpc-pascal] Re: asm statement

2012-06-12 Thread Rainer Stratmann
Am Tuesday 12 June 2012 18:44:20 schrieb leledumbo: What happens if there is only the end; statement without the used registers? The compiler couldn't save the values in the registers prior to the asm block. If they contain intermediate result, they may be gone and unexpected result would

[fpc-pascal] encryption and decryption

2012-06-22 Thread Rainer Stratmann
Does someone know how to do encryption and decryption with keys? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: encryption and decryption

2012-06-24 Thread Rainer Stratmann
Am Sunday 24 June 2012 16:59:36 schrieb leledumbo: key := 'testkey'; value := 'this is a string'; How is it working? By xoring 'testkey' with 'this is a string' byte by byte? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Longstrings

2012-07-03 Thread Rainer Stratmann
How to put longstrings globally on? I tried with {$h+} in project compiler settings (other) with no effect. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Longstrings

2012-07-04 Thread Rainer Stratmann
Am Wednesday 04 July 2012 06:30:57 schrieb leledumbo: Example of this no effect? {$H+} should do it. Is it global (for all sourcefiles) if put on top of the first sourcefile? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Longstrings

2012-07-04 Thread Rainer Stratmann
Am Wednesday 04 July 2012 10:22:10 schrieb Marco van de Voort: In our previous episode, J?rgen Hestermann said: How to put longstrings globally on? I tried with {$h+} in project compiler settings (other) with no effect. Safest method is not to use the generic type string in your code.

Re: [fpc-pascal] Longstrings

2012-07-04 Thread Rainer Stratmann
Am Wednesday 04 July 2012 12:12:10 schrieb Bart: On 7/4/12, Rainer Stratmann rainerstratm...@t-online.de wrote: Next question is how to put asmmode intel global on? Type fpc -h (in a console) to see all commandine parameters. Then take a look at the -R switch. That works thank you very much

[fpc-pascal] Get all caller adresses of a procedure/function

2012-08-06 Thread Rainer Stratmann
procedure p1; begin ... end; How to get all caller adresses of p1 in a program before p1 is executed? For example p1 is called from 20 different places in a program. Then I need the 20 caller adresses. ___ fpc-pascal maillist -

Re: [fpc-pascal] Get all caller adresses of a procedure/function

2012-08-06 Thread Rainer Stratmann
Am Monday 06 August 2012 18:43:04 schrieb Martin: How to get all caller adresses of p1 in a program before p1 is executed? For example p1 is called from 20 different places in a program. Then I need the 20 caller adresses. At run time, or design time? At runtime. I ment the (memory)

Re: [fpc-pascal] Get all caller adresses of a procedure/function

2012-08-06 Thread Rainer Stratmann
Am Monday 06 August 2012 19:34:23 schrieb Sven Barth: You know that scanning the binary code for calls is platform dependant? Yes. [calling opcode] [calleradress] calling opcode can differ and the byteorder of the adress can differ. So you'd need to write that code for every CPU you want to

Re: [fpc-pascal] Get all caller adresses of a procedure/function

2012-08-06 Thread Rainer Stratmann
Am Monday 06 August 2012 22:17:11 schrieb Martin: But let me say: I am with everyone else. Using stack/caller info is the wrong(est) way. I fully agree. And if you need to ask What is the content of the stack? Then you should not use it. All this functions are very low level. Usinc this kind

Re: [fpc-pascal] Get all caller adresses of a procedure/function

2012-08-06 Thread Rainer Stratmann
Am Monday 06 August 2012 22:37:08 schrieb Aleksa Todorovic: program test_str_36; uses sysutils; function s(str: pchar): pchar; var str2: pchar; begin if str[0] = '~' then begin // string is not localized str2 := strnew('numero'); // localized version ppchar(str)^

Re: [fpc-pascal] Get all caller adresses of a procedure/function

2012-08-06 Thread Rainer Stratmann
Am Monday 06 August 2012 22:57:42 schrieb Martin: On 06/08/2012 21:39, Rainer Stratmann wrote Can you explain it more? I want not search through the sourcecode, because it makes it less easy. How does an address like $040012a help you find the source? If I have a list with all caller

Re: [fpc-pascal] Get all caller adresses of a procedure/function

2012-08-06 Thread Rainer Stratmann
Am Monday 06 August 2012 23:36:10 schrieb Martin: On 06/08/2012 21:57, Martin wrote: I am still trying to understand what exactly you try to archive. Ok, I read one of the other posts: Do you need to ensure to handle each snippet only once? Are *ALL* snippets constants? yes, but they are

Re: [fpc-pascal] Get all caller adresses of a procedure/function

2012-08-07 Thread Rainer Stratmann
Am Tuesday 07 August 2012 00:02:02 schrieb Martin: I still do not understand what is so special about the caller address? Furthermore, you said yourself, you do not need it. You can also live withe a number that the compiler generates at compilation time. With all caller adresses OR all

Re: [fpc-pascal] Get all caller adresses of a procedure/function

2012-08-07 Thread Rainer Stratmann
Am Tuesday 07 August 2012 11:34:10 schrieb Martin: With all caller adresses OR all numbers (see down) I have the whole amount of snippets that I want to have. How? With the compiler keyword 'calleradresstable'; function s( str : pchar ) : pchar; calleradresstable; Then the compiler makes

Re: [fpc-pascal] Get all caller adresses of a procedure/function

2012-08-07 Thread Rainer Stratmann
Am Tuesday 07 August 2012 19:13:29 schrieb Martin: On 07/08/2012 17:58, Rainer Stratmann wrote: With the compiler keyword 'calleradresstable'; function s( str : pchar ) : pchar; calleradresstable; Then the compiler makes a table of all calleradresses and also the amount of s

[fpc-pascal] Inline bytes

2012-08-09 Thread Rainer Stratmann
How is it possible to put some inline bytes in the code like the former inline( $1f , $ef , $1A ); instruction? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Inline bytes

2012-08-09 Thread Rainer Stratmann
Am Thursday 09 August 2012 15:14:29 schrieb Jonas Maebe: Rainer Stratmann wrote on Thu, 09 Aug 2012: How is it possible to put some inline bytes in the code like the former inline( $1f , $ef , $1A ); instruction? {$asmmode att} asm .byte $0x1f, $0xef, $0x1a end; {$asmmode intel

[fpc-pascal] Label

2012-08-09 Thread Rainer Stratmann
Is it possible to get the adress of a label in a procedure? label mark1; procedure s; begin mark1: end; var p : pointer; begin p := @mark1; // does not work; end; ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Inline bytes

2012-08-09 Thread Rainer Stratmann
Am Thursday 09 August 2012 15:33:52 schrieb Jonas Maebe: Thanks, the next problem then is: I wanted to do that in an inline procedure but if the compiler detects an asm statement then inline is disabled(!). That's correct, it is not possible inline assembler statements in FPC. You can try

Re: [fpc-pascal] Label

2012-08-09 Thread Rainer Stratmann
Am Thursday 09 August 2012 15:35:54 schrieb Jonas Maebe: Rainer Stratmann wrote on Thu, 09 Aug 2012: Is it possible to get the adress of a label in a procedure? Not outside that procedure, no. Would it be possible to chage it, to get this information? May be it is only some kind of accident

Re: [fpc-pascal] Inline bytes

2012-08-09 Thread Rainer Stratmann
Am Thursday 09 August 2012 17:09:57 schrieb Jonas Maebe: if it were added it would be quite possible that this would also disable inlining the containing routine for implementation reasons. I think the reason for disabling is that in the asm code can be identifyers and jumplabels which are

Re: [fpc-pascal] Label

2012-08-09 Thread Rainer Stratmann
Am Thursday 09 August 2012 17:18:09 schrieb Jonas Maebe: I would really recommend you (again) to use resourcestrings. You say that is not possible and that is not possible (or someone can say: you don't want to go deep in it). Beyond that you recommend me your style of programming. I see

[fpc-pascal] Get all caller adresses of a given function/procedure before executing

2012-08-11 Thread Rainer Stratmann
The code below finds all caller adresses in a program to a known procedure/function adress. With this I can get all caller adresses to the translate function. Moreover - with another piece of code (not shown here) I got also the text snippets itself, because they are loaded immediately before

Re: [fpc-pascal] Get all caller adresses of a given function/procedure before executing

2012-08-11 Thread Rainer Stratmann
Am Saturday 11 August 2012 13:40:44 schrieb Rainer Stratmann: procedure i_realy_know_what_i_am_doing( p_opcode : pbyte ; count : longint ; proc_adr : pointer ); Better: i_really_know_what_i_am_doing ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Get all caller adresses of a given function/procedure before executing

2012-08-11 Thread Rainer Stratmann
Am Saturday 11 August 2012 13:52:58 schrieb Martin: On 11/08/2012 12:48, Rainer Stratmann wrote: Am Saturday 11 August 2012 13:40:44 schrieb Rainer Stratmann: procedure i_realy_know_what_i_am_doing( p_opcode : pbyte ; count : longint ; proc_adr : pointer ); Better

Re: [fpc-pascal] Get all caller adresses of a given function/procedure before executing

2012-08-11 Thread Rainer Stratmann
Am Saturday 11 August 2012 14:15:11 schrieb Martin: I do not read all discussions. Which exactly headline has it? Does it affect the possibility to get the information I want? Re: [fpc-devel] Re: Class field reordering The searched procedure/function is not a class procedure or function.

Re: [fpc-pascal] Get all caller adresses of a given function/procedure before executing

2012-08-11 Thread Rainer Stratmann
Am Saturday 11 August 2012 14:46:53 schrieb Martin: On 11/08/2012 13:32, Rainer Stratmann wrote: Am Saturday 11 August 2012 14:15:11 schrieb Martin: If that changes, then your code fails. I can easily adopt the code then. There are not many different ways for a call. http

Re: [fpc-pascal] Get all caller adresses of a given function/procedure before executing

2012-08-11 Thread Rainer Stratmann
Am Saturday 11 August 2012 17:34:44 schrieb Marco van de Voort: In our previous episode, Rainer Stratmann said: But not the 80x86 CPU. It is still the same opcode for a call ($E8). Maybe not the call, but changing or adding address encoding is quite realistic. I assume you tested your code

Re: [fpc-pascal] Get all caller adresses of a given function/procedure before executing

2012-08-11 Thread Rainer Stratmann
Am Saturday 11 August 2012 19:18:39 schrieb Jorge Aldo G. de F. Junior: Sorry for posting without bringing a solution, but i am curious, why do you need this ? Doesnt sound like good programming practice... See Thread: Get all caller adresses of a given function/procedure before executing We

Re: [fpc-pascal] Get all caller adresses of a given function/procedure before executing

2012-08-12 Thread Rainer Stratmann
not be very much wrong if it is still working. Thats my two cents... 2012/8/11 Rainer Stratmann rainerstratm...@t-online.de: Am Saturday 11 August 2012 19:18:39 schrieb Jorge Aldo G. de F. Junior: Sorry for posting without bringing a solution, but i am curious, why do you need this ? Doesnt

Re: [fpc-pascal] Get all caller adresses of a given function/procedure before executing

2012-08-12 Thread Rainer Stratmann
Am Sunday 12 August 2012 15:29:44 schrieb Jonas Maebe: Florian already implemented that quite a while ago :) I suggest to drop the topic though, because Rainer does not appear to be open to taking another approach It depends on the approach. If you have a better solution would you take another

Re: [fpc-pascal] Get all caller adresses of a given function/procedure before executing

2012-08-12 Thread Rainer Stratmann
Am Sunday 12 August 2012 15:46:00 schrieb Sven Barth: I know there is a smiley, but: Only because Jonas sees no gain in implementing something in the compiler that would help you in your specific case does not mean that Jonas doesn't add anything that causes not much work. That my suggestions

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-13 Thread Rainer Stratmann
Am Monday 13 August 2012 10:35:55 schrieb Lukasz Sokol: On 12/08/2012 14:41, Rainer Stratmann wrote: It depends on the approach. If you have a better solution would you take another approach? What is wrong with known and explored ways e.g. gettext ? It will be ok for those who

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-13 Thread Rainer Stratmann
Am Monday 13 August 2012 12:07:59 schrieb Lukasz Sokol: On 13/08/2012 10:09, Rainer Stratmann wrote: If I put a ls('snippet') around all texts I now get every caller adress (handle) and the text information 'snippet' itself. So before they are called I can make a list with all handles

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-13 Thread Rainer Stratmann
Am Monday 13 August 2012 12:29:51 schrieb Marco van de Voort: Still if we want an own editor, converting gorm would be an option. I do this online. http://109.91.95.104/sprache Not yet complete, but for demonstration ok. From outside changes are not possible by now.

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-14 Thread Rainer Stratmann
Am Tuesday 14 August 2012 03:28:26 schrieb waldo kitty: On 8/13/2012 05:09, Rainer Stratmann wrote: Am Monday 13 August 2012 10:35:55 schrieb Lukasz Sokol: [TRIM] You were saying, that you want to know, which string has not been used / which string has been used and how many times

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-14 Thread Rainer Stratmann
Am Tuesday 14 August 2012 10:17:52 schrieb Sven Barth: Am 14.08.2012 09:11, schrieb Rainer Stratmann: No need for tons od additional identyfiers and additional lines like: var p_snippet1 : pchar; p_snippet2 : pchar; p_snippet3 : pchar; const id_snippet1 = 'ids_snippet1

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-14 Thread Rainer Stratmann
Am Tuesday 14 August 2012 14:36:44 schrieb Martin: On 14/08/2012 13:19, Rainer Stratmann wrote: It was more or less exactly the way I did it before with little exaggerating as you notice :-) Even now I save 50% codesize in comparison to resourcestring. If you don't like resource string

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-14 Thread Rainer Stratmann
discovar that his solution is nor portable nor safe... 2012/8/14 Rainer Stratmann rainerstratm...@t-online.de: Am Tuesday 14 August 2012 14:36:44 schrieb Martin: On 14/08/2012 13:19, Rainer Stratmann wrote: It was more or less exactly the way I did it before with little exaggerating as you

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-15 Thread Rainer Stratmann
Am Wednesday 15 August 2012 03:52:00 schrieb waldo kitty: On 8/14/2012 03:11, Rainer Stratmann wrote: Am Tuesday 14 August 2012 03:28:26 schrieb waldo kitty: i've been following this whole thread with interest... one thing that i'm still not clear about, though, is why is this important

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-15 Thread Rainer Stratmann
Am Wednesday 15 August 2012 04:05:56 schrieb Martin: On 15/08/2012 02:52, waldo kitty wrote: this would be no different than the program doing writeln(snippet1); .i must still be missing something :? If I understood him correct: It is not writeln(snippet1); it is

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-15 Thread Rainer Stratmann
Am Wednesday 15 August 2012 09:33:37 schrieb Rainer Stratmann: What means POV? Ok. Point of view I assume. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-15 Thread Rainer Stratmann
Am Wednesday 15 August 2012 10:20:34 schrieb Reinier Olislagers: On 15-8-2012 10:08, Rainer Stratmann wrote: Yes, that is possible as I understand it so far. I did not know (dx)gettext before so replication is may not the right word. Yes, it is. Replication is doing the same thing twice

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-15 Thread Rainer Stratmann
Am Wednesday 15 August 2012 12:29:23 schrieb Jorge Aldo G. de F. Junior: And a disadvantage is may the longer time to find a solution. Thats not the only disadvantage. Reinventing the wheel usually means you get something less correct and less researched. Its simple, 1000 eyes looking for a

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-15 Thread Rainer Stratmann
Am Wednesday 15 August 2012 13:39:11 schrieb Marco van de Voort: In our previous episode, Rainer Stratmann said: You already have a very good grasp of the issues involved as you were writing your own solution. You could probably improve dxgettext with some things and get that in the main

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-15 Thread Rainer Stratmann
Am Wednesday 15 August 2012 14:13:41 schrieb Sven Barth: Am 15.08.2012 10:48 schrieb Rainer Stratmann rainerstratm...@t-online.de While this may all be very well known to you, I would ask you to step back and consider it: having a detached look at it may lead to a better choice

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-15 Thread Rainer Stratmann
Am Wednesday 15 August 2012 14:49:04 schrieb Rainer Stratmann: I would call this function rs( s : pchar ) because it has to be short. if there is a rs() in the program the compiler stores the caller adress (unique handle) and the pointer to the pchar in a list. If the pointer to pchar

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-15 Thread Rainer Stratmann
Am Wednesday 15 August 2012 15:20:21 schrieb Lukasz Sokol: On 15/08/2012 13:55, Rainer Stratmann wrote: Am Wednesday 15 August 2012 14:49:04 schrieb Rainer Stratmann: I would call this function rs( s : pchar ) because it has to be short. if there is a rs() in the program the compiler stores

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-15 Thread Rainer Stratmann
Am Wednesday 15 August 2012 16:45:03 schrieb Lukasz Sokol: For example if FPC internals decide to add or remove some padding in front of the constants. Very unlikely. For which reason should there be padding in front? For the reason that they always say not to rely on 'internal

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-16 Thread Rainer Stratmann
Am Wednesday 15 August 2012 19:58:02 schrieb Marco van de Voort: No. The route was this: - In an earlier msg I mentioned this as dxgettext limitation (since I ran into it) - In a later msg you said you got weary of dxgettext because of problems with it. - I replied that it was not a

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-16 Thread Rainer Stratmann
Am Thursday 16 August 2012 10:16:04 schrieb Lukasz Sokol: On 15/08/2012 16:05, Rainer Stratmann wrote: Am Wednesday 15 August 2012 16:45:03 schrieb Lukasz Sokol: If the maintainers decide to build in the suggested function above then everthing is solved. By now no one of the maintainers

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-16 Thread Rainer Stratmann
Am Thursday 16 August 2012 10:50:25 schrieb Mark Morgan Lloyd: Lukasz Sokol wrote: Please explain. I do not change the code. I am only searching some pointers. Well, yeah, _you_ don't. What if somebody else could create a program that extracts private (unexported) function pointers from

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-16 Thread Rainer Stratmann
Am Thursday 16 August 2012 11:27:08 schrieb Rainer Stratmann: Customers are fully satisfied and know about my fast responce. response ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-16 Thread Rainer Stratmann
Am Thursday 16 August 2012 12:23:00 schrieb Jorge Aldo G. de F. Junior: I still dont understand why dont you hack passrc and grab all the strings from the source ? Because I have an almost finished solution. I worked already for a while on it. Some integrated piece of code is easier to handle

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-16 Thread Rainer Stratmann
Am Thursday 16 August 2012 13:27:17 schrieb Lukasz Sokol: So from this POV, his process /is/ easier: he runs his program, and tells it to export strings to be translated, then loads 'snippets' on demand/on next execution. Yes. To Rainer: Please accept apologies, I did not mean to offend you

Re: [fpc-pascal] Re: linux: shouldwehard-codeversionedorunversioned shared libraries in our apps?

2012-08-16 Thread Rainer Stratmann
Am Thursday 16 August 2012 13:53:18 schrieb Michael Van Canneyt: And let's not forget: if we choose a reasonable default library name, 99% of all problems fall away by themselves, and the component will not be needed in the first place; Just for special cases will you need it. I did not follow

[fpc-pascal] Assembler file generate by compiler

2012-08-18 Thread Rainer Stratmann
Does the compiler generates (an) assembler file(s)? I did not find here: http://www.freepascal.org/docs-html/prog/prog.html ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Assembler file generate by compiler

2012-08-18 Thread Rainer Stratmann
Am Saturday 18 August 2012 22:10:17 schrieb Martin: On 18/08/2012 21:03, Rainer Stratmann wrote: Does the compiler generates (an) assembler file(s)? I did not find here: http://www.freepascal.org/docs-html/prog/prog.html http://www.freepascal.org/docs-html/user/userch5.html#x33-45

Re: [fpc-pascal] Assembler file generate by compiler

2012-08-19 Thread Rainer Stratmann
Am Saturday 18 August 2012 23:53:36 schrieb Jonas Maebe: On 18 Aug 2012, at 22:48, Rainer Stratmann wrote: I did option -a, the compiler needs longer now, but where can I see the generated file(s)? In the same directory that contains the generated .o and .ppu files

Re: [fpc-pascal] Assembler file generate by compiler

2012-08-19 Thread Rainer Stratmann
Am Sunday 19 August 2012 10:59:16 schrieb Jonas Maebe: On 19 Aug 2012, at 10:55, Rainer Stratmann wrote: Am Saturday 18 August 2012 23:53:36 schrieb Jonas Maebe: On 18 Aug 2012, at 22:48, Rainer Stratmann wrote: I did option -a, the compiler needs longer now, but where can I see

Re: [fpc-pascal] Assembler file generate by compiler

2012-08-19 Thread Rainer Stratmann
Am Sunday 19 August 2012 18:01:42 schrieb Mattias Gaertner: Can you try a newer version? I am afraid of all the problems then with installing on a linux computer. The computer further has no connection to the internet. I try step by step to get more independend from lazarus first. Then it will

[fpc-pascal] Linker speed

2012-08-24 Thread Rainer Stratmann
I try to be independend from lazarus and wrote a configure file which I then pass to fpc at the console. Now suddenly the linker is noteable slower. In both modes (from lazarus and from console). Which reason can it have? ___ fpc-pascal maillist -

Re: [fpc-pascal] Linker speed

2012-08-24 Thread Rainer Stratmann
Am Friday 24 August 2012 11:00:35 schrieb Tomas Hajny: On Fri, August 24, 2012 10:52, Rainer Stratmann wrote: I try to be independend from lazarus and wrote a configure file which I then pass to fpc at the console. Now suddenly the linker is noteable slower. In both modes (from

  1   2   3   4   5   >