]> granicus.if.org Git - yasm/commitdiff
Add bcs_first() (STAILQ_FIRST).
authorPeter Johnson <peter@tortall.net>
Wed, 9 Jan 2002 09:32:41 +0000 (09:32 -0000)
committerPeter Johnson <peter@tortall.net>
Wed, 9 Jan 2002 09:32:41 +0000 (09:32 -0000)
svn path=/trunk/yasm/; revision=450

libyasm/bytecode.h
src/bytecode.h

index 1fad2175049f0500501f5316d6d2a7d17c77ab8a..b35459c600e8ede7cdfa4328f81655075968fba6 100644 (file)
@@ -68,6 +68,9 @@ int bc_calc_len(bytecode *bc, intnum *(*resolve_label) (symrec *sym));
 /* void bcs_initialize(bytecodehead *headp); */
 #define        bcs_initialize(headp)   STAILQ_INIT(headp)
 
+/* bytecode *bcs_first(bytecodehead *headp); */
+#define bcs_first(headp)       STAILQ_FIRST(headp)
+
 void bcs_delete(bytecodehead *headp);
 
 /* Adds bc to the list of bytecodes headp.
index 1fad2175049f0500501f5316d6d2a7d17c77ab8a..b35459c600e8ede7cdfa4328f81655075968fba6 100644 (file)
@@ -68,6 +68,9 @@ int bc_calc_len(bytecode *bc, intnum *(*resolve_label) (symrec *sym));
 /* void bcs_initialize(bytecodehead *headp); */
 #define        bcs_initialize(headp)   STAILQ_INIT(headp)
 
+/* bytecode *bcs_first(bytecodehead *headp); */
+#define bcs_first(headp)       STAILQ_FIRST(headp)
+
 void bcs_delete(bytecodehead *headp);
 
 /* Adds bc to the list of bytecodes headp.