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

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

Issue 6170009: Update our yasm copy to yasm 1.1.0 (Part 1: yasm side)... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: Created 9 years, 11 months 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/linemap.c ('k') | third_party/yasm/patched-yasm/libyasm/section.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/objfmt.h
===================================================================
--- third_party/yasm/patched-yasm/libyasm/objfmt.h (revision 71129)
+++ third_party/yasm/patched-yasm/libyasm/objfmt.h (working copy)
@@ -3,7 +3,7 @@
* \brief YASM object format module interface.
*
* \rcs
- * $Id: objfmt.h 2166 2009-01-02 08:33:21Z peter $
+ * $Id: objfmt.h 2310 2010-03-28 19:28:54Z peter $
* \endrcs
*
* \license
@@ -108,6 +108,11 @@
*/
yasm_section * (*add_default_section) (yasm_object *object);
+ /** Module-level implementation of yasm_objfmt_init_new_section().
+ * Call yasm_objfmt_init_new_section() instead of calling this function.
+ */
+ void (*init_new_section) (yasm_section *section, unsigned long line);
+
/** Module-level implementation of yasm_objfmt_section_switch().
* Call yasm_objfmt_section_switch() instead of calling this function.
*/
@@ -156,6 +161,13 @@
*/
yasm_section *yasm_objfmt_add_default_section(yasm_object *object);
+/** Initialize the object-format specific portion of a section. Called
+ * by yasm_object_get_general(); in general should not be directly called.
+ * \param section section
+ * \param line virtual line (from yasm_linemap)
+ */
+void yasm_objfmt_init_new_section(yasm_object *object, unsigned long line);
+
/** Switch object file sections. The first val of the valparams should
* be the section name. Calls yasm_object_get_general() to actually get
* the section.
@@ -196,6 +208,9 @@
#define yasm_objfmt_add_default_section(object) \
((yasm_objfmt_base *)((object)->objfmt))->module->add_default_section \
(object)
+#define yasm_objfmt_init_new_section(section, line) \
+ ((yasm_objfmt_base *)((object)->objfmt))->module->init_new_section \
+ (section, line)
#define yasm_objfmt_get_special_sym(object, name, parser) \
((yasm_objfmt_base *)((object)->objfmt))->module->get_special_sym \
(object, name, parser)
« no previous file with comments | « third_party/yasm/patched-yasm/libyasm/linemap.c ('k') | third_party/yasm/patched-yasm/libyasm/section.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698