gehe zum Quellcode dieser Datei
|
#define | MIN(a, b) ((a) < (b) ? (a) : (b)) |
|
#define | MAX(a, b) ((a) > (b) ? (a) : (b)) |
|
#define | FNMAX 107 |
|
#define | DCSIZE 16384 |
|
|
const unsigned char | lfnchpos [] ={30,28,24,22,20,18,16,14,9,7,5,3,1} |
|
#define MAX |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) > (b) ? (a) : (b)) |
#define MIN |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) < (b) ? (a) : (b)) |
int CHDKCloseDir |
( |
void * |
d) | |
|
void* CHDKOpenDir |
( |
const char * |
name) | |
|
int CHDKReadDir |
( |
void * |
d, |
|
|
void * |
dd |
|
) |
| |
Definiert in Zeile 169 der Datei chdk-dir.c.
186 if ( dir->
fe[0] == 0 )
190 if ( (dir->
feu[0] == 0xe5) || ((dir->
fe[11]&0xf) == 8) )
195 if ( !dir->
islfn && (dir->
fe[11] != 0xf) )
201 if ( (n>0) && (dir->
fe[n]==0x20) )
break;
205 if ( (dir->
fe[8]!=0x20) )
212 if ( (dir->
fe[n]==0x20) )
break;
218 return (
int)(dir->
fn);
220 if ( (dir->
islfn == 1) && (dir->
fe[11] != 0xf) )
223 unsigned char cs = 0;
225 for (n = 0; n < 11; n++)
227 cs = (((cs & 1) << 7) | ((cs & 0xfe) >> 1)) + dir->
feu[n];
230 if ( (cs == lfnchsum) && (dir->
lfnpos-1 <= dir->
mnl) )
243 else if ( dir->
fe[11] == 0xf )
248 (dir->
feu[13] != lfnchsum) ||
249 (dir->
fe[0] & 0x40) ||
266 if ( (dir->
fe[0] & 0x40) && (dir->
fe[0]-0x40 <= 8) )
268 dir->
islfn = dir->
fe[0] - 0x40;
272 lfnchsum = dir->
feu[13];
int check_fn_char |
( |
int |
i) | |
|
Definiert in Zeile 133 der Datei chdk-dir.c.
135 if ( i & 0xffffff80 )
return -1;
137 ((i >=
'0') && (i <=
'9')) ||
138 ((i >=
'@') && (i <=
'Z')) ||
139 ((i >=
'a') && (i <=
'z')) ||
140 ((i ==
'.') || (i ==
'-') || (i ==
'_') || (i ==
'(') || (i ==
')') || (i ==
'$') || (i ==
'&'))
145 if ( i != 0 )
return -1;
void read_lfn_entry |
( |
myDIR_s * |
dir) | |
|
Definiert in Zeile 149 der Datei chdk-dir.c.
156 if ((uch != 0xffff) && (uch != 0))
static int read_next_entry |
( |
myDIR_s * |
dir) | |
|
|
static |
static void rewind_entry |
( |
myDIR_s * |
dir) | |
|
|
static |
const unsigned char lfnchpos[] ={30,28,24,22,20,18,16,14,9,7,5,3,1} |