aboutsummaryrefslogtreecommitdiff
path: root/src/deep.h
diff options
context:
space:
mode:
authorBenoit Germain <bnt.germain@gmail.com>2022-02-07 08:56:39 +0100
committerBenoit Germain <bnt.germain@gmail.com>2022-02-07 08:56:39 +0100
commit621fb024b5f887ef9e81e2f28bf087386f5300e1 (patch)
tree3ed681e2db07a0516904b2cda4e7144c714d19e0 /src/deep.h
parent00c84df3adc0b295ef20bc35bc8df9632e3b93e7 (diff)
downloadlanes-621fb024b5f887ef9e81e2f28bf087386f5300e1.tar.gz
lanes-621fb024b5f887ef9e81e2f28bf087386f5300e1.tar.bz2
lanes-621fb024b5f887ef9e81e2f28bf087386f5300e1.zip
Changed all indentations to all whitespaces
Tabs mess up alignment of stack contents comments, so I'm done with them.
Diffstat (limited to 'src/deep.h')
-rw-r--r--src/deep.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/deep.h b/src/deep.h
index 35c8bd4..9b00b70 100644
--- a/src/deep.h
+++ b/src/deep.h
@@ -24,18 +24,18 @@ typedef struct s_Universe Universe;
24 24
25enum eLookupMode 25enum eLookupMode
26{ 26{
27 eLM_LaneBody, // send the lane body directly from the source to the destination lane 27 eLM_LaneBody, // send the lane body directly from the source to the destination lane
28 eLM_ToKeeper, // send a function from a lane to a keeper state 28 eLM_ToKeeper, // send a function from a lane to a keeper state
29 eLM_FromKeeper // send a function from a keeper state to a lane 29 eLM_FromKeeper // send a function from a keeper state to a lane
30}; 30};
31typedef enum eLookupMode LookupMode; 31typedef enum eLookupMode LookupMode;
32 32
33enum eDeepOp 33enum eDeepOp
34{ 34{
35 eDO_new, 35 eDO_new,
36 eDO_delete, 36 eDO_delete,
37 eDO_metatable, 37 eDO_metatable,
38 eDO_module, 38 eDO_module,
39}; 39};
40typedef enum eDeepOp DeepOp; 40typedef enum eDeepOp DeepOp;
41 41
@@ -49,11 +49,11 @@ static DECLARE_CONST_UNIQUE_KEY( DEEP_VERSION, 0xB4B0119C10642B29);
49// should be used as header for full userdata 49// should be used as header for full userdata
50struct s_DeepPrelude 50struct s_DeepPrelude
51{ 51{
52 DECLARE_UNIQUE_KEY( magic); // must be filled by the Deep userdata idfunc that allocates it on eDO_new operation 52 DECLARE_UNIQUE_KEY( magic); // must be filled by the Deep userdata idfunc that allocates it on eDO_new operation
53 // when stored in a keeper state, the full userdata doesn't have a metatable, so we need direct access to the idfunc 53 // when stored in a keeper state, the full userdata doesn't have a metatable, so we need direct access to the idfunc
54 luaG_IdFunction idfunc; 54 luaG_IdFunction idfunc;
55 // data is destroyed when refcount is 0 55 // data is destroyed when refcount is 0
56 volatile int refcount; 56 volatile int refcount;
57}; 57};
58typedef struct s_DeepPrelude DeepPrelude; 58typedef struct s_DeepPrelude DeepPrelude;
59 59