소스 검색

* Clarified comments regarding TIB layout and stack bounds on OS/2.

git-svn-id: trunk@27134 -
sergei 11 년 전
부모
커밋
76e5970993
2개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 2
      rtl/emx/system.pas
  2. 1 2
      rtl/os2/system.pas

+ 1 - 2
rtl/emx/system.pas

@@ -550,8 +550,7 @@ begin
             begin
                 DosGetInfoBlocks (@TIB, @PIB);
                 StackLength:=CheckInitialStkLen(InitialStklen);
-                { TODO: verify if TIB^.StackLimit is correct,
-                  from MSWindows point of view TIB^.Stack should be used instead }
+                { OS/2 has top of stack in TIB^.StackLimit - unlike Windows where it is in TIB^.Stack }
                 StackBottom := TIB^.StackLimit - StackLength;
 
                 Environment := pointer (PIB^.Env);

+ 1 - 2
rtl/os2/system.pas

@@ -1126,8 +1126,7 @@ begin
 {$ENDIF OS2EXCEPTIONS}
     DosGetInfoBlocks (@TIB, @PIB);
     StackLength := CheckInitialStkLen (InitialStkLen);
-    { TODO: verify if TIB^.StackLimit is correct,
-      from MSWindows point of view TIB^.Stack should be used instead }
+    { OS/2 has top of stack in TIB^.StackLimit - unlike Windows where it is in TIB^.Stack }
     StackBottom := TIB^.StackLimit - StackLength;
 
     {Set type of application}