updated comments for the function

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2394 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-09-24 12:50:45 +00:00
parent 571e8a26e0
commit 6823fe8bd7

View file

@ -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 {