Browse Source

* Tvarsym.highvarsym removed

daniel 21 years ago
parent
commit
20469d47a0
2 changed files with 10 additions and 8 deletions
  1. 4 2
      compiler/pdecsub.pas
  2. 6 6
      compiler/symsym.pas

+ 4 - 2
compiler/pdecsub.pas

@@ -292,7 +292,6 @@ implementation
                  hvs:=tvarsym.create('$high'+tvarsym(currpara.parasym).name,vs_const,s32inttype);
                  hvs:=tvarsym.create('$high'+tvarsym(currpara.parasym).name,vs_const,s32inttype);
                  include(hvs.varoptions,vo_is_high_value);
                  include(hvs.varoptions,vo_is_high_value);
                  tvarsym(currpara.parasym).owner.insert(hvs);
                  tvarsym(currpara.parasym).owner.insert(hvs);
-{                 tvarsym(currpara.parasym).highvarsym:=hvs;}
                end
                end
               else
               else
                hvs:=nil;
                hvs:=nil;
@@ -2140,7 +2139,10 @@ const
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.160  2004-02-04 22:54:57  daniel
+  Revision 1.161  2004-02-05 14:13:53  daniel
+    *  Tvarsym.highvarsym removed
+
+  Revision 1.160  2004/02/04 22:54:57  daniel
     * Tvarsym.highvarsym commented out (unused by compiler, purpose unknown)
     * Tvarsym.highvarsym commented out (unused by compiler, purpose unknown)
 
 
   Revision 1.159  2004/02/04 22:15:15  daniel
   Revision 1.159  2004/02/04 22:15:15  daniel

+ 6 - 6
compiler/symsym.pas

@@ -153,7 +153,6 @@ interface
        end;
        end;
 
 
        tvarsym = class(tstoredsym)
        tvarsym = class(tstoredsym)
-{          highvarsym    : tvarsym;}
           defaultconstsym : tsym;
           defaultconstsym : tsym;
           varoptions    : tvaroptions;
           varoptions    : tvaroptions;
           varspez       : tvarspez;  { sets the type of access }
           varspez       : tvarspez;  { sets the type of access }
@@ -1431,7 +1430,6 @@ implementation
          varspez:=vsp;
          varspez:=vsp;
          fieldoffset:=0;
          fieldoffset:=0;
          fillchar(localloc,sizeof(localloc),0);
          fillchar(localloc,sizeof(localloc),0);
-{         highvarsym:=nil;}
          defaultconstsym:=nil;
          defaultconstsym:=nil;
          refs:=0;
          refs:=0;
          varstate:=vs_declared;
          varstate:=vs_declared;
@@ -1467,7 +1465,6 @@ implementation
          varstate:=vs_used;
          varstate:=vs_used;
          varspez:=tvarspez(ppufile.getbyte);
          varspez:=tvarspez(ppufile.getbyte);
          fieldoffset:=ppufile.getlongint;
          fieldoffset:=ppufile.getlongint;
-{         highvarsym:=nil;}
          defaultconstsym:=nil;
          defaultconstsym:=nil;
          ppufile.gettype(_vartype);
          ppufile.gettype(_vartype);
          ppufile.getsmallset(varoptions);
          ppufile.getsmallset(varoptions);
@@ -2109,6 +2106,8 @@ implementation
          if def.max<v then
          if def.max<v then
            def.setmax(v);
            def.setmax(v);
          order;
          order;
+{         nextenum:=Tenumsym(def.firstenum);
+         def.firstenum:=self;}
       end;
       end;
 
 
 
 
@@ -2134,7 +2133,6 @@ implementation
          order;
          order;
       end;
       end;
 
 
-
    procedure tenumsym.order;
    procedure tenumsym.order;
       var
       var
          sym : tenumsym;
          sym : tenumsym;
@@ -2161,7 +2159,6 @@ implementation
           end;
           end;
       end;
       end;
 
 
-
     procedure tenumsym.ppuwrite(ppufile:tcompilerppufile);
     procedure tenumsym.ppuwrite(ppufile:tcompilerppufile);
       begin
       begin
          inherited writesym(ppufile);
          inherited writesym(ppufile);
@@ -2366,7 +2363,10 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.154  2004-02-04 23:01:36  daniel
+  Revision 1.155  2004-02-05 14:13:53  daniel
+    *  Tvarsym.highvarsym removed
+
+  Revision 1.154  2004/02/04 23:01:36  daniel
     * Empty destructor Tlabelsym.destroy removed
     * Empty destructor Tlabelsym.destroy removed
 
 
   Revision 1.153  2004/02/04 22:54:57  daniel
   Revision 1.153  2004/02/04 22:54:57  daniel