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 -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8