File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -171,9 +171,10 @@ static struct KbCmd endCMD() {
171
171
typedef void (* KeyPressHandler )(struct PS2Buf_t );
172
172
typedef int (* ExecFunc )(struct KbCmd , int * , KeyPressHandler );
173
173
174
- static void baseKeyHandler (struct PS2Buf_t kb ) {
175
- vgaEditor (kb );
176
- }
174
+ // Commented out to avoid gcc complaining about it being unused
175
+ // static void baseKeyHandler(struct PS2Buf_t kb) {
176
+ // vgaEditor(kb);
177
+ // }
177
178
178
179
static int baseExec (struct KbCmd cmd , int * idx , KeyPressHandler kp ) {
179
180
switch (cmd .cmd ) {
Original file line number Diff line number Diff line change @@ -94,12 +94,12 @@ int shiftTest() {
94
94
95
95
// Word type testing
96
96
int wordTest () {
97
- ASSERT (strncmp ("test" , buff , 5 ))
97
+ ASSERT (strncmp ("test" , buff , 5 ) == 0 )
98
98
return 0 ;
99
99
}
100
100
101
101
int complexWordTest () {
102
- ASSERT (strncmp ("This is a very Loong word$%@^@\\" , buff , 32 ))
102
+ ASSERT (strncmp ("This is a very Loong word$%@^@\\" , buff , 32 ) == 0 )
103
103
return 0 ;
104
104
}
105
105
@@ -133,10 +133,14 @@ void test_main() {
133
133
// Word type test
134
134
funcCMD (wordTestStart ),
135
135
typeWordCMD ("test" ),
136
+ funcCMD (wordTest ),
136
137
funcCMD (wordTestEnd ),
137
138
139
+ funcCMD (resetBuff ),
140
+
138
141
funcCMD (complexWordTestStart ),
139
142
typeWordCMD ("This is a very Loong word$%@^@\\" ),
143
+ funcCMD (complexWordTest ),
140
144
funcCMD (complexWordTestEnd ),
141
145
142
146
endCMD (),
You can’t perform that action at this time.
0 commit comments