소스 검색

* 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;