Przeglądaj źródła

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

git-svn-id: trunk@27134 -
sergei 11 lat temu
rodzic
commit
76e5970993
2 zmienionych plików z 2 dodań i 4 usunięć
  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
             begin
                 DosGetInfoBlocks (@TIB, @PIB);
                 DosGetInfoBlocks (@TIB, @PIB);
                 StackLength:=CheckInitialStkLen(InitialStklen);
                 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;
                 StackBottom := TIB^.StackLimit - StackLength;
 
 
                 Environment := pointer (PIB^.Env);
                 Environment := pointer (PIB^.Env);

+ 1 - 2
rtl/os2/system.pas

@@ -1126,8 +1126,7 @@ begin
 {$ENDIF OS2EXCEPTIONS}
 {$ENDIF OS2EXCEPTIONS}
     DosGetInfoBlocks (@TIB, @PIB);
     DosGetInfoBlocks (@TIB, @PIB);
     StackLength := CheckInitialStkLen (InitialStkLen);
     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;
     StackBottom := TIB^.StackLimit - StackLength;
 
 
     {Set type of application}
     {Set type of application}