瀏覽代碼

* explain why we may have to search for the uppercase version of a symbol in
tcallnode.createintern()

git-svn-id: trunk@31479 -

Jonas Maebe 10 年之前
父節點
當前提交
5c5935346a
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      compiler/ncal.pas

+ 4 - 0
compiler/ncal.pas

@@ -1443,6 +1443,10 @@ implementation
          srsym: tsym;
          srsym: tsym;
        begin
        begin
          srsym := tsym(systemunit.Find(name));
          srsym := tsym(systemunit.Find(name));
+         { in case we are looking for a non-external compilerproc of which we
+           only have parsed the declaration until now (the symbol name will
+           still be uppercased, because it needs to be matched when we
+           encounter the implementation) }
          if not assigned(srsym) and
          if not assigned(srsym) and
             (cs_compilesystem in current_settings.moduleswitches) then
             (cs_compilesystem in current_settings.moduleswitches) then
            srsym := tsym(systemunit.Find(upper(name)));
            srsym := tsym(systemunit.Find(upper(name)));