removed 76 bytes from stringin

This commit is contained in:
Øyvind Kolås 2011-08-03 16:50:22 +01:00 committed by Stefan `Sec` Zehl
parent b23caed454
commit 5244d1cda2
1 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ struct in{
bool done; bool done;
} s_input; } s_input;
void inputInit(char p[],char s[], uint8_t l, uint8_t as, uint8_t ae) { static void inputInit(char p[],char s[], uint8_t l, uint8_t as, uint8_t ae) {
//TODO: Check length! //TODO: Check length!
s_input.prompt = p; s_input.prompt = p;
s_input.line = s; s_input.line = s;
@ -30,7 +30,7 @@ void inputInit(char p[],char s[], uint8_t l, uint8_t as, uint8_t ae) {
} }
void inputMove() { static void inputMove() {
char *cur = s_input.line+s_input.pos+s_input.dcursor; char *cur = s_input.line+s_input.pos+s_input.dcursor;
switch(getInputWaitRepeat()){ switch(getInputWaitRepeat()){
case BTN_LEFT: case BTN_LEFT:
@ -78,7 +78,7 @@ void inputMove() {
} }
} }
void inputDraw() { static void inputDraw() {
char tmp[2]= {0,0}; char tmp[2]= {0,0};
lcdClear(); lcdClear();
DoString(0,0,s_input.prompt); DoString(0,0,s_input.prompt);
@ -89,7 +89,7 @@ void inputDraw() {
DoString(s_input.dcursor * CHARWIDTH, 40, "-"); DoString(s_input.dcursor * CHARWIDTH, 40, "-");
} }
void inputClean() { static void inputClean() {
for (int x=0;x<=s_input.maxlength;x++) { for (int x=0;x<=s_input.maxlength;x++) {
if (s_input.line[x] == 0) { if (s_input.line[x] == 0) {
x--; x--;