Subversion Repositories filter_foundry

Rev

Rev 421 | Rev 444 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 421 Rev 433
Line 198... Line 198...
198
        uint32_t len;
198
        uint32_t len;
199
        char* val;
199
        char* val;
200
        int format_version = -1;
200
        int format_version = -1;
201
        int i;
201
        int i;
202
 
202
 
-
 
203
        UNREFERENCED_PARAMETER(reason);
-
 
204
 
203
        if (FSpOpenDF(&sfr->sfFile, fsRdPerm, &refnum) == noErr) {
205
        if (FSpOpenDF(&sfr->sfFile, fsRdPerm, &refnum) == noErr) {
204
                if ((h = readfileintohandle(refnum))) {
206
                if ((h = readfileintohandle(refnum))) {
205
                        char* q = (char*)PILOCKHANDLE(h, false);
207
                        char* q = (char*)PILOCKHANDLE(h, false);
206
 
208
 
207
                        len = *((uint32_t*)q);
209
                        len = *((uint32_t*)q);
Line 694... Line 696...
694
 
696
 
695
        Handle h;
697
        Handle h;
696
        Boolean res = false;
698
        Boolean res = false;
697
        FILEREF refnum;
699
        FILEREF refnum;
698
 
700
 
-
 
701
        UNREFERENCED_PARAMETER(reason);
-
 
702
 
699
        if (!fileHasExtension(sfr, ".txt")) return false;
703
        if (!fileHasExtension(sfr, ".txt")) return false;
700
 
704
 
701
        if (FSpOpenDF(&sfr->sfFile, fsRdPerm, &refnum) == noErr) {
705
        if (FSpOpenDF(&sfr->sfFile, fsRdPerm, &refnum) == noErr) {
702
                if ((h = readfileintohandle(refnum))) {
706
                if ((h = readfileintohandle(refnum))) {
703
                        FILECOUNT count = PIGETHANDLESIZE(h);
707
                        FILECOUNT count = PIGETHANDLESIZE(h);