svn commit: r1147 - trunk/yasm/libyasm

peter at tortall.net peter at tortall.net
Sun Sep 12 19:44:01 PDT 2004


Author: peter
Date: Sun Sep 12 19:44:00 2004
New Revision: 1147

Modified:
   trunk/yasm/libyasm/bc-int.h
   trunk/yasm/libyasm/bytecode.c
   trunk/yasm/libyasm/bytecode.h
   trunk/yasm/libyasm/symrec.c
ViewCVS:
   http://www.tortall.net/cgi-bin/viewcvs.cgi?view=rev&rev=1147
Log:
* bc-int.h (yasm_bytecode): Add new pointer to array symrecs.  This is a
NULL-terminated array of labels that point to this bytecode (as the bytecode
previous to the label).  NULL if no labels point to this bytecode.

* bytecode.c (yasm_bc_create_common): Initialize symrecs variable to NULL.
* bytecode.c (yasm_bc_destroy): Delete symrecs variable.

* bytecode.h (yasm_bc__add_symrec): Declare new function.
* bytecode.c (yasm_bc__add_symrec): New.

* symrec.c (yasm_symtab_define_label): Call yasm_bc__add_symrec().

This new functionality is needed to make writing certain dbgfmt routines
easier.




More information about the yasm-cvs mailing list