|
@@ -149,6 +149,9 @@ interface
|
|
|
{# Returns true, if p points to an array of const }
|
|
|
function is_array_of_const(p : tdef) : boolean;
|
|
|
|
|
|
+ {# Returns true if p is an arraydef that describes a constant string }
|
|
|
+ function is_conststring_array(p : tdef) : boolean;
|
|
|
+
|
|
|
{# Returns true, if p points any kind of special array
|
|
|
|
|
|
That is if the array is an open array, a variant
|
|
@@ -821,6 +824,12 @@ implementation
|
|
|
(ado_IsArrayOfConst in tarraydef(p).arrayoptions);
|
|
|
end;
|
|
|
|
|
|
+ function is_conststring_array(p: tdef): boolean;
|
|
|
+ begin
|
|
|
+ result:=(p.typ=arraydef) and
|
|
|
+ (ado_IsConstString in tarraydef(p).arrayoptions);
|
|
|
+ end;
|
|
|
+
|
|
|
{ true, if p points to a special array, bitpacked arrays aren't special in this regard though }
|
|
|
function is_special_array(p : tdef) : boolean;
|
|
|
begin
|