소스 검색

* Refactory: remove current_module use from top-level parsing

Michaël Van Canneyt 1 년 전
부모
커밋
97f159e4b2
2개의 변경된 파일195개의 추가작업 그리고 193개의 파일을 삭제
  1. 3 3
      compiler/parser.pas
  2. 192 190
      compiler/pmodules.pas

+ 3 - 3
compiler/parser.pas

@@ -406,15 +406,15 @@ implementation
              if (token=_UNIT) or (compile_level>1) then
                begin
                  current_module.is_unit:=true;
-                 finished:=proc_unit;
+                 finished:=proc_unit(current_module);
                end
              else if (token=_ID) and (idtoken=_PACKAGE) then
                begin
                  current_module.IsPackage:=true;
-                 proc_package;
+                 proc_package(current_module);
                end
              else
-               proc_program(token=_LIBRARY);
+               proc_program(current_module,token=_LIBRARY);
            except
              on ECompilerAbort do
                raise;

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 192 - 190
compiler/pmodules.pas


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.