mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
571e8a26e0
commit
6823fe8bd7
1 changed files with 6 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue