Lines Matching defs:rd
823 ResourceDirectory rd = NULL;
837 rd = ParseHeader(f, dir, fullName);
839 if (rd != NULL) {
840 if (resDir == NULL) resDir = rd;
841 else lastResDir->next = rd;
842 lastResDir = rd;
843 if (readFunc != NULL) (*readFunc) (f, rd, data);
848 return rd;
862 ResourceDirectory rd;
871 rd = ReadAndStoreFile(dirName, PSRES_NAME, len, readFunc, data);
873 if (rd != 0 && rd->exclusive) return buf.st_mtime;
1094 static int ReadEverything(f, rd, data)
1096 ResourceDirectory rd;
1105 for (i = 0; i < rd->typeCount; i++) {
1106 t = &rd->types[i];
1112 if (ParseResourceSection(f, rd, t, (char *) NULL, 1)) {
1115 PSResFileWarningHandler(rd->directory, buf);
1119 if (SkipResourceSection(f, rd, t, 1)) {
1122 PSResFileWarningHandler(rd->directory, buf);
1132 if (ParseResourceSection(f, rd, t, (char *) NULL, 0)) {
1135 PSResFileWarningHandler(rd->directory, buf);
1142 PSResFileWarningHandler(rd->directory,
1151 static int ReadType(f, rd, type)
1153 ResourceDirectory rd;
1163 for (i = 0; i < rd->typeCount; i++) {
1164 t = &rd->types[i];
1170 if (ParseResourceSection(f, rd, t, (char *) NULL, 1)) {
1173 PSResFileWarningHandler(rd->directory, buf);
1176 } else if (SkipResourceSection(f, rd, t, 1)) {
1179 PSResFileWarningHandler(rd->directory, buf);
1189 if (ParseResourceSection(f, rd, t, (char *) NULL, 0)){
1192 PSResFileWarningHandler(rd->directory, buf);
1195 } else if (SkipResourceSection(f, rd, t, 0)) {
1198 PSResFileWarningHandler(rd->directory, buf);
1205 PSResFileWarningHandler(rd->directory,
1214 static int ReadName(f, rd, data)
1216 ResourceDirectory rd;
1227 for (i = 0; i < rd->typeCount; i++) {
1228 t = &rd->types[i];
1233 if (ParseResourceSection(f, rd, t, tn->name, 1)) {
1236 PSResFileWarningHandler(rd->directory, buf);
1239 } else if (SkipResourceSection(f, rd, t, 1)) {
1242 PSResFileWarningHandler(rd->directory, buf);
1252 PSResFileWarningHandler(rd->directory,
1257 if (ParseResourceSection(f, rd, t, tn->name, 0)) {
1260 PSResFileWarningHandler(rd->directory, buf);
1263 } else if (SkipResourceSection(f, rd, t, 0)) {
1266 PSResFileWarningHandler(rd->directory, buf);
1273 PSResFileWarningHandler(rd->directory,
1310 ResourceDirectory rd;
1322 for (rd = resDir; rd != NULL; rd = rd->next) {
1324 for (i = 0; i < rd->typeCount; i++) {
1325 rt = rd->types + i;
1332 f = fopen(rd->directory, "r");
1339 if (fseek(f, rd->endOfHeader, SEEK_SET) != -1) {
1342 (void) ReadEverything(f, rd, (char *) NULL);
1345 (void) ReadType(f, rd, resourceType);
1350 (void) ReadName(f, rd, (char *) &tn);
1353 } else (*PSResFileWarningHandler)(rd->directory,
1366 ResourceDirectory rd;
1374 for (rd = resDir; rd != NULL; rd = rd->next) {
1375 for (i = 0; i < rd->typeCount; i++) {
1376 rt = rd->types + i;
1395 for (rd = resDir; rd != NULL; rd = rd->next) {
1396 for (i = 0; i < rd->typeCount; i++) {
1397 rt = rd->types + i;
1573 static int Enumerate(f, rd, data)
1575 ResourceDirectory rd;
1585 for (i = 0; i < rd->typeCount; i++) {
1586 t = &rd->types[i];
1591 if (EnumerateResourceSection(f, rd, t, s, 1)) {
1594 PSResFileWarningHandler(rd->directory, buf);
1598 } else if (SkipResourceSection(f, rd, t, 1)) {
1601 PSResFileWarningHandler(rd->directory, buf);
1611 if (EnumerateResourceSection(f, rd, t, s, 0)) return 1;
1613 } else if (SkipResourceSection(f, rd, t, 0)) return 1;