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

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

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
« no previous file with comments | « third_party/yasm/patched-yasm/libyasm/bitvect.c ('k') | third_party/yasm/patched-yasm/libyasm/bytecode.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/yasm/patched-yasm/libyasm/bytecode.h
===================================================================
--- third_party/yasm/patched-yasm/libyasm/bytecode.h (revision 165590)
+++ third_party/yasm/patched-yasm/libyasm/bytecode.h (working copy)
@@ -2,10 +2,6 @@
* \file libyasm/bytecode.h
* \brief YASM bytecode interface.
*
- * \rcs
- * $Id: bytecode.h 2130 2008-10-07 05:38:11Z peter $
- * \endrcs
- *
* \license
* Copyright (C) 2001-2007 Peter Johnson
*
@@ -147,6 +143,8 @@
* passed-in buf matches the bytecode length
* (it's okay not to do this if an error
* indication is returned)
+ * \param bufstart For calculating the correct offset parameter for
+ * the \a output_value calls: *bufp - bufstart.
* \param d data to pass to each call to
* output_value/output_reloc
* \param output_value function to call to convert values into their byte
@@ -158,7 +156,8 @@
* preferable if calling this function twice would result in the
* same output.
*/
- int (*tobytes) (yasm_bytecode *bc, unsigned char **bufp, void *d,
+ int (*tobytes) (yasm_bytecode *bc, unsigned char **bufp,
+ unsigned char *bufstart, void *d,
yasm_output_value_func output_value,
/*@null@*/ yasm_output_reloc_func output_reloc);
@@ -277,7 +276,7 @@
*/
YASM_LIB_DECL
int yasm_bc_tobytes_common
- (yasm_bytecode *bc, unsigned char **bufp, void *d,
+ (yasm_bytecode *bc, unsigned char **bufp, unsigned char *bufstart, void *d,
yasm_output_value_func output_value,
/*@null@*/ yasm_output_reloc_func output_reloc);
@@ -575,6 +574,12 @@
(unsigned long)(l))
#endif
+/** Get the underlying value of a data value.
+ * \param dv data value
+ * \return Value, or null if non-value (e.g. string or raw).
+ */
+yasm_value *yasm_dv_get_value(yasm_dataval *dv);
+
/** Set multiple field of a data value.
* A data value can be repeated a number of times when output. This function
* sets that multiple.
« no previous file with comments | « third_party/yasm/patched-yasm/libyasm/bitvect.c ('k') | third_party/yasm/patched-yasm/libyasm/bytecode.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698