summaryrefslogtreecommitdiffstats
path: root/apps/language.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-09-24 12:50:45 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-09-24 12:50:45 +0000
commit6823fe8bd748dfe05090905adf9e19a34b2e4376 (patch)
treec0d12a04aa19e6a1bd254bc6c595dba188d07976 /apps/language.c
parent571e8a26e0360f30ad7dec3a59d96fcf784345ec (diff)
downloadrockbox-6823fe8bd748dfe05090905adf9e19a34b2e4376.tar.gz
rockbox-6823fe8bd748dfe05090905adf9e19a34b2e4376.tar.bz2
rockbox-6823fe8bd748dfe05090905adf9e19a34b2e4376.zip
updated comments for the function
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2394 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/language.c')
-rw-r--r--apps/language.c12
1 files changed, 6 insertions, 6 deletions
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 {