aboutsummaryrefslogtreecommitdiff
path: root/editors/vi.c
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-03-10 19:22:06 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-03-10 19:22:06 +0000
commit07ea853040a1240d40fefe5bb871a5c3c98c77a6 (patch)
treebeb32cedafc6232bf8a49fe90f0769d471ea6791 /editors/vi.c
parent8ee3984df387bf31ba1d652a861d7fedbac7bfa8 (diff)
downloadbusybox-w32-07ea853040a1240d40fefe5bb871a5c3c98c77a6.tar.gz
busybox-w32-07ea853040a1240d40fefe5bb871a5c3c98c77a6.tar.bz2
busybox-w32-07ea853040a1240d40fefe5bb871a5c3c98c77a6.zip
Patch from Denis Vlasenko turning static const int (which gets emitted into
the busybox binary) into enums (which don't). git-svn-id: svn://busybox.net/trunk/busybox@14513 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'editors/vi.c')
-rw-r--r--editors/vi.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/editors/vi.c b/editors/vi.c
index 4dcef68f9..3bf9ac3f9 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -138,18 +138,20 @@ static const char CMup[] = "\033[A";
138static const char CMdown[] = "\n"; 138static const char CMdown[] = "\n";
139 139
140 140
141static const int YANKONLY = FALSE; 141enum {
142static const int YANKDEL = TRUE; 142 YANKONLY = FALSE,
143static const int FORWARD = 1; // code depends on "1" for array index 143 YANKDEL = TRUE,
144static const int BACK = -1; // code depends on "-1" for array index 144 FORWARD = 1, // code depends on "1" for array index
145static const int LIMITED = 0; // how much of text[] in char_search 145 BACK = -1, // code depends on "-1" for array index
146static const int FULL = 1; // how much of text[] in char_search 146 LIMITED = 0, // how much of text[] in char_search
147 147 FULL = 1, // how much of text[] in char_search
148static const int S_BEFORE_WS = 1; // used in skip_thing() for moving "dot" 148
149static const int S_TO_WS = 2; // used in skip_thing() for moving "dot" 149 S_BEFORE_WS = 1, // used in skip_thing() for moving "dot"
150static const int S_OVER_WS = 3; // used in skip_thing() for moving "dot" 150 S_TO_WS = 2, // used in skip_thing() for moving "dot"
151static const int S_END_PUNCT = 4; // used in skip_thing() for moving "dot" 151 S_OVER_WS = 3, // used in skip_thing() for moving "dot"
152static const int S_END_ALNUM = 5; // used in skip_thing() for moving "dot" 152 S_END_PUNCT = 4, // used in skip_thing() for moving "dot"
153 S_END_ALNUM = 5 // used in skip_thing() for moving "dot"
154};
153 155
154typedef unsigned char Byte; 156typedef unsigned char Byte;
155 157