[patch][commit] Duplicate Function Removed

Dave Brolley <[email protected]>
Newsgroups gmane.comp.emulators.sid.devel,gmane.comp.tools.cgen.devel
Message-ID <[email protected]>
Hi,

I've committed the attached patch which removes the version of 
gen-attr-type from sid.scm. The one in utils-cgen.scm is correct for 
both sim and sid.

Dave
cgen-sid-attr.ChangeLog (text/plain, 86 B)
2006-06-20  Dave Brolley  <[email protected]>

	* sid.scm (gen-attr-type): Removed.
cgen-sid-attr.patch.txt (text/plain, 793 B)
Index: sid.scm
===================================================================
RCS file: /cvs/src/src/cgen/sid.scm,v
retrieving revision 1.16
diff -c -p -r1.16 sid.scm
*** sid.scm	28 Oct 2005 19:30:02 -0000	1.16
--- sid.scm	20 Jun 2006 19:48:15 -0000
***************
*** 170,186 ****
  
  ; Attribute support.
  
- ; Return the C++ type to use to hold a value for attribute ATTR.
- 
- (define (gen-attr-type attr)
-   (case (attr-kind attr)
-     ((boolean) "int")
-     ((bitset)  "unsigned int")
-     ((integer) "int")
-     ((enum)    (string-append "enum " (string-downcase (gen-sym attr)) "_attr"))
-     )
- )
- 
  ; Return C code to fetch a value from instruction memory.
  ; PC-VAR is the C expression containing the address of the start of the
  ; instruction.
--- 170,175 ----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.