Prof A Olowofoyeku (The African Chief) wrote:
Would it be possible to predefine "ShortString" in GPC? (as "String [255]"). I appreciate that GPC doesn't yet have longstrings
You mean short strings?
so this may seem pointless - but I can't see any harm in having ShortString already defined (at least, in Delphi mode).
Does Delphi has the `ShortString' identifier? (I suppose to get a short string, independent of the `{$H+/-}' setting which seems reasonable.) If so, the following patch should do it:
--- p/predef.def.orig Fri Apr 22 22:44:07 2005 +++ p/predef.def Thu May 5 23:10:28 2005 @@ -204,6 +204,7 @@ PREDEF_TYPE (Pointer, ptr_type_node, B_D_M_PASCAL) PREDEF_TYPE (PObjectType, gpc_type_PObjectType, GNU_PASCAL) PREDEF_TYPE (String, string_schema_proto_type, NOT_CLASSIC_PASCAL) +PREDEF_TYPE (ShortString, string255_type_node, BORLAND_DELPHI) PREDEF_TYPE (Text, text_type_node, ANY_PASCAL) PREDEF_TYPE (AnyFile, any_file_type_node, GNU_PASCAL) PREDEF_TYPE (TimeStamp, gpc_type_TimeStamp, E_O_PASCAL)
Frank