aboutgitcodelistschat:MatrixIRC
path: root/common
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-06-07 16:54:53 +0200
committerAlice Frosi <afrosi@redhat.com>2023-06-07 16:57:23 +0200
commit1c1a9da7a4f9c4c1990192e14763ebf423d812a9 (patch)
treee7fea8962d166cd3d1cf70c84c9098cf6f8b3987 /common
parentb2e31a6e7493c56f923cb7d86f7a8a32940393ec (diff)
downloadseitan-1c1a9da7a4f9c4c1990192e14763ebf423d812a9.tar
seitan-1c1a9da7a4f9c4c1990192e14763ebf423d812a9.tar.gz
seitan-1c1a9da7a4f9c4c1990192e14763ebf423d812a9.tar.bz2
seitan-1c1a9da7a4f9c4c1990192e14763ebf423d812a9.tar.lz
seitan-1c1a9da7a4f9c4c1990192e14763ebf423d812a9.tar.xz
seitan-1c1a9da7a4f9c4c1990192e14763ebf423d812a9.tar.zst
seitan-1c1a9da7a4f9c4c1990192e14763ebf423d812a9.zip
seitan, cooker: refactor op_return
Refactor OP_RETURN: - merged OP_BLOCK and OP_CONT into OP_RETURN - add desc field for op_return - updated the demo files
Diffstat (limited to 'common')
-rw-r--r--common/gluten.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/common/gluten.h b/common/gluten.h
index a50687f..2f82509 100644
--- a/common/gluten.h
+++ b/common/gluten.h
@@ -63,8 +63,6 @@ enum op_type {
OP_NR,
OP_CALL,
OP_COPY,
- OP_BLOCK,
- OP_CONT,
OP_FD,
OP_RETURN,
OP_LOAD,
@@ -171,8 +169,14 @@ struct op_block {
int32_t error;
};
-struct op_return {
+struct return_desc {
struct gluten_offset val;
+ int32_t error;
+ bool cont;
+};
+
+struct op_return {
+ struct gluten_offset desc;
};
struct op_fd {