Lines Matching refs:buffer
114 { /* dpp: EAS_ReportEx(_EAS_SEVERITY_DETAIL, "PutBackChar '%c'\n", pData->buffer[pData->index]); */ }
143 static EAS_RESULT IMY_ReadLine (EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_HANDLE fileHandle, EAS_I8 *buffer, EAS_I32 *pStartLine);
144 static EAS_INT IMY_ParseLine (EAS_I8 *buffer, EAS_U8 *pIndex);
191 EAS_I8 buffer[MAX_LINE_SIZE+1];
200 if (IMY_ReadLine(pEASData->hwInstData, fileHandle, buffer, NULL) != EAS_SUCCESS)
204 if (IMY_ParseLine(buffer, &index) == TOKEN_BEGIN)
445 IMY_ReadLine(pEASData->hwInstData, pData->fileHandle, pData->buffer, &pData->startLine);
1361 c = pData->buffer[pData->index++];
1401 static void IMY_MetaData (S_IMELODY_DATA *pData, E_EAS_METADATA_TYPE metaType, EAS_I8 *buffer)
1409 /* copy data to host buffer */
1410 len = (EAS_I32) strlen((char*) buffer);
1413 strncpy((char*) pData->metadata.buffer, (char*) buffer, (size_t) len);
1414 pData->metadata.buffer[len] = 0;
1417 pData->metadata.callback(metaType, pData->metadata.buffer, pData->metadata.pUserData);
1470 if ((result = IMY_ReadLine(pEASData->hwInstData, pData->fileHandle, pData->buffer, &pData->startLine)) != EAS_SUCCESS)
1478 token = IMY_ParseLine(pData->buffer, &pData->index);
1489 { /* dpp: EAS_ReportEx(_EAS_SEVERITY_WARNING, "Invalid FORMAT field '%s'\n", pData->buffer); */ }
1502 { /* dpp: EAS_ReportEx(_EAS_SEVERITY_WARNING, "Invalid VERSION field '%s'\n", pData->buffer); */ }
1513 IMY_MetaData(pData, EAS_METADATA_TITLE, pData->buffer + pData->index);
1517 IMY_MetaData(pData, EAS_METADATA_AUTHOR, pData->buffer + pData->index);
1537 { /* dpp: EAS_ReportEx(_EAS_SEVERITY_WARNING, "Error in style command: %s\n", pData->buffer); */ }
1549 { /* dpp: EAS_ReportEx(_EAS_SEVERITY_WARNING, "Error in volume command: %s\n", pData->buffer); */ }
1569 { /* dpp: EAS_ReportEx(_EAS_SEVERITY_WARNING, "Ignoring unrecognized token in iMelody file: %s\n", pData->buffer); */ }
1599 c = pData->buffer[pData->index++];
1601 /* buffer empty, read more */
1609 pData->buffer[0] = 0;
1610 if (IMY_ReadLine(hwInstData, pData->fileHandle, pData->buffer, &pData->startLine) != EAS_SUCCESS)
1619 if (IMY_ParseLine(pData->buffer, &index) == TOKEN_END)
1624 pData->buffer[0] = 0;
1658 static EAS_RESULT IMY_ReadLine (EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_HANDLE fileHandle, EAS_I8 *buffer, EAS_I32 *pStartLine)
1676 buffer[0] = 0;
1690 /* store characters in buffer */
1692 buffer[i++] = c;
1694 buffer[i] = 0;
1697 { /* dpp: EAS_ReportEx(_EAS_SEVERITY_DETAIL, "IMY_ReadLine read %s\n", buffer); */ }
1719 static EAS_INT IMY_ParseLine (EAS_I8 *buffer, EAS_U8 *pIndex)
1738 if (tokens[i][j] != ToUpper(buffer[j]))