Changeset 326 for SH_SHM/trunk/source/seed_io/seed_lib.c
- Timestamp:
- 02/17/2011 12:16:59 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SH_SHM/trunk/source/seed_io/seed_lib.c
r325 r326 3 3 * ========== 4 4 * 5 * $Revision: 16 4 $, $Date: 2011-02-16 10:01:41 +0100 (Mi, 16Feb 2011) $5 * $Revision: 165 $, $Date: 2011-02-17 12:03:57 +0100 (Do, 17 Feb 2011) $ 6 6 * 7 7 * SEED library … … 4013 4013 4014 4014 #define IDOFFSET 6 4015 #define DATCHARS "DQRM"4016 4015 4017 4016 … … 4053 4052 if (id1 == EOF || isdigit1 == FALSE) { 4054 4053 /* no SEED file, leave recsize zero */ 4055 } else if (strchr( DATCHARS,id1) != NULL && strchr(DATCHARS,id2) == NULL) {4054 } else if (strchr(Seed_C_DATCHARS,id1) != NULL && strchr(Seed_C_DATCHARS,id2) == NULL) { 4056 4055 /* definitely not 512 */ 4057 4056 *recsize = 4096; 4058 4057 *byteoff = 0; 4059 } else if (id1 == 'V' && strchr( DATCHARS,id2) != NULL && isdigit2 == TRUE) {4058 } else if (id1 == 'V' && strchr(Seed_C_DATCHARS,id2) != NULL && isdigit2 == TRUE) { 4060 4059 /* very likely 512 */ 4061 4060 *recsize = 512; … … 4064 4063 *recsize = 4096; 4065 4064 *byteoff = 0; /* this is a guess */ 4066 } else if (strchr( DATCHARS,id1) != NULL && strchr(DATCHARS,id2) != NULL) {4065 } else if (strchr(Seed_C_DATCHARS,id1) != NULL && strchr(Seed_C_DATCHARS,id2) != NULL) { 4067 4066 *byteoff = 0; 4068 4067 fseek( fp, 1024+IDOFFSET, 0 ); … … 4070 4069 fseek( fp, 1024+512+IDOFFSET, 0 ); 4071 4070 id2 = getc( fp ); 4072 if (strchr( DATCHARS,id1) != NULL && strchr(DATCHARS,id2) != NULL) {4071 if (strchr(Seed_C_DATCHARS,id1) != NULL && strchr(Seed_C_DATCHARS,id2) != NULL) { 4073 4072 *recsize = 512; 4074 } else if (strchr( DATCHARS,id1) != NULL && id2 == EOF) {4073 } else if (strchr(Seed_C_DATCHARS,id1) != NULL && id2 == EOF) { 4075 4074 *recsize = 512; 4076 4075 } else if (id1 == EOF) {
Note: See TracChangeset
for help on using the changeset viewer.