亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dcunits.pas

?? SrcDecompiler is about creating a Delphi program decompiler. The program is written for Delphi 4 or
?? PAS
?? 第 1 頁 / 共 3 頁
字號:
                // be before if there is no type between them.
                if (ReqDecomps[J] is TClassInfo) and
                   IsTypeDecomp(TDecompItem(DecompItems[I])) then
                begin
                  // Move the class after the last typeinfo decomp after the first item.
                  for L := I +1 to K -1 do
                    if not IsTypeDecomp(TDecompItem(Self.DecompItems[L])) then
                    begin
                      Self.DecompItems.Move(K, L);
                      Changed := True;
                      Break;
                    end;
                end
                else
                begin
                  if (TDecompItem(Self.DecompItems[K]) is TVar) and
                     (not (TVar(Self.DecompItems[K]).AType.TypeKind in [etkUTInteger, etkUTString])) then
                  begin
                    // Vars may not require a var after it.
                    if TDecompItem(Self.DecompItems[I]) is TVar then
                      raise EDecompilerError.CreateFmt('var requiring a var after it %p %p',
                        [TDecompItem(Self.DecompItems[I]).Address, TDecompItem(Self.DecompItems[K]).Address]);
                    Self.DecompItems.Move(K, I);
                    // Move all the vars which were before this var before the new place.
                    M := I;
                    for L := I + 1 to K do
                      if TDecompItem(Self.DecompItems[L]) is TVar then
                      begin
                        // Move the var.
                        Self.DecompItems.Move(L, M);
                        Inc(M);
                      end;
                  end
                  else
                  begin
                    if IsTypeDecomp(TDecompItem(Self.DecompItems[I])) and
                       (TDecompItem(Self.DecompItems[K]) is TVar) then
                    begin
                      M := 0;
                      for L := I -1 downto 0 do
                        if not IsTypeDecomp(Self.DecompItems[L]) then
                        begin
                          M := L + 1;
                          break;
                        end;
                    end
                    else
                      M := I;
                    Self.DecompItems.Move(K, M);
                  end;
                  Changed := True;
                  Break;
                end;
              end;
            end;
          end;
        end;
      end;
    until not Changed;

    // Don't add an interface section if this is the program unit.
    if UnitType <> utProgram then
    begin
      if IntfUnitCount > 0 then
      begin
        // Add the interface uses clause.
        UnitSrc.Add(UsesClause);
        Str := '  ';
        for I := 0 to IntfUnitCount -2 do
          Str := Str + IntfUnits[I].Name + ', ';
        Str := Str + IntfUnits[IntfUnitCount -1].Name + ';';
        UnitSrc.Add(Str);
      end;

      // Add the interface declarations.
      SectionType := stProc;
      for I := 0 to DecompItems.Count -1 do
      begin
        if TDecompItem(DecompItems[I]).IntfImpl = iiInterface then
        begin
          // Add the comments
          AddComments(TDecompItem(DecompItems[I]).Comments);
          // It this decomp item requires a class form the same unit which isn't
          // declared yet make a forward declaration
          for J := 0 to TDecompItem(DecompItems[I]).ReqDecompCount -1 do
          begin
            if (not (TDecompItem(DecompItems[I]) is TProc)) and
               (TDecompItem(TDecompItem(DecompItems[I]).ReqDecomps[J]) is TClassInfo) and
               (not TClassInfo(TDecompItem(DecompItems[I]).ReqDecomps[J]).ForwardDecl) and
               (TDecompItem(DecompItems[I]).ReqDecomps[J].AUnit = Self) then
            begin
              SetSectionType(stType);
              UnitSrc.Add(TClassInfo(TDecompItem(DecompItems[I]).ReqDecomps[J]).AClass.ClassName + ' = class;');
              TClassInfo(TDecompItem(DecompItems[I]).ReqDecomps[J]).ForwardDecl := True;
            end;
          end;
          if TDecompItem(DecompItems[I]) is TProc then
          begin
            TProc(DecompItems[I]).ForwardDecl := True;
            // Proc.
            if not (TProc(DecompItems[I]).ProcType in ptMethods) then
            begin
              // Add a proc definition.
              SetSectionType(stProc);
              UnitSrc.Add(TProc(DecompItems[I]).DefSrc);
            end;
          end
          else if TDecompItem(DecompItems[I]) is TClassInfo then
          begin
            // Add the class declaration.
            SetSectionType(stType);
            UnitSrc.Add(TClassInfo(DecompItems[I]).ClassDef.Text);
            TClassInfo(DecompItems[I]).ForwardDecl := True;
            with TClassInfo(DecompItems[I]) do
            begin
              Str := AClass.ClassName;
              Delete(Str, 22, Length(Str) - 22);
              Consts.Add('  ' + Str + 'ClassConst: TClass = ' + AClass.ClassName + ';');
            end;
          end
          else if TDecompItem(DecompItems[I]) is TVar then
          begin
            if TVar(DecompItems[I]).Name[1] <> '!' then
            begin
              // Var/const.
              if vtVar in TVar(DecompItems[I]).VarConst then
              begin
                // Add a var
                SetSectionType(stVar);
                UnitSrc.Add('  ' + TVar(DecompItems[I]).VarDecl);
              end
              else
              begin
                // Add a const
                SetSectionType(stConst);
                UnitSrc.Add('  ' + TVar(DecompItems[I]).VarDecl);
              end;
            end;
          end
          else if TDecompItem(DecompItems[I]) is TStringInfo then
          begin
            // String
            if TStringInfo(DecompItems[I]).StringType = Procs.stResourceString then
            begin
              SetSectionType(stResourceString);
              UnitSrc.Add(Format('  %s = %s;', [TStringInfo(DecompItems[I]).Name,
                EnhQuotedStr(TStringInfo(DecompItems[I]).Value)]));
              Consts.Add(Format('  %0:sRec: Pointer = @%0:s;', [TStringInfo(DecompItems[I]).Name]));
            end
            else
            begin
              SetSectionType(stConst);
              UnitSrc.Add(Format('  %s: %s = %s;', [TStringInfo(DecompItems[I]).Name,
                TStringInfo(DecompItems[I]).StringTypeName,
                EnhQuotedStr(TStringInfo(DecompItems[I]).Value)]));
            end;
          end
          else if TDecompItem(DecompItems[I]) is TTypeInfoInfo then
          begin
            // Type Info
            with TTypeInfoInfo(DecompItems[I]) do
              if HasTypeDef then
              begin
                SetSectionType(stType);
                UnitSrc.Add('  ' + TypeDef);
                Vars.Add('  ' + TypeInfoVarName + ': Pointer absolute TypeInfo(' + Name + ');');
              end;
          end
          else if TDecompItem(DecompItems[I]) is TNoTInfoType then
          begin
            with TNoTInfoType(DecompItems[I]) do
            begin
              SetSectionType(stType);
              UnitSrc.Add('  ' + Defenition);
            end;
          end
          else if TDecompItem(DecompItems[I]) is TThreadVar then
          begin
            SetSectionType(stThreadvar);
            UnitSrc.Add('  ' + TThreadVar(DecompItems[I]).GetDeclaration);
          end;
        end;
      end;
      SetSectionType(stProc);

      // Implemenation part. --------------------------------
      UnitSrc.Add(ImplUnit);
    end;

    // Add the form DFM
    if DFM <> nil then
      UnitSrc.Add(DFMInclude);

    // Add the implementation uses clause.
    if ImplUnitCount > 0 then
    begin
      if (UnitType = utProgram) and (TPEFileClass(PEFileClass).ProjectType = ptPackage) then
        UnitSrc.Add(ContainsClause)
      else
        UnitSrc.Add(UsesClause);
      Str := '  ';
      for I := 0 to ImplUnitCount -2 do
        Str := Str + ImplUnits[I].Name + ', ';
      Str := Str + ImplUnits[ImplUnitCount -1].Name + ';';
      UnitSrc.Add(Str);
    end;

    // Don't add any declaration to a package main unit.
    if (UnitType <> utProgram) or (TPEFileClass(PEFileClass).ProjectType <> ptPackage) then
    begin
      // Add the some addional system declarations.
      SectionType := stProc;
      for J := 0 to 1 do
        for I := 0 to TUnit(Collection.Items[J]).DecompItems.Count -1 do
          begin
            if (TDecompItem(TUnit(Collection.Items[J]).DecompItems[I]) is TTypeInfoInfo) and
               TTypeInfoInfo(TUnit(Collection.Items[J]).DecompItems[I]).HasTypeDef then
            begin
              with TTypeInfoInfo(TUnit(Collection.Items[J]).DecompItems[I]) do
                for K := 0 to ReqByDecompCount -1 do
                  if ReqByDecomps[K].AUnit = Self then
                  begin
                    SetSectionType(stVar);
                    UnitSrc.Add(Format('  %s: Pointer absolute TypeInfo(%s);', [TypeInfoVarName, TypeInfo.Name]));
                    break;
                  end;
            end
            else if (TDecompItem(TUnit(Collection.Items[J]).DecompItems[I]) is TClassInfo) then
            begin
              with TClassInfo(TUnit(Collection.Items[J]).DecompItems[I]) do
                for K := 0 to ReqByDecompCount -1 do
                  if ReqByDecomps[K].AUnit = Self then
                  begin
                    SetSectionType(stConst);
                    UnitSrc.Add(Format('  %0:sClassConst: TClass = %0:s;', [AClass.ClassName]));
                    break;
                  end;
            end;
          end;

      // Add the implementation declarations.
      for I := 0 to DecompItems.Count -1 do
      begin
        // If this decomp item requires a proc or class without a forward declaration make
        // one now.
        for J := 0 to TDecompItem(DecompItems[I]).ReqDecompCount -1 do
        begin
          if (TDecompItem(DecompItems[I]).ReqDecomps[J] is TProc) and
             (not TProc(TDecompItem(DecompItems[I]).ReqDecomps[J]).ForwardDecl) and
             (not (TProc(TDecompItem(DecompItems[I]).ReqDecomps[J]).ProcType in ptMethods)) and
             (not (TProc(TDecompItem(DecompItems[I]).ReqDecomps[J]).ProcType in [ptInitialization, ptFinalization, ptEntryPointProc])) and
             (TDecompItem(DecompItems[I]).ReqDecomps[J].AUnit = Self) then
          begin
            SetSectionType(stProc);
            UnitSrc.Add(TProc(TDecompItem(DecompItems[I]).ReqDecomps[J]).DefSrc + ' forward;');
            TProc(TDecompItem(DecompItems[I]).ReqDecomps[J]).ForwardDecl := True;
          end;
          if (not (TDecompItem(DecompItems[I]) is TProc)) and
             (TDecompItem(DecompItems[I]).ReqDecomps[J] is TClassInfo) and
             (not TClassInfo(TDecompItem(DecompItems[I]).ReqDecomps[J]).ForwardDecl) and
             (TDecompItem(DecompItems[I]).ReqDecomps[J].AUnit = Self) then
          begin
            SetSectionType(stType);
            UnitSrc.Add(TClassInfo(TDecompItem(DecompItems[I]).ReqDecomps[J]).AClass.ClassName + ' = class;');
            TClassInfo(TDecompItem(DecompItems[I]).ReqDecomps[J]).ForwardDecl := True;
          end;
        end;

        if TDecompItem(DecompItems[I]) is TProc then
        begin
          // Don't add it if it is the initlization of finalization proce
          if (TProc(DecompItems[I]) <> Init) and (TProc(DecompItems[I]) <> FInit) and
             (TProc(DecompItems[I]).ProcType <> ptEntryPointProc) then
          begin
            // Add comments.
            AddComments(TDecompItem(DecompItems[I]).Comments);
            TProc(DecompItems[I]).ForwardDecl := True;
            SetSectionType(stProc);
            if TProc(DecompItems[I]).InstrSrc.Text = '' then
            begin
              if TProc(DecompItems[I]).IntfImpl = iiImplementation then
                UnitSrc.Add(TProc(DecompItems[I]).DefSrc);
            end
            else
              UnitSrc.Add(TProc(DecompItems[I]).InstrSrc.Text);
          end;
        end
        else
        begin
          if TDecompItem(DecompItems[I]).IntfImpl = iiImplementation then
          begin
            // Add the comments
            AddComments(TDecompItem(DecompItems[I]).Comments);

            if TDecompItem(DecompItems[I]) is TClassInfo then
            begin
              SetSectionType(stType);
              UnitSrc.Add(TClassInfo(DecompItems[I]).ClassDef.Text);
              TClassInfo(DecompItems[I]).ForwardDecl := True;
              with TClassInfo(DecompItems[I]) do
              begin
                Str := AClass.ClassName;
                Delete(Str, 22, Length(Str) - 22);
                Consts.Add('  ' + Str + 'ClassConst: TClass = ' + AClass.ClassName + ';');
              end;
            end
            else if TDecompItem(DecompItems[I]) is TVar then
            begin
              if TVar(DecompItems[I]).Name[1] <> '!' then
              begin
                // Var/const.
                if vtVar in TVar(DecompItems[I]).VarConst then
                begin
                  // Add a var
                  SetSectionType(stVar);
                  UnitSrc.Add('  ' + TVar(DecompItems[I]).VarDecl);
                end
                else
                begin
                  // Add a const
                  SetSectionType(stConst);
                  UnitSrc.Add('  ' + TVar(DecompItems[I]).VarDecl);
                end;
              end;
            end
            else if TDecompItem(DecompItems[I]) is TStringInfo then
            begin
              // String
              if TStringInfo(DecompItems[I]).StringType = Procs.stResourceString then
              begin
                SetSectionType(stResourceString);
                UnitSrc.Add(Format('  %s = %s;', [TStringInfo(DecompItems[I]).Name,
                  EnhQuotedStr(TStringInfo(DecompItems[I]).Value)]));
                Consts.Add(Format('  %0:sRec: Pointer = @%0:s;', [TStringInfo(DecompItems[I]).Name]));
              end
              else
              begin
                SetSectionType(stConst);
                UnitSrc.Add(Format('  %s: %s = %s;', [TStringInfo(DecompItems[I]).Name,
                  TStringInfo(DecompItems[I]).StringTypeName,
                  EnhQuotedStr(TStringInfo(DecompItems[I]).Value)]));
              end;
            end
            else if TDecompItem(DecompItems[I]) is TTypeInfoInfo then
            begin
              with TTypeInfoInfo(DecompItems[I]) do
                if HasTypeDef then
                begin
                  SetSectionType(stType);
                  UnitSrc.Add('  ' + TypeDef);
                  Vars.Add(Format('  %s: Pointer absolute TypeInfo(%s);', [TypeInfoVarName, Name]));
                end;
            end
            else if TDecompItem(DecompItems[I]) is TNoTInfoType then
            begin
              with TNoTInfoType(DecompItems[I]) do
              begin
                SetSectionType(stType);
                UnitSrc.Add('  ' + Defenition);
              end;
            end
            else if TDecompItem(DecompItems[I]) is TThreadVar then
            begin
              SetSectionType(stThreadvar);
              UnitSrc.Add('  ' + TThreadVar(DecompItems[I]).GetDeclaration);
            end;
          end;
        end;
      end;
    end;

    SetSectionType(stProc);
    if UnitType = utNormal then
    begin
      // Add the inilization and finalization sections.
      if (Init <> nil) then
      begin
        AddComments(Init.Comments);
        UnitSrc.Add(Init.InstrSrc.Text);
      end;
      if FInit <> nil then
      begin
        AddComments(FInit.Comments);
        UnitSrc.Add(FInit.InstrSrc.Text);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
18成人在线观看| 国产精品久久久久影视| 欧美在线观看视频一区二区| 国产成人aaa| 99精品视频在线免费观看| 成人网男人的天堂| av在线不卡网| 日本乱码高清不卡字幕| 色一区在线观看| 欧美综合久久久| 在线成人av网站| 欧美mv和日韩mv国产网站| 久久久久久久久久久久久久久99| 精品国产精品一区二区夜夜嗨| 精品福利一二区| 国产亚洲欧美在线| 国产精品福利在线播放| 一区二区免费在线| 首页欧美精品中文字幕| 国模套图日韩精品一区二区 | 91精品办公室少妇高潮对白| 色8久久精品久久久久久蜜| 欧美精品久久一区二区三区| 精品久久久久香蕉网| 亚洲欧美一区二区在线观看| 亚洲在线视频一区| 蜜桃视频一区二区三区| 成人蜜臀av电影| 欧美日韩成人一区| 欧美激情在线一区二区| 一区二区成人在线观看| 国产精品综合久久| 欧美午夜理伦三级在线观看| 精品福利一区二区三区| 一区二区视频在线| 九九精品一区二区| 91官网在线免费观看| 337p日本欧洲亚洲大胆色噜噜| 亚洲精品一二三| 加勒比av一区二区| 欧美猛男男办公室激情| 国产精品网友自拍| 蜜臂av日日欢夜夜爽一区| 色哟哟国产精品| 日本一二三四高清不卡| 日韩成人dvd| 色婷婷一区二区| 久久精品一二三| 蜜桃视频一区二区三区在线观看| 日本韩国欧美三级| 欧美高清在线精品一区| 国产综合久久久久影院| 日韩一级完整毛片| 亚洲自拍偷拍av| 91在线精品秘密一区二区| 久久久久久久久一| 欧美aaaaaa午夜精品| 欧美亚洲日本国产| 亚洲影院理伦片| 欧美亚洲综合在线| 亚洲综合av网| 一本大道久久精品懂色aⅴ| 中文字幕一区视频| 成人激情小说乱人伦| 国产精品美女久久久久aⅴ| 国产精品综合av一区二区国产馆| 日韩一级高清毛片| 蜜臀av国产精品久久久久 | 欧美一区二区三区人| 亚洲国产成人porn| 91免费精品国自产拍在线不卡| 日本一区二区成人在线| 成人毛片老司机大片| 日本一区二区三区免费乱视频 | 99国产精品99久久久久久| 国产欧美日韩精品一区| 粉嫩嫩av羞羞动漫久久久| 国产免费观看久久| 波多野结衣的一区二区三区| 18成人在线观看| 色综合久久88色综合天天免费| 亚洲欧美视频一区| 欧美在线free| 日韩高清国产一区在线| 日韩三级.com| 国产a久久麻豆| 亚洲美女屁股眼交3| 欧美色图免费看| 青青国产91久久久久久| 久久久精品欧美丰满| 99久久伊人网影院| 一区二区三区加勒比av| 日韩欧美亚洲一区二区| 国产成人免费视频网站| 亚洲精品视频观看| 欧美一区二区精品在线| 国产成人精品免费| 亚洲图片欧美综合| 久久久久久麻豆| 色素色在线综合| 久国产精品韩国三级视频| 国产精品福利在线播放| 9191国产精品| 成人免费视频视频| 五月婷婷激情综合网| 久久久蜜桃精品| 欧美性猛片aaaaaaa做受| 国产麻豆精品在线| 亚洲一卡二卡三卡四卡五卡| 久久久91精品国产一区二区精品| 99久精品国产| 国产麻豆91精品| 午夜精品一区在线观看| 亚洲国产精品成人综合色在线婷婷| 在线观看一区二区视频| 国产成人综合自拍| 免费观看在线综合色| 一区二区三区在线视频观看| 26uuu久久综合| 欧美一级久久久| 欧美日韩在线播放一区| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 在线亚洲免费视频| 国产一区在线不卡| 婷婷一区二区三区| 一区二区三区鲁丝不卡| 欧美—级在线免费片| 日韩欧美一级特黄在线播放| 91精品办公室少妇高潮对白| 成人国产视频在线观看| 国产在线不卡一卡二卡三卡四卡| 亚洲国产日日夜夜| 夜夜亚洲天天久久| 中文字幕一区不卡| 国产精品视频在线看| 久久久精品人体av艺术| 亚洲精品在线网站| 26uuu精品一区二区| 精品三级在线看| 日韩一区二区影院| 欧美一区二区在线播放| 欧美亚洲国产bt| 欧美日韩中文字幕一区| 色偷偷一区二区三区| 色哟哟在线观看一区二区三区| av高清久久久| 99久久婷婷国产综合精品| 成人高清免费在线播放| 成人激情校园春色| av成人老司机| 色国产精品一区在线观看| 色婷婷av一区| 欧美丝袜丝交足nylons| 欧美美女激情18p| 欧美精选在线播放| 日韩亚洲欧美综合| 欧美成人福利视频| 国产嫩草影院久久久久| 国产精品美女久久久久久久久 | 国产精品一二三四五| 免费xxxx性欧美18vr| 久久精品国产亚洲一区二区三区| 日韩电影在线免费| 九色porny丨国产精品| 国产一区二区三区免费看| 岛国精品在线观看| 色婷婷亚洲综合| 日韩一区二区三区视频在线 | 欧美最新大片在线看| 欧美老女人第四色| 精品裸体舞一区二区三区| 日本一区二区三区久久久久久久久不 | 精品一区二区三区在线观看| 国产精品自拍毛片| 色婷婷亚洲精品| 欧美一级日韩不卡播放免费| 国产欧美日韩视频在线观看| 一区二区三区中文在线观看| 美国欧美日韩国产在线播放| 粉嫩13p一区二区三区| 欧美色视频在线| 久久久.com| 日韩专区在线视频| 国产米奇在线777精品观看| 91久久奴性调教| 26uuu成人网一区二区三区| 国产精品丝袜久久久久久app| 亚洲成年人网站在线观看| 国产精品99久久久久久宅男| 欧美亚洲国产一区二区三区| 久久一区二区三区国产精品| 一区二区免费在线| 国产a久久麻豆| 日韩欧美一区在线| 亚洲靠逼com| 国产不卡在线视频| 欧美一级精品大片| 亚洲午夜精品17c| 99久久伊人网影院| 久久蜜桃香蕉精品一区二区三区|