Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: third_party/yasm/patched-yasm/libyasm/bytecode.c

Issue 11364046: Update Yasm to 1.2.0 (Yasm Part 1/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/yasm/patched-yasm/libyasm/bytecode.c
===================================================================
--- third_party/yasm/patched-yasm/libyasm/bytecode.c (revision 165590)
+++ third_party/yasm/patched-yasm/libyasm/bytecode.c (working copy)
@@ -25,7 +25,6 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include "util.h"
-/*@unused@*/ RCSID("$Id: bytecode.c 2233 2009-10-31 21:45:55Z peter $");
#include "libyasm-stdint.h"
#include "coretype.h"
@@ -73,7 +72,8 @@
}
int
-yasm_bc_tobytes_common(yasm_bytecode *bc, unsigned char **bufp, void *d,
+yasm_bc_tobytes_common(yasm_bytecode *bc, unsigned char **buf,
+ unsigned char *bufstart, void *d,
yasm_output_value_func output_value,
/*@null@*/ yasm_output_reloc_func output_reloc)
{
@@ -305,6 +305,7 @@
/*@sets *buf@*/
{
/*@only@*/ /*@null@*/ unsigned char *mybuf = NULL;
+ unsigned char *bufstart;
unsigned char *origbuf, *destbuf;
long i;
int error = 0;
@@ -329,6 +330,7 @@
destbuf = mybuf;
} else
destbuf = buf;
+ bufstart = destbuf;
*bufsize = bc->len*bc->mult_int;
@@ -336,7 +338,7 @@
yasm_internal_error(N_("got empty bytecode in bc_tobytes"));
else for (i=0; i<bc->mult_int; i++) {
origbuf = destbuf;
- error = bc->callback->tobytes(bc, &destbuf, d, output_value,
+ error = bc->callback->tobytes(bc, &destbuf, bufstart, d, output_value,
output_reloc);
if (!error && ((unsigned long)(destbuf - origbuf) != bc->len))
« no previous file with comments | « third_party/yasm/patched-yasm/libyasm/bytecode.h ('k') | third_party/yasm/patched-yasm/libyasm/compat-queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698