Lines Matching full:if
28 #if PY_MAJOR_VERSION < 3
38 #if PY_MAJOR_VERSION < 3
47 if (!PycStringIO) { in new_encode_buffer()
50 if (!PycStringIO) { in new_encode_buffer()
57 if (!PycStringIO) { in read_buffer()
60 if (!PycStringIO) { in read_buffer()
70 if (output_) { in ~ProtocolBase()
82 if (!PycStringIO) { in getEncodedValue()
85 if (!PycStringIO) { in getEncodedValue()
93 if (!PycStringIO) { in writeBuffer()
96 if (!PycStringIO) { in writeBuffer()
101 if (len < 0) { in writeBuffer()
105 if (static_cast<size_t>(len) != size) { in writeBuffer()
130 #if PY_MINOR_VERSION < 5
141 #if PY_MINOR_VERSION < 5
154 if (output_) {
174 if (output_->buf.capacity() < need) {
197 if (valid) \
212 if (INT_CONV_ERROR_OCCURRED(len)) { in DECLARE_OP_SCOPE()
215 if (!CHECK_RANGE(len, 0, (std::numeric_limits<int32_t>::max)())) { in DECLARE_OP_SCOPE()
227 if (INT_CONV_ERROR_OCCURRED(val)) { in parse_pyint()
230 if (!CHECK_RANGE(val, min, max)) { in parse_pyint()
241 if (expected != got) { in checkType()
250 if (len < 0) { in checkLengthLimit()
254 if (len > limit) { in checkLengthLimit()
263 if (len < 0) { in readBytes()
273 if (rlen == len) { in readBytes()
275 } else if (rlen == -1) { in readBytes()
281 if (!newiobuf) { in readBytes()
290 if (rlen == len) { in readBytes()
292 } else if (rlen == -1) { in readBytes()
304 if (input_.stringiobuf) { in prepareDecodeBufferFromTransport()
310 if (!stringiobuf) { in prepareDecodeBufferFromTransport()
313 if (!detail::input_check(stringiobuf.get())) { in prepareDecodeBufferFromTransport()
319 if (!refill_callable) { in prepareDecodeBufferFromTransport()
322 if (!PyCallable_Check(refill_callable.get())) { in prepareDecodeBufferFromTransport()
354 if (v == -1) { in encodeValue()
363 if (!parse_pyint(value, &val, (std::numeric_limits<int8_t>::min)(), in encodeValue()
374 if (!parse_pyint(value, &val, (std::numeric_limits<int16_t>::min)(), in encodeValue()
385 if (!parse_pyint(value, &val, (std::numeric_limits<int32_t>::min)(), in encodeValue()
396 if (INT_CONV_ERROR_OCCURRED(nval)) { in encodeValue()
400 if (!CHECK_RANGE(nval, (std::numeric_limits<int64_t>::min)(), in encodeValue()
412 if (nval == -1.0 && PyErr_Occurred()) { in encodeValue()
423 if (PyUnicode_Check(value)) { in encodeValue()
425 if (!nval) { in encodeValue()
434 if (!detail::check_ssize_t_32(len)) { in encodeValue()
445 if (!parse_set_list_args(&parsedargs, typeargs)) { in encodeValue()
450 if (!detail::check_ssize_t_32(len)) { in encodeValue()
454 if (!impl()->writeListBegin(value, parsedargs, static_cast<int32_t>(len)) || PyErr_Occurred()) { in encodeValue()
458 if (!iterator) { in encodeValue()
464 if (!encodeValue(item.get(), parsedargs.element_type, parsedargs.typeargs)) { in encodeValue()
474 if (!detail::check_ssize_t_32(len)) { in encodeValue()
479 if (!parse_map_args(&parsedargs, typeargs)) { in encodeValue()
483 if (!impl()->writeMapBegin(value, parsedargs, static_cast<int32_t>(len)) || PyErr_Occurred()) { in encodeValue()
491 if (!encodeValue(k, parsedargs.ktag, parsedargs.ktypeargs) in encodeValue()
501 if (!parse_struct_args(&parsedargs, typeargs)) { in encodeValue()
506 if (nspec == -1) { in encodeValue()
512 if (!scope) { in encodeValue()
517 if (spec_tuple == Py_None) { in encodeValue()
522 if (!parse_struct_item_spec(&parsedspec, spec_tuple)) { in encodeValue()
528 if (!instval) { in encodeValue()
532 if (instval.get() == Py_None) { in encodeValue()
537 if (!res) { in encodeValue()
582 if (len < 0) { in skip()
586 if (!skip(etype)) { in skip()
597 if (len < 0) { in skip()
601 if (!skip(ktype) || !skip(vtype)) { in skip()
610 if (!scope) { in skip()
616 if (!impl()->readFieldBegin(type, tag)) { in skip()
619 if (type == T_STOP) { in skip()
622 if (!skip(type)) { in skip()
649 if (!impl()->readBool(v)) { in decodeValue()
652 if (v) { in decodeValue()
660 if (!impl()->readI8(v)) { in decodeValue()
667 if (!impl()->readI16(v)) { in decodeValue()
674 if (!impl()->readI32(v)) { in decodeValue()
682 if (!impl()->readI64(v)) { in decodeValue()
685 // TODO(dreiss): Find out if we can take this fastpath always when in decodeValue()
687 if (CHECK_RANGE(v, LONG_MIN, LONG_MAX)) { in decodeValue()
695 if (!impl()->readDouble(v)) { in decodeValue()
704 if (len < 0) { in decodeValue()
707 if (isUtf8(typeargs)) { in decodeValue()
717 if (!parse_set_list_args(&parsedargs, typeargs)) { in decodeValue()
723 if (len < 0) { in decodeValue()
726 if (len > 0 && !checkType(etype, parsedargs.element_type)) { in decodeValue()
732 if (!ret) { in decodeValue()
738 if (!item) { in decodeValue()
741 if (use_tuple) { in decodeValue()
750 if (type == T_SET) { in decodeValue()
760 if (!parse_map_args(&parsedargs, typeargs)) { in decodeValue()
767 if (len > 0 && (!checkType(ktype, parsedargs.ktag) || !checkType(vtype, parsedargs.vtag))) { in decodeValue()
772 if (!ret) { in decodeValue()
778 if (!k) { in decodeValue()
782 if (!v) { in decodeValue()
785 if (PyDict_SetItem(ret.get(), k.get(), v.get()) == -1) { in decodeValue()
790 if (parsedargs.immutable) { in decodeValue()
791 if (!ThriftModule) { in decodeValue()
794 if (!ThriftModule) { in decodeValue()
799 if (!cls) { in decodeValue()
813 if (!parse_struct_args(&parsedargs, typeargs)) { in decodeValue()
835 if (spec_seq_len == -1) { in readStruct()
839 if (immutable) { in readStruct()
841 if (!kwargs) { in readStruct()
848 if (!scope) { in readStruct()
854 if (!impl()->readFieldBegin(type, tag)) { in readStruct()
857 if (type == T_STOP) { in readStruct()
860 if (tag < 0 || tag >= spec_seq_len) { in readStruct()
861 if (!skip(type)) { in readStruct()
869 if (item_spec == Py_None) { in readStruct()
870 if (!skip(type)) { in readStruct()
877 if (!parse_struct_item_spec(&parsedspec, item_spec)) { in readStruct()
880 if (parsedspec.type != type) { in readStruct()
881 if (!skip(type)) { in readStruct()
890 if (!fieldval) { in readStruct()
894 if ((immutable && PyDict_SetItem(kwargs.get(), parsedspec.attrname, fieldval.get()) == -1) in readStruct()
899 if (immutable) { in readStruct()
901 if (!args) { in readStruct()