Sfoglia il codice sorgente

Merge branch source:main into main

Curtis Hamilton 3 settimane fa
parent
commit
7b6e3131f5
3 ha cambiato i file con 525 aggiunte e 420 eliminazioni
  1. 519 418
      compiler/cclasses.pas
  2. 2 1
      compiler/scanner.pas
  3. 4 1
      compiler/symdef.pas

File diff suppressed because it is too large
+ 519 - 418
compiler/cclasses.pas


+ 2 - 1
compiler/scanner.pas

@@ -371,6 +371,7 @@ implementation
 *****************************************************************************}
 *****************************************************************************}
 
 
     const
     const
+      DirectiveIgnored=pointer(1);
       { use any special name that is an invalid file name to avoid problems }
       { use any special name that is an invalid file name to avoid problems }
       preprocstring : array [preproctyp] of string[7]
       preprocstring : array [preproctyp] of string[7]
         = ('$IFDEF','$IFNDEF','$IF','$IFOPT','$ELSE','$ELSEIF');
         = ('$IFDEF','$IFNDEF','$IF','$IFOPT','$ELSE','$ELSEIF');
@@ -4567,7 +4568,7 @@ type
              end
              end
             else
             else
              begin
              begin
-               current_scanner.ignoredirectives.Add(hs,nil);
+               current_scanner.ignoredirectives.Add(hs,DirectiveIgnored);
                Message1(scan_w_illegal_directive,'$'+hs);
                Message1(scan_w_illegal_directive,'$'+hs);
              end;
              end;
             { conditionals already read the comment }
             { conditionals already read the comment }

+ 4 - 1
compiler/symdef.pas

@@ -5693,7 +5693,10 @@ implementation
 
 
     function trecorddef.GetTypeName : string;
     function trecorddef.GetTypeName : string;
       begin
       begin
-         GetTypeName:='<record type>'
+        if assigned(typesym) then
+          GetTypeName:='<record type '+typesymbolprettyname+'>'
+        else
+          GetTypeName:='<record type>';
       end;
       end;
 
 
 {$ifdef DEBUG_NODE_XML}
 {$ifdef DEBUG_NODE_XML}

Some files were not shown because too many files changed in this diff