瀏覽代碼

* Forgot to add unitname to resourcestring data

michael 26 年之前
父節點
當前提交
5d101ee4f5
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      compiler/cresstr.pas

+ 6 - 3
compiler/cresstr.pas

@@ -94,7 +94,7 @@ unit cresstr;
     begin
       inc(resstrcount);
       New(R);
-      R^.Name:=NAme;
+      R^.Name:=Lower(Name);
       r^.Len:=Len;
       R^.Hash:=hash;
       GetMem(R^.Value,Len);
@@ -117,7 +117,7 @@ unit cresstr;
          if not(assigned(resourcestringlist)) then
            resourcestringlist:=new(paasmoutput,init);
 
-         AppendToResourceList(Name,P,Len,Hash);  
+         AppendToResourceList(current_module^.modulename^+'.'+Name,P,Len,Hash);  
          
          { an empty ansi string is nil! }
          if (p=nil) or (len=0) then
@@ -228,7 +228,10 @@ unit cresstr;
 end.
 {
   $Log$
-  Revision 1.4  1999-07-24 16:22:10  michael
+  Revision 1.5  1999-07-24 18:35:41  michael
+  * Forgot to add unitname to resourcestring data
+
+  Revision 1.4  1999/07/24 16:22:10  michael
   + Improved resourcestring handling
 
   Revision 1.3  1999/07/24 15:12:58  michael