]> granicus.if.org Git - yasm/commitdiff
Add bcs_last() macro.
authorPeter Johnson <peter@tortall.net>
Thu, 14 Mar 2002 06:40:07 +0000 (06:40 -0000)
committerPeter Johnson <peter@tortall.net>
Thu, 14 Mar 2002 06:40:07 +0000 (06:40 -0000)
svn path=/trunk/yasm/; revision=496

libyasm/bc-int.h
src/bc-int.h

index 2c3d31f4fa3862e97bf63fac1efb374ed08cd988..793af58972be260a2b08585171fb4aa375c884a1 100644 (file)
@@ -73,4 +73,7 @@ const void *bc_get_const_data(const bytecode *);
 
 #define bcs_next(x)            STAILQ_NEXT(x, link)
 
+/* @null@ bytecode *bcs_last(bytecodehead *headp); */
+#define bcs_last(headp)                STAILQ_LAST(headp, bytecode, link)
+
 #endif
index 2c3d31f4fa3862e97bf63fac1efb374ed08cd988..793af58972be260a2b08585171fb4aa375c884a1 100644 (file)
@@ -73,4 +73,7 @@ const void *bc_get_const_data(const bytecode *);
 
 #define bcs_next(x)            STAILQ_NEXT(x, link)
 
+/* @null@ bytecode *bcs_last(bytecodehead *headp); */
+#define bcs_last(headp)                STAILQ_LAST(headp, bytecode, link)
+
 #endif