]> granicus.if.org Git - yasm/commitdiff
Make bcs_last() a fully visible function rather than a bc-int macro.
authorPeter Johnson <peter@tortall.net>
Thu, 3 Oct 2002 09:23:37 +0000 (09:23 -0000)
committerPeter Johnson <peter@tortall.net>
Thu, 3 Oct 2002 09:23:37 +0000 (09:23 -0000)
svn path=/trunk/yasm/; revision=729

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

index 793af58972be260a2b08585171fb4aa375c884a1..2c3d31f4fa3862e97bf63fac1efb374ed08cd988 100644 (file)
@@ -73,7 +73,4 @@ 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 976b448459277f2f311503509adc5176ac22a873..461888053bce59accd4439a267119fc7d4733d9a 100644 (file)
@@ -807,6 +807,12 @@ bc_tobytes(bytecode *bc, unsigned char *buf, unsigned long *bufsize,
     return mybuf;
 }
 
+bytecode *
+bcs_last(bytecodehead *headp)
+{
+    return STAILQ_LAST(headp, bytecode, link);
+}
+
 void
 bcs_delete(bytecodehead *headp)
 {
index fc6ed0941ade051ce7a952d3fed5d9051f53e7aa..ed12a29d42729448131f1e143e40faa34cbc00f4 100644 (file)
@@ -131,6 +131,7 @@ bc_resolve_flags bc_resolve(bytecode *bc, int save, const section *sect,
 /* bytecode *bcs_first(bytecodehead *headp); */
 #define bcs_first(headp)       STAILQ_FIRST(headp)
 
+/*@null@*/ bytecode *bcs_last(bytecodehead *headp);
 void bcs_delete(bytecodehead *headp);
 
 /* Adds bc to the list of bytecodes headp.
index 793af58972be260a2b08585171fb4aa375c884a1..2c3d31f4fa3862e97bf63fac1efb374ed08cd988 100644 (file)
@@ -73,7 +73,4 @@ 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 976b448459277f2f311503509adc5176ac22a873..461888053bce59accd4439a267119fc7d4733d9a 100644 (file)
@@ -807,6 +807,12 @@ bc_tobytes(bytecode *bc, unsigned char *buf, unsigned long *bufsize,
     return mybuf;
 }
 
+bytecode *
+bcs_last(bytecodehead *headp)
+{
+    return STAILQ_LAST(headp, bytecode, link);
+}
+
 void
 bcs_delete(bytecodehead *headp)
 {
index fc6ed0941ade051ce7a952d3fed5d9051f53e7aa..ed12a29d42729448131f1e143e40faa34cbc00f4 100644 (file)
@@ -131,6 +131,7 @@ bc_resolve_flags bc_resolve(bytecode *bc, int save, const section *sect,
 /* bytecode *bcs_first(bytecodehead *headp); */
 #define bcs_first(headp)       STAILQ_FIRST(headp)
 
+/*@null@*/ bytecode *bcs_last(bytecodehead *headp);
 void bcs_delete(bytecodehead *headp);
 
 /* Adds bc to the list of bytecodes headp.