Lines Matching defs:pos
95 ah->pos = 0;
701 if (wsi->http.ah->pos <
705 if ((int)wsi->http.ah->pos >= (int)wsi->a.context->max_http_header_data - 1) {
714 lwsl_err("%s: pos %ld, limit %ld\n", __func__,
715 (unsigned long)wsi->http.ah->pos,
743 wsi->http.ah->frags[wsi->http.ah->nfrag].offset = wsi->http.ah->pos;
751 wsi->http.ah->data[wsi->http.ah->pos++] = *s;
774 wsi->http.ah->data[wsi->http.ah->pos++] = (char)c;
784 wsi->http.ah->data[wsi->http.ah->pos++] = '\0';
874 ah->frags[ah->nfrag].offset = ++ah->pos;
938 ah->pos--;
941 ah->pos--;
944 ah->data[ah->pos] != '/');
978 ah->frags[ah->nfrag].offset = ++ah->pos;
1024 int r, pos;
1040 (uint16_t)(ah->pos - ah->unk_value_pos));
1048 if (ah->pos != ah->unk_value_pos ||
1054 ah->data[ah->pos++] = (char)c;
1056 pos = ah->lextable_pos;
1092 ah->pos--;
1095 ah->pos--;
1098 ah->data[ah->pos] != '/');
1188 ah->unk_pos = ah->pos;
1200 ah->data[ah->pos++] = 0;
1207 ah->data[ah->pos++] = (char)c;
1208 pos = ah->lextable_pos;
1211 if (!wsi->mux_substream && pos < 0 && c == ':') {
1234 uhlen = (int)(ah->pos - (ah->unk_pos + UHO_NAME));
1240 ah->pos - (ah->unk_pos + UHO_NAME),
1247 (uint16_t)((ah->pos - ah->unk_pos) - UHO_NAME));
1249 ah->unk_value_pos = ah->pos;
1259 if (pos < 0)
1263 if (lextable_h1[pos] & (1 << 7)) {
1265 if ((lextable_h1[pos] & 0x7f) != c) {
1271 pos++;
1272 if (lextable_h1[pos] == FAIL_CHAR)
1275 ah->lextable_pos = (int16_t)pos;
1279 if (lextable_h1[pos] == FAIL_CHAR)
1283 if (lextable_h1[pos] < FAIL_CHAR) {
1291 ah->pos = ah->unk_pos;
1295 ah->lextable_pos = (int16_t)pos;
1299 if (lextable_h1[pos] == c) { /* goto */
1300 ah->lextable_pos = (int16_t)(pos +
1301 (lextable_h1[pos + 1]) +
1302 (lextable_h1[pos + 2] << 8));
1307 pos += 3;
1403 ah->pos = ah->unk_pos;
1451 ah->frags[ah->nfrag].offset = ah->pos;