浏览代码

* write length/code page when writing the string type

git-svn-id: trunk@45654 -
florian 5 年之前
父节点
当前提交
c6c996f506
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      compiler/symdef.pas

+ 8 - 0
compiler/symdef.pas

@@ -2688,6 +2688,14 @@ implementation
            'ShortString','LongString','AnsiString','WideString','UnicodeString');
       begin
          GetTypeName:=names[stringtype];
+         case stringtype of
+           st_ansistring,st_unicodestring:
+             GetTypeName:=GetTypeName+'('+tostr(encoding)+')';
+           st_shortstring:
+             GetTypeName:=GetTypeName+'['+tostr(len)+']';
+           else
+             ;
+         end;
       end;