From 4d77fa5b6b37c6d425c18559cb3a692e35beab27 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Wed, 9 Jan 2002 09:38:19 +0000 Subject: [PATCH] Add bcs_next (STAILQ_NEXT). svn path=/trunk/yasm/; revision=451 --- libyasm/bc-int.h | 2 ++ src/bc-int.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libyasm/bc-int.h b/libyasm/bc-int.h index 3563d703..ce8c25ef 100644 --- a/libyasm/bc-int.h +++ b/libyasm/bc-int.h @@ -74,4 +74,6 @@ void *bc_get_data(bytecode *); const void *bc_get_const_data(const bytecode *); #define bc_get_const_data(x) (const void *)(((const char *)x)+sizeof(bytecode)) +#define bcs_next(x) STAILQ_NEXT(x, link) + #endif diff --git a/src/bc-int.h b/src/bc-int.h index 3563d703..ce8c25ef 100644 --- a/src/bc-int.h +++ b/src/bc-int.h @@ -74,4 +74,6 @@ void *bc_get_data(bytecode *); const void *bc_get_const_data(const bytecode *); #define bc_get_const_data(x) (const void *)(((const char *)x)+sizeof(bytecode)) +#define bcs_next(x) STAILQ_NEXT(x, link) + #endif -- 2.40.0