Bladeren bron

+ added parser support for huge pointer declarations

git-svn-id: trunk@28085 -
nickysn 11 jaren geleden
bovenliggende
commit
bff8dc3fbf
2 gewijzigde bestanden met toevoegingen van 10 en 0 verwijderingen
  1. 8 0
      compiler/pdecl.pas
  2. 2 0
      compiler/tokens.pas

+ 8 - 0
compiler/pdecl.pas

@@ -719,6 +719,14 @@ implementation
                     try_consume_hintdirective(newtype.symoptions,newtype.deprecatedmsg);
                     consume(_SEMICOLON);
 {$ifdef x86}
+  {$ifdef i8086}
+                    if try_to_consume(_HUGE) then
+                     begin
+                       tcpupointerdef(hdef).x86pointertyp:=x86pt_huge;
+                       consume(_SEMICOLON);
+                     end
+                    else
+  {$endif i8086}
                     if try_to_consume(_FAR) then
                      begin
   {$if defined(i8086)}

+ 2 - 0
compiler/tokens.pas

@@ -135,6 +135,7 @@ type
     _FAIL,
     _FILE,
     _GOTO,
+    _HUGE,
     _NAME,
     _NEAR,
     _READ,
@@ -452,6 +453,7 @@ const
       (str:'FAIL'          ;special:false;keyword:[m_none];op:NOTOKEN), { only set within constructors PM }
       (str:'FILE'          ;special:false;keyword:alllanguagemodes;op:NOTOKEN),
       (str:'GOTO'          ;special:false;keyword:alllanguagemodes;op:NOTOKEN),
+      (str:'HUGE'          ;special:false;keyword:[m_none];op:NOTOKEN),
       (str:'NAME'          ;special:false;keyword:[m_none];op:NOTOKEN),
       (str:'NEAR'          ;special:false;keyword:[m_none];op:NOTOKEN),
       (str:'READ'          ;special:false;keyword:[m_none];op:NOTOKEN),