]> granicus.if.org Git - yasm/commit
Revamp object format functional interface a bit. Now, only the output()
authorPeter Johnson <peter@tortall.net>
Wed, 27 Feb 2002 05:43:16 +0000 (05:43 -0000)
committerPeter Johnson <peter@tortall.net>
Wed, 27 Feb 2002 05:43:16 +0000 (05:43 -0000)
commit0177d689a1abbdb5c7132dfe4884d132c0229d3d
treee3b1c1764dfdb790599c7bf84fc648deb7587917
parenta0d61f00c1e47940131d581affb84dc62a38f3b6
Revamp object format functional interface a bit.  Now, only the output()
function gets a FILE *, and it's the only function that can write to a file.
The object file is thus not opened until AFTER parsing and most error checking
is complete.  Necessitated adding a special case for the dbg object format
because it needs to output to the "object" (debug) file from essentially every
function.  Added a global (debug_file) to support this.

svn path=/trunk/yasm/; revision=476
12 files changed:
frontends/yasm/yasm.c
libyasm/linemgr.c
libyasm/linemgr.h
libyasm/objfmt.h
modules/objfmts/dbg/dbg-objfmt.c
src/globals.c
src/globals.h
src/linemgr.c
src/linemgr.h
src/main.c
src/objfmt.h
src/objfmts/dbg/dbg-objfmt.c