]> granicus.if.org Git - yasm/commit
Fix issue with how symrec's are handled when an expression is copied: old code
authorPeter Johnson <peter@tortall.net>
Wed, 20 Feb 2002 07:35:43 +0000 (07:35 -0000)
committerPeter Johnson <peter@tortall.net>
Wed, 20 Feb 2002 07:35:43 +0000 (07:35 -0000)
commit4f7daa4d39d6db24b21a49fb940ffe414f7c79db
treed6f20f77aa65128e5c6a4579fd49da28ca2cc038
parent2f20fc4846e13253c334116791608018738432e9
Fix issue with how symrec's are handled when an expression is copied: old code
just assigned the pointer: but the symrec is deleted (if it's not in the symbol
table) when the expr is deleted.  Thus, we need to create a copy of the symrec
instead of just reusing the same value if it's going to be deleted later.  This
trickles down to objfmt to copy the objfmt-local data.

svn path=/trunk/yasm/; revision=467
libyasm/expr.c
libyasm/objfmt.h
libyasm/symrec.c
libyasm/symrec.h
modules/objfmts/dbg/dbg-objfmt.c
src/expr.c
src/objfmt.h
src/objfmts/dbg/dbg-objfmt.c
src/symrec.c
src/symrec.h