Sign in Join

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

Mailing lists / fpc-pascal / 2008-11

fpc_write_text_shortstr (case sensitive!)

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jonas Maebe
to leledumbo
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

Reply by email

leledumbo
to Jonas Maebe
Jonas Maebe-2 wrote 6 lines
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 .

Reply by email

Jonas Maebe
to leledumbo
leledumbo wrote 9 lines
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?

No. "compilerproc" takes the Pascal name of the procedure (the identifier as it appears in the source code) and lowercases it. Furthermore, it also marks the routine in the ppu as a compilerproc. The FPC_WRITE_TEXT_SHORTSTR is a remnant from the past.

Jonas

Reply by email