Browse Source

* fix constant parsing which gave an error when constants were used

peter 25 years ago
parent
commit
8b92303745
2 changed files with 10 additions and 4 deletions
  1. 5 2
      compiler/ra386att.pas
  2. 5 2
      compiler/ra386int.pas

+ 5 - 2
compiler/ra386att.pas

@@ -954,6 +954,7 @@ Begin
         end;
         end;
       AS_ID:
       AS_ID:
         Begin
         Begin
+          hs:='';
           tempstr:=actasmpattern;
           tempstr:=actasmpattern;
           prevtok:=prevasmtoken;
           prevtok:=prevasmtoken;
           consume(AS_ID);
           consume(AS_ID);
@@ -964,7 +965,6 @@ Begin
            end
            end
           else
           else
            begin
            begin
-             hs:='';
              if is_locallabel(tempstr) then
              if is_locallabel(tempstr) then
               begin
               begin
                 CreateLocalLabel(tempstr,hl,false);
                 CreateLocalLabel(tempstr,hl,false);
@@ -2099,7 +2099,10 @@ begin
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.82  2000-06-14 19:02:41  peter
+  Revision 1.83  2000-06-15 18:07:07  peter
+    * fix constant parsing which gave an error when constants were used
+
+  Revision 1.82  2000/06/14 19:02:41  peter
     * fixed TYPE with records and fields
     * fixed TYPE with records and fields
     * added TYPE support for ATT reader else it wouldn't be possible to
     * added TYPE support for ATT reader else it wouldn't be possible to
       get the size of a type/variable
       get the size of a type/variable

+ 5 - 2
compiler/ra386int.pas

@@ -844,6 +844,7 @@ Begin
         end;
         end;
       AS_ID:
       AS_ID:
         Begin
         Begin
+          hs:='';
           tempstr:=actasmpattern;
           tempstr:=actasmpattern;
           prevtok:=prevasmtoken;
           prevtok:=prevasmtoken;
           consume(AS_ID);
           consume(AS_ID);
@@ -854,7 +855,6 @@ Begin
            end
            end
           else
           else
            begin
            begin
-             hs:='';
              if is_locallabel(tempstr) then
              if is_locallabel(tempstr) then
               begin
               begin
                 CreateLocalLabel(tempstr,hl,false);
                 CreateLocalLabel(tempstr,hl,false);
@@ -1899,7 +1899,10 @@ begin
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.73  2000-06-14 19:02:41  peter
+  Revision 1.74  2000-06-15 18:07:08  peter
+    * fix constant parsing which gave an error when constants were used
+
+  Revision 1.73  2000/06/14 19:02:41  peter
     * fixed TYPE with records and fields
     * fixed TYPE with records and fields
     * added TYPE support for ATT reader else it wouldn't be possible to
     * added TYPE support for ATT reader else it wouldn't be possible to
       get the size of a type/variable
       get the size of a type/variable