Lines Matching +defs:ind +defs:token
74 uint16_t ind;
116 ind = _ti_decode_16(&cap);
119 !_ti_encode_buf_id_num(&tic->nums, ind, num,
194 _ti_find_cap(TIC *tic, TBUF *tbuf, char type, short ind)
205 if ((short)num == ind)
525 char esc, *token;
534 for (token = *cap;
553 return token;
557 _ti_encode_buf_id_num(TBUF *tbuf, int ind, int num, size_t len)
561 _ti_encode_buf_16(tbuf, ind);
571 _ti_encode_buf_id_count_str(TBUF *tbuf, int ind, const void *buf, size_t len)
575 _ti_encode_buf_16(tbuf, ind);
582 _ti_encode_buf_id_flags(TBUF *tbuf, int ind, int flag)
586 _ti_encode_buf_16(tbuf, ind);
595 char *token, *p, *e, *name, *desc, *alias;
598 short ind;
657 for (token = _ti_get_token(&cap, ',');
658 token != NULL && *token != '\0';
659 token = _ti_get_token(&cap, ','))
662 if (!(flags & TIC_COMMENT) && token[0] == '.')
666 if (token[0] == 'O' && token[1] == 'T') {
669 token += 2;
673 p = strchr(token, '=');
677 ind = (short)_ti_strindex(token);
678 if (ind != -1 &&
679 _ti_find_cap(tic, &tic->strs, 's', ind) != NULL)
684 if (encode_string(tic->name, token,
689 tic->name, token);
694 tic->name, token);
698 if (ind == -1) {
699 if (!_ti_store_extra(tic, 1, token, 's', -1, -2,
704 ind, buf.buf, buf.bufpos))
711 p = strchr(token, '#');
715 ind = (short)_ti_numindex(token);
716 if (ind != -1 &&
717 _ti_find_cap(tic, &tic->nums, 'n', ind) != NULL)
723 tic->name, token);
728 tic->name, token, cnum);
740 if (ind == -1) {
741 if (!_ti_store_extra(tic, 1, token, 'n', -1,
746 ind, num, _ti_numsize(tic)))
753 len = strlen(token) - 1;
754 if (token[len] == '@') {
756 token[len] = '\0';
758 ind = (short)_ti_flagindex(token);
759 if (ind == -1 && flag == CANCELLED_BOOLEAN) {
760 if ((ind = (short)_ti_numindex(token)) != -1) {
761 if (_ti_find_cap(tic, &tic->nums, 'n', ind)
764 if (!_ti_encode_buf_id_num(&tic->nums, ind,
768 } else if ((ind = (short)_ti_strindex(token)) != -1) {
769 if (_ti_find_cap(tic, &tic->strs, 's', ind)
773 &tic->strs, ind, 0, sizeof(uint16_t)))
778 if (ind == -1) {
779 if (!_ti_store_extra(tic, 1, token, 'f', flag, 0, NULL,
782 } else if (_ti_find_cap(tic, &tic->flags, 'f', ind) == NULL) {
783 if (!_ti_encode_buf_id_flags(&tic->flags, ind, flag))