Where is it defined? I can only find FPC_WRITE_TEXT_SHORTSTR, pointed by itself and Write_Str.
Mailing lists / fpc-pascal / 2008-11
fpc_write_text_shortstr (case sensitive!)
4 messages · 2 people · –
- JJonas Maebe 2
- Lleledumbo 2
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
leledumbo wroteWhere 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
Jonas Maebe-2 wrote 6 lines
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"?
leledumbo wrote 9 lines
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
