Re: [fpc-devel] Error: Procedure/Function declared with call option NOSTACKFRAME but without ASSEMBLER

2025-03-20 Thread Martin Frb via fpc-devel
On 20/03/2025 22:38, Marco van de Voort via fpc-devel wrote: Op 20-3-2025 om 20:46 schreef Martin Frb via fpc-devel: So why does the compiler interpret NoStackFrame in the type declaration, when it does not do that for other non-relevant modifiers (like assembler)? I think it is because nos

Re: [fpc-devel] Error: Procedure/Function declared with call option NOSTACKFRAME but without ASSEMBLER

2025-03-20 Thread Marco van de Voort via fpc-devel
Op 20-3-2025 om 20:46 schreef Martin Frb via fpc-devel: So why does the compiler interpret NoStackFrame in the type declaration, when it does not do that for other non-relevant modifiers (like assembler)? I think it is because nostackframe is a directive for the declaration of the function

Re: [fpc-devel] Error: Procedure/Function declared with call option NOSTACKFRAME but without ASSEMBLER

2025-03-20 Thread Martin Frb via fpc-devel
Ok, maybe I lost the point in verbosity. The following type    type  a=procedure foo; gives the error     project1.lpr(2,19) Fatal: Syntax error, ";" expected but "identifier FOO" found In a type declaration, the procedure can not have a name, and "foo" is not a valid modifier here (cdecl wou

Re: [fpc-devel] Error: Procedure/Function declared with call option NOSTACKFRAME but without ASSEMBLER

2025-03-20 Thread Marco van de Voort via fpc-devel
Op 20-3-2025 om 20:09 schreef Martin Frb via fpc-devel: It is possible to declare a type for a cdecl function like type  a=procedure cdecl; But, not for "assembler" which makes sense, because its not a calling convention. Same should likely be the case for NoStackframe. Roughly yes. Basicall