diff options
author | Joe <rbo@gmx.us> | 2024-03-29 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-03-29 20:20:20 +0100 |
commit | 486f840694b55452ea212fbf95ebd0cafddb33a8 (patch) | |
tree | d6e3238188d1dc6e0cab6b23ab3f245975c2cd7c /src/c_defs.go | |
parent | here (diff) | |
download | hardflip-486f840694b55452ea212fbf95ebd0cafddb33a8.tar.gz hardflip-486f840694b55452ea212fbf95ebd0cafddb33a8.tar.bz2 hardflip-486f840694b55452ea212fbf95ebd0cafddb33a8.tar.xz hardflip-486f840694b55452ea212fbf95ebd0cafddb33a8.tar.zst hardflip-486f840694b55452ea212fbf95ebd0cafddb33a8.zip |
iota
Diffstat (limited to '')
-rw-r--r-- | src/c_defs.go | 44 |
1 files changed, 27 insertions, 17 deletions
diff --git a/src/c_defs.go b/src/c_defs.go index cc4c264..81b192b 100644 --- a/src/c_defs.go +++ b/src/c_defs.go @@ -71,31 +71,41 @@ m: mkdir - ) const ( - NORMAL_MODE = 0 - DELETE_MODE = 1 - LOAD_MODE = 2 - ERROR_MODE = 3 - WELCOME_MODE = 4 - MKDIR_MODE = 5 - INSERT_MODE = 6 + NORMAL_MODE = iota + DELETE_MODE + LOAD_MODE + ERROR_MODE + WELCOME_MODE + MKDIR_MODE + INSERT_MODE +) + +const ( + W = 0 + H = 1 ) const ( - W = 0 - H = 1 ERROR_MSG = 0 ERROR_ERR = 1 - DEF_STYLE = 0 - DIR_STYLE = 1 - BOX_STYLE = 2 - HEAD_STYLE = 3 - ERR_STYLE = 4 - TITLE_STYLE = 5 - BOT_STYLE = 6 ) const ( - PROTOCOL_MAX = 3 + DEF_STYLE = iota + DIR_STYLE + BOX_STYLE + HEAD_STYLE + ERR_STYLE + TITLE_STYLE + BOT_STYLE +) + +const ( + PROTOCOL_SSH = iota + PROTOCOL_RDP + PROTOCOL_CMD + PROTOCOL_OS + PROTOCOL_MAX = PROTOCOL_OS ) var ( |