浏览代码

+ getasmsymbol to search for existing assembler symbol only

pierre 26 年之前
父节点
当前提交
5b5622d851
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. 10 1
      compiler/aasm.pas

+ 10 - 1
compiler/aasm.pas

@@ -320,6 +320,7 @@ type
       asmsymbollist : pasmsymbollist;
 
     function newasmsymbol(const s : string) : pasmsymbol;
+    function getasmsymbol(const s : string) : pasmsymbol;
     function renameasmsymbol(const sold, snew : string) : pasmsymbol;
 
   { label functions }
@@ -825,6 +826,11 @@ uses
         newasmsymbol:=hp;
       end;
 
+    { returns nil if non existing symbol }
+    function getasmsymbol(const s : string) : pasmsymbol;
+      begin
+        getasmsymbol:=pasmsymbol(asmsymbollist^.search(s));
+      end;
 
     { renames an asmsymbol }
     function renameasmsymbol(const sold, snew : string) : pasmsymbol;
@@ -971,7 +977,10 @@ uses
 end.
 {
   $Log$
-  Revision 1.33  1999-03-02 02:56:08  peter
+  Revision 1.34  1999-03-03 11:59:27  pierre
+   + getasmsymbol to search for existing assembler symbol only
+
+  Revision 1.33  1999/03/02 02:56:08  peter
     + stabs support for binary writers
     * more fixes and missing updates from the previous commit :(