From 6823fe8bd748dfe05090905adf9e19a34b2e4376 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 24 Sep 2002 12:50:45 +0000 Subject: updated comments for the function git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2394 a1c6a512-1295-4272-9138-f99709370657 --- apps/language.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'apps/language.c') diff --git a/apps/language.c b/apps/language.c index 614a4869d5..716ac69020 100644 --- a/apps/language.c +++ b/apps/language.c @@ -40,15 +40,15 @@ void lang_load(char *filename) filesize-=2; while(filesize>3) { - id = (ptr[0]<<8) | ptr[1]; - ptr+=2; - language_strings[id] = ptr; - while(*ptr) { + id = (ptr[0]<<8) | ptr[1]; /* get two-byte id */ + ptr+=2; /* pass the id */ + language_strings[id] = ptr; /* point to this string */ + while(*ptr) { /* pass the string */ filesize--; ptr++; } - filesize-=3; - ptr++; /* pass the terminating newline */ + filesize-=3; /* the id and the terminating zero */ + ptr++; /* pass the terminating zero-byte */ } } else { -- cgit v1.2.3