]> granicus.if.org Git - yasm/commitdiff
* bytecode.c (yasm_bc_create_insn): Use yasm_ops_initialize() instead of
authorPeter Johnson <peter@tortall.net>
Sun, 5 Mar 2006 08:02:35 +0000 (08:02 -0000)
committerPeter Johnson <peter@tortall.net>
Sun, 5 Mar 2006 08:02:35 +0000 (08:02 -0000)
STAILQ_INIT().
(yasm_bc_create_empty_insn): Initialize operands member.

svn path=/trunk/yasm/; revision=1400

libyasm/bytecode.c

index 6718431c17281d4e11b622b33228cb87428ba9fa..6e2a47d226513d286a81632c1eb8157d2fba39cc 100644 (file)
@@ -1157,7 +1157,7 @@ yasm_bc_create_insn(yasm_arch *arch, const unsigned long insn_data[4],
     if (operands)
        insn->operands = *operands;     /* structure copy */
     else
-       STAILQ_INIT(&insn->operands);
+       yasm_ops_initialize(&insn->operands);
     insn->num_prefixes = 0;
     insn->prefixes = NULL;
     insn->num_segregs = 0;
@@ -1177,6 +1177,7 @@ yasm_bc_create_empty_insn(yasm_arch *arch, unsigned long line)
     insn->insn_data[2] = 0;
     insn->insn_data[3] = 0;
     insn->num_operands = 0;
+    yasm_ops_initialize(&insn->operands);
     insn->num_prefixes = 0;
     insn->prefixes = NULL;
     insn->num_segregs = 0;