Adriaan van Os wrote:
Included is a diff that improves the employability of the --mac-pascal dialect. Previously, several language constructs available in GNU Pascal and in Macintosh Pascal compilers were rejected by gpc in --mac-pascal mode. I hope that with this diff most of them have been catched now.
: + chk_dialect ("ellipsis parameters are", GNU_PASCAL | MAC_PASCAL);
Just MAC_PASCAL is enough. GNU_PASCAL is assumed for all features, and named explicitly only if no other dialects apply.
BTW, "ellipsis parameters" here refers to external declarations for C compatible varargs routines such as
procedure p (foo: Integer; ...); external;
Does Mac Pascal really support this? (Note that GPC only allows declaration of such routines, not implementation of them. If MP does, how does implementation of them work there, BTW?)
: - if (co->pascal_dialect & C_E_O_M_PASCAL) : + if (co->pascal_dialect & C_E_O_PASCAL) : build_predef_call (p_CaseNoMatchError, NULL_TREE);
Peter N. Lewis added Mac Pascal here in his original patch for MP dialect support (2003-03-31). Could you please make sure which one is correct?
Frank