Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel

fpc-devel · 2011-04

  1. Script Language, TCL Update

    Hi! I want to equip a program with a command line and plan to use a real scripting language to interpret the user input. I've looked around a bit (e.g. in the mailing…

    Johann Glaser, Marcos Douglas
    2
  2. Default IntToStr operator for '+' symbol.

    I am not sure, maybe we discussed this before, maybe not. I am getting quite sick of having to write IntToStr all the fricking time like so: begin s := IntToStr(X) + ' '…

    Skybuck Flying, Daniël Mantione, Felipe Monteiro de Carvalho
    4
  3. Unicode resource strings again

    In 2008 there was a thread about FPC and Unicode resoure strings with the conclusion that FPC does not support them. Has the situation changed in the meantime? Does…

    Martin Schreiber, Hans-Peter Diettrich, Jonas Maebe
    4
  4. type pointer to record before record.

    In free pascal/pascal/delphi it's necessary to declare a pointer to a record, which is to be used inside the record to point to itself, before the record itself without…

    Skybuck Flying, Alexander Klenin, Flávio Etrusco
    6
  5. fpc modifiers

    First i will note that what i state is not an error or bug in free pascal, but it is somehow unclean implemented. The decision for modifiers like cvar or cdecl to be an…

    Joerg Schuelke, Florian Klaempfl, Hans-Peter Diettrich
    8
  6. {$I %LINE%} and friends

    There is one problem with {$I %LINE%} and his friends, which restricts the use of these directives. They are expanded even inside a macro immediately, so, if you define…

    Joerg Schuelke, Daniël Mantione, Florian Klaempfl
    7
  7. __LINE__ and __FILE__ macros

    Best regards to all developers, is it somehow possible to access the line number and file information during the compilation? This would be nice for debugging purposes.…

    Joerg Schuelke, Marco van de Voort, Mark Morgan Lloyd
    7
  8. trash after program end. => no warning, no error

    Is that intended? If you have anything following after the final "end." (with a dot), then it is silently ignore, no error, no warning. program Project1; begin end. xxx…

    Martin, Jonas Maebe, Michael Van Canneyt
    3
  9. registers used in function call, any rule?

    Not sure were I got my original info from... , but at current lazarus-ide (debugger) assumes that (on 64 bit) arguments (to fpc_raiseexceptions) are passed in RDI, RSI,…

    Martin, Jonas Maebe
    4
  10. Recent changes to TField.SetData

    This fix http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packages/fcl-db/src/base/fields.inc?r1=17199&r2=17220 fixes mising call to TField.Validate (before data are…

    LacaK, Luiz Americo Pereira Camara, Martin Schreiber
    18
  11. Can't build FPC what can be a reason?

    Hello, FPC developers' list. I can't build FPC today. Executable is always differ by one byte with the previous and cmp don't let me continue after make cycle:…

    Paul Ishenin, Florian Klämpfl, Hans-Peter Diettrich
    16
  12. intptr_t and Linux

    I see that intptr_t type is defined for all supported Unix that are not Linux. Is there are reason why it was never declared for Linux ? stdint.h is define it like so:…

    ik, Marco van de Voort
    5
  13. Trying to add "sky" target based on "arm" target. Internal error 2004121202

    I copied "arm" folder to "sky" folder to try and use it as basis for adding a new target to free pascal. I also used lazarus 9.30 which builds everything fine. I also…

    Skybuck Flying, Hans-Peter Diettrich, Paul Ishenin
    3
  14. Re: Trying to add "sky" target based on "arm" target. (how to set custom target conditional ?)

    I think I got a working to a certain point... the error is gone... it now probably needs an RTL for "sky". I am still a bit confused about the difference between "i_"…

    Skybuck Flying
    1
  15. Re: Extended type

    On Windows 64-bit you must not use the x87 FPU, because Microsoft wants it so. Thus on Win64 Extended=Double. On other x86_64 based operating systems the state might be…

    Sven Barth, Alexander Klenin, Daniël Mantione
    28
  16. GetEnumValue result type

    Hi, I'm having some trouble if I want to pass an enumerated type as a function parameter, when I get that type with GetEnumValue. For example, if I have this type:…

    Leonardo M. Ramé, Hans-Peter Diettrich
    1
  17. How are short/ansi strings implemented ?

    I've been wondering lately a little bit how the basic types are implemented. Now byte, integer and so forth seem easy, these can be directly translated by the assemblers…

    Skybuck Flying, Hans-Peter Diettrich, Michael Schnell
    2
  18. arch x64 - type of expresion result

    Hi I have program procedure fun(a : integer);overload; begin write('integer ',a); end; procedure fun(a:int64);overload; begin write('int64 ',a); end; var w : word; begin…

    Unknown author
    0
  19. "helper" feature finished

    Hello together! Today I have run the final tests on the helper branch and I'm satisfied with their results, thus I'd like you to review and hopefully merge my work. The…

    Sven Barth, Florian Klaempfl, Florian Klämpfl
    31
  20. Writeable consts in delphi mode

    This is first time that I need writeable consts in my app *delphi mode*, so tried {$J+} if Something then MyConst := 0 else MyConst := 100; {$J-} and {$WRITEABLECONST ON}

    zeljko, Sergei Gorelkin
    1
  21. Announcement: Free Pascal Compiler Delphi XE Port Project

    I have finished with Phase 1 of the Free Pascal Compiler Delphi XE Port Project: http://www.skybuck.org/FreePascalCompilerDelphiXEPortProject/ All code with porting…

    Skybuck Flying, Adem, Felipe Monteiro de Carvalho
    21
  22. Android native application with local webserver

    Hello I finish first stage to move my webapp as native Android application. Its consists one java file with declaration webWiew, and all rest, written in FPC, is build…

    Unknown author, Dariusz Mazur, Michael Schnell
    7
  23. RFC: customvariant handling in variants.pp and fmtbcd.pp

    I would like ask for your opinion in this case. I found, that in this sample program is raised "Invalid variant ..." var bcd1: TBCD; v,v1: variant; s: string; begin…

    LacaK, Sergei Gorelkin
    11
  24. How to get FPC to generate floating point instructions for ARM?

    I am trying to understand how to work with the various floating point options available for FPC when running on ARM under Linux. I'm not to familiar with all this so…

    michael, Helmut Hartl, Jeppe Johansen
    12
  25. Delphi replacement for get_caller_addr

    These two functions are being used for i386: // *** Skybuck: Fix Needed (porting issue 582) function get_frame:pointer;assembler;nostackframe;{$ifdef…

    Skybuck Flying
    0
  26. fcl-web compilation problems summary

    WinXP 32bit, latest FPC SVN trunk, everything is default, not cross compiling 1. "make all" creates all the units properly, into the right places. 2. "make install" gets…

    ABorka, Jonas Maebe, Unknown author
    4
  27. fpweb is not showing the exception message

    I was playing today with fpweb a little, and found a simply reproducible minor problem. When one creates a new CGI or FCGI application and creates a simple default…

    ABorka, Unknown author
    7
  28. Debugging FCGI applications

    How do we debug an FCGI application from within Lazarus? The RUN function is disabled in the RUN menu, so I can not start it up after putting some break points in the…

    ABorka, Michael Van Canneyt
    1
  29. Is it ok to commit SSE2 assembler code for x86_64?

    AFAIK every 64-bit capable x86 has at least SSE2 available, so SSE2 code is safe to be the default one (while code for SSE3 and higher requires CPUID checks). Still, I…

    Sergei Gorelkin, Florian Klämpfl
    1
  30. Register allocation question

    I wonder whether it is possible to assign a priority (or order) of registers for FPC's register allocator. Currently registers are allocated in the order of ordinals…

    Sergei Gorelkin, Daniël Mantione, Florian Klämpfl
    12
  31. fcl-web is not copied by make install

    Is it intentional that the fcl-web package is not copied when "make install" is called? "make all" compiles the units properly, they are just not copied by "make…

    ABorka, Joost van der Sluis
    7
  32. FreeBSD 64bits SVN error

    Hi, I'm trying to compile from trunk on a FreeBSD x86_64 box, and I'm getting this error: gmake clean all: ... thread.inc(411,10) Warning: Function result does not seem…

    Leonardo M. Ramé, Marco van de Voort
    2
  33. Building compiler, rtl, host, target... (cross compiling)

    First of all I would like to write that I failed to compile the RTL of Free Pascal so that might be adding a little bit too the confusion. (Just simple i386/x86 tests to…

    Skybuck Flying, Hans-Peter Diettrich, Matt Emson
    18
  34. Re: Do RTL unit names matter for the free pascal compiler ?

    I have little bit good news for Delphi: By adding pp to extension list somewhere in the options it's possible to compile pp files as well. At first I thought it was…

    Skybuck Flying
    0
  35. Potentially a slight little overflow issue in nx86mat.pas

    There could be a slight little overflow issue in unit "nx86mat.pas" Line 174: current_asmdata.asmlists[al_typedconsts].concat(tai_const.create_32bit(-(1 shl 31)));…

    Skybuck Flying
    0
  36. TFPHashList and FindIndexOf

    After some debugging into a problem I was finding, I determined that TFPHashList.FindIndexOf only works of the Key has non-nil data associated with it. In other words:…

    Seth Grover
    0
  37. ccharset.pas, charset.pas and strings/unicode ?

    I am having momentarily confusion about the situation with ccharset.pas and charset.pas and strings, ansistrings and unicode in general... ?!? So some questions about…

    Skybuck Flying, Marco van de Voort, Michael Schnell
    4
  38. External assemblers (also modular discussion about free pascal compiler)

    Perhaps some last silly questions about "external assemblers". First I'd like to say that I saw some tutorial where the compiler itself produced some form of assembly…

    Skybuck Flying, Michael Schnell, Sven Barth
    2
  39. Possibly bug spotted in scanner.pas

    Around line 1120: else if is_char(constdef) then begin read_factor:=char(qword(value.valueord)); factorType:= [ctetString]; end valueord seems to be type casted towards…

    Skybuck Flying, Florian Klaempfl
    1
  40. Re: Oddity: Longint being converted automatically to int64 and then assignment/conversion operator used/applied for/to structure variable...(i386) branch (2.4.2)

    It seems wrong unit was being used... now I have corrected it and Delphi XE seems to work as well... so no extra implicit conversion needed. So I guess Delphi also…

    Skybuck Flying
    0
  41. Oddity: Longint being converted automatically to int64 and then assignment/conversion operator used/applied for/to structure variable...(i386) branch (2.4.2)

    I am currently inspecting the following compiler unit of 2.4.2 branch/release ninl.pas: line 1371: enum:=tenumsym(tenumdef(def).firstenum); line 1372: …

    Skybuck Flying
    0
  42. Adding a new assembler to Free Pascal Compiler

    I would like to experiment with the pascal programming language at the binary/assembler/machine level. For example compile pascal sources to virtual machine instruction…

    Skybuck Flying, Hans-Peter Diettrich, Michael Schnell
    9
  43. Re: ccharset.pas, charset.pas and strings/unicode ? (>< symdif operator)

    As I was busy with the free pascal compiler source codes I came across an unfamiliar operator for me: >< ( It's in nflw.pas at line 830: {Symdif operator, in case you…

    Skybuck Flying
    0
  44. Changes in Makefile-system

    I've just committed a change in the Makefiles for the fcl-web package. The Makefile now calls fpmake to build and install the package. It's a first test, so please try…

    Joost van der Sluis, de_jean_7777, Hans-Peter Diettrich
    22
  45. Compiler subfolders: i386, x86

    I have a little question about these subfolders in the compiler folder, they are called: 'i386' and 'x86' What are these folders, they seem samiliar ? (cpubase.pas seems…

    Skybuck Flying, Hans-Peter Diettrich, Marco van de Voort
    3
  46. Adding a redcode assembler to Free Pascal Compiler

    I kinda forget to mention something in my previous posting to this mailing list, but perhaps it should go into a seperate thread anyway: As I mentioned in the previous…

    Skybuck Flying, Hans-Peter Diettrich, Michael Schnell
    4
  47. make error in fcl-web

    (w32 / vista) I tried to recompile fpc trunk, it starts up fine, until it comes to fcl-web. I copied the last lines of output to the end of the mail Not sure about the…

    Martin, Joost van der Sluis, Maxim Ganetsky
    8
  48. OpenCL/Cuda/PTX Support ?!?

    I tried searching the archives manually but this is a bit time consuming, I also tried the search function on the website but it seems broken. Anyway my question is the…

    Skybuck Flying, Jonas Maebe
    1
  49. Delphi 64bit compiler sneak peak available now

    https://forums.codegear.com/thread.jspa?threadID=52117&tstart=0 We can check it out and do some comparisons now.

    ABorka
    0
  50. Behavior of conversion between vardate variants and string in fpc and delphi

    As pointed in bug http://bugs.freepascal.org/view.php?id=19075 converting from vardate variants (variants with TDateTime values) to string is done differently in Delphi…

    Luiz Americo Pereira Camara, LacaK, Sergei Gorelkin
    5