Lines Matching refs:item
182 if (this->len < PICODATA_ITEM_HEADSIZE) { /* item not in cb? */
185 PICODBG_DEBUG(("no item to get"));
187 } else { /* cb not empty, but not a valid item */
188 PICODBG_WARN(("problem getting item, incomplete head, underflow"));
195 /* if getting speech data in item */
197 /* check item type */
199 PICODBG_WARN(("item type mismatch for speech data: %c",
211 if (*blen > this->len) { /* item in cb not complete? */
212 PICODBG_WARN(("problem getting item, incomplete content, underflow; "
218 PICODBG_WARN(("problem getting item, overflow"));
223 /* if getting speech data in item */
225 /* skip item header */
234 /* all ok, now get item (or speech data only) */
245 PICODBG_DEBUG(("got item: %c|%d|%d|%d||", buf[PICODATA_ITEMIND_TYPE],
268 PICODBG_WARN(("problem putting item, underflow"));
274 PICODBG_WARN(("problem putting item, overflow"));
278 if (*blen > blenmax) { /* item in buf not completely accessible? */
279 PICODBG_WARN(("problem putting item, underflow"));
283 /* all ok, now put complete item */
286 PICODBG_DEBUG(("putting item: %c|%d|%d|%d||",
312 * Function: gets one item from 'this' and writes it on 'blenmax' sized 'buf'.
313 * gets one item from 'this' and writes the speech data to
315 * Returns : PICO_OK : one item was copied
317 * PICO_BUF_UNDERFLOW : 'this' doesn't contain a full/valid item
318 * PICO_BUF_OVERFLOW : 'buf[blenmax]' too small to hold item
374 PICODBG_WARN(("item type problem: %c", ch));
382 PICODBG_WARN(("item header problem"));
424 PICODBG_WARN(("problem getting item, overflow"));
426 PICODBG_WARN(("problem getting item, overflow"));
447 PICODBG_WARN(("problem putting item, underflow"));
451 PICODBG_WARN(("problem putting item, overflow"));
496 PICODBG_WARN(("item problem in inbuf"));
519 /* sets the len field in the header contained in the item in buf;
533 picoos_uint8 picodata_is_valid_item(const picoos_uint8 *item,
538 head.type = item[0];
539 head.info1 = item[1];
540 head.info2 = item[2];
541 head.len = item[3];
1045 const picoos_uint8 *item,
1053 if ((itemlenmax < 4) || (item == NULL)) {
1054 PICODBG_INFO_MSG(("invalid item\n"));
1061 ch = item[0];
1068 ch = item[1];
1070 switch (item[0]) {
1085 ch = item[2];
1087 switch (item[0]) {
1102 ch = item[3];
1106 if ((item[0] == PICODATA_ITEM_WSEQ_GRAPH) ||
1107 (item[0] == PICODATA_ITEM_TOKEN) ||
1108 (item[0] == PICODATA_ITEM_WORDGRAPH) ||
1109 ((item[0] == PICODATA_ITEM_CMD) && !((item[1] == PICODATA_ITEMINFO1_CMD_SPEED) ||
1110 (item[1] == PICODATA_ITEMINFO1_CMD_PITCH) ||
1111 (item[1] == PICODATA_ITEMINFO1_CMD_VOLUME) ||
1112 (item[1] == PICODATA_ITEMINFO1_CMD_SPELL) ||
1113 (item[1] == PICODATA_ITEMINFO1_CMD_SIL)))) {
1114 PICODBG_INFO_MSG_F(filterfn, ("%c", item[4 + i]));
1116 PICODBG_INFO_MSG_F(filterfn, ("%4d", item[4 + i]));
1127 if ((item[0] == PICODATA_ITEM_WORDPHON) ||
1128 (item[0] == PICODATA_ITEM_SYLLPHON) ||
1129 ((item[0] == PICODATA_ITEM_CMD) && (item[1] == PICODATA_ITEMINFO1_CMD_PHONEME))) {
1130 if (picokdbg_getPhoneSym(kdbg, item[4])) {
1132 for (j = 0; j < item[3]; j++) {
1134 picokdbg_getPhoneSym(kdbg, item[4 + j])));