diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2013-02-03 00:47:09 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2013-02-03 00:47:09 (GMT) |
commit | 48e663f21a6429787fec2c426f46024dad9cde08 (patch) | |
tree | 8ba7878c82de5f95aecef6148a88b3bda2cd84d7 /src/decomp/expr/block.h | |
parent | 5b89c8369d2a26089f22be7c482e8254244ebc8c (diff) |
Added more options to render braces (or not) around decompiled blocks.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@337 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/decomp/expr/block.h')
-rw-r--r-- | src/decomp/expr/block.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/decomp/expr/block.h b/src/decomp/expr/block.h index b0c2baa..b0788dd 100644 --- a/src/decomp/expr/block.h +++ b/src/decomp/expr/block.h @@ -48,12 +48,28 @@ typedef struct _GExprBlock GExprBlock; typedef struct _GExprBlockClass GExprBlockClass; +/* Rendu des bordures */ +typedef enum _BlockBordeBehavior +{ + BBB_AUTO, + BBB_FORCE_OFF, + BBB_FORCE_ON + +} BlockBordeBehavior; + + /* Indique le type défini pour un ensemble d'instructions décompilées. */ GType g_expr_block_get_type(void); /* Constuit un conteneur pour diverses instructions décompilées. */ GDecInstruction *g_expr_block_new(GDecInstruction *); +/* Fournit le comportement du bloc pour le rendu de ses bords. */ +BlockBordeBehavior g_expr_block_get_border_behavior(const GExprBlock *); + +/* Définit le comportement du bloc pour le rendu de ses bords. */ +void g_expr_block_set_border_behavior(GExprBlock *, BlockBordeBehavior); + /* Ajoute une instruction décompilée au conteneur existant. */ void g_expr_block_add_item(GExprBlock *, GDecInstruction *); |