static DATA_OPERANDS_PROCESSOR(processDelegateOperands) { DataOperand type; if (getDataOperand(file, &type, "delegate type")) { if (isKeyword(WS_C("FILE"), type.characters, type.length)) { DataOperand name; if (getDataOperand(file, &name, "file name")) { return includeDataFile(file, name.characters, name.length); } } else { return includeDataFile(file, type.characters, type.length); } } return 1; }
static int processDelegateOperands (DataFile *file, void *data) { DataOperand type; if (getDataOperand(file, &type, "delegate type")) { if (isKeyword(WS_C("FILE"), type.characters, type.length)) { DataOperand name; if (getDataOperand(file, &name, "file name")) { return includeDataFile(file, name.characters, name.length); } } else { return includeDataFile(file, type.characters, type.length); } } return 1; }