Home | History | Annotate | Download | only in tf_daemon

Lines Matching refs:pCurrent

139    uint8_t* pCurrent = pContext->pManifestContent + pContext->nOffset;
148 if (pCurrent == pContext->pManifestContent)
153 && pCurrent[0] == 0xEF
154 && pCurrent[1] == 0xBB
155 && pCurrent[2] == 0xBF)
157 pCurrent += 3;
161 while (pCurrent < pEnd)
163 if (*pCurrent == (uint8_t)'#')
166 pCurrent++;
167 while (pCurrent < pEnd && *pCurrent != CHAR_LF && *pCurrent != CHAR_CR)
169 if (*pCurrent == 0)
174 pCurrent++;
177 else if (*pCurrent == CHAR_CR)
180 pCurrent++;
181 if (pCurrent < pEnd && *pCurrent == CHAR_LF)
183 pCurrent++;
187 else if (*pCurrent == CHAR_LF)
189 pCurrent++;
192 else if (*pCurrent == ' ' || *pCurrent == '\t')
196 pCurrent++;
197 while (pCurrent < pEnd)
199 if (*pCurrent == CHAR_LF || *pCurrent == CHAR_CR)
204 if (! (*pCurrent == ' ' || *pCurrent == '\t'))
206 LOG_ERROR(pContext, "A line starting with whitespaces must contain only whitespaces. Illegal character: 0x%02X", *pCurrent);
209 pCurrent++;
219 if (pCurrent >= pEnd)
228 if (*pCurrent == '[')
231 pCurrent++;
232 *ppName = pCurrent;
237 if (pCurrent >= pEnd)
242 if (*pCurrent == ']')
245 *pNameLength = pCurrent - *ppName;
246 pCurrent++;
250 while (pCurrent < pEnd)
252 if (*pCurrent == ' ' || *pCurrent == '\t')
254 pCurrent++;
256 else if (*pCurrent == CHAR_CR || *pCurrent == CHAR_LF)
263 LOG_ERROR(pContext, "Non-space character follows a sectino header: 0x02X", *pCurrent);
266 pContext->nOffset = pCurrent - pContext->pManifestContent;
271 if (!static_checkCharacter(*pCurrent, CHARACTER_SECTION_NAME))
273 LOG_ERROR(pContext, "Invalid character for a section name: 0x%02X", *pCurrent);
276 pCurrent++;
288 *ppName = pCurrent;
291 if (!static_checkCharacter(*pCurrent, CHARACTER_NAME_FIRST))
293 LOG_ERROR(pContext, "Invalid first character for a property name: 0x%02X", *pCurrent);
296 pCurrent++;
297 pLastNonWhitespaceChar = pCurrent;
300 if (pCurrent == pEnd)
305 if (*pCurrent == ':')
314 if (*pCurrent == ' ' || *pCurrent == '\t')
316 pCurrent++;
320 if (!static_checkCharacter(*pCurrent, CHARACTER_NAME_SUBSEQUENT))
322 LOG_ERROR(pContext, "Invalid character for a property name: 0x%02X", *pCurrent);
328 if (pCurrent != pLastNonWhitespaceChar)
334 pCurrent++;
335 pLastNonWhitespaceChar = pCurrent;
338 pCurrent++;
340 while (pCurrent < pEnd && (*pCurrent == ' ' || *pCurrent == '\t'))
342 pCurrent++;
344 *ppValue = pCurrent;
345 pLastNonWhitespaceChar = pCurrent-1;
350 while (pCurrent < pEnd)
353 x = *pCurrent;
465 if (*pCurrent == CHAR_CR)
470 pCurrent++;
471 if (pCurrent < pEnd && *pCurrent == CHAR_LF)
473 pCurrent++;
479 else if (*pCurrent == CHAR_LF)
483 pCurrent++;
489 if (*pCurrent != ' ' && *pCurrent != CHAR_TAB)
492 pLastNonWhitespaceChar = pCurrent;
494 pCurrent++;
507 pContext->nOffset = pCurrent - pContext->pManifestContent;