Lines Matching refs:oself
389 Oobject *oself; in O_cwrite() local
393 oself = (Oobject *)self; in O_cwrite()
401 if (oself->pos >= PY_SSIZE_T_MAX - len) { in O_cwrite()
406 newpos = oself->pos + len; in O_cwrite()
407 if (newpos >= oself->buf_size) { in O_cwrite()
408 size_t newsize = oself->buf_size; in O_cwrite()
414 newbuf = (char*)realloc(oself->buf, newsize); in O_cwrite()
419 oself->buf_size = (Py_ssize_t)newsize; in O_cwrite()
420 oself->buf = newbuf; in O_cwrite()
423 if (oself->string_size < oself->pos) { in O_cwrite()
432 memset(oself->buf + oself->string_size, '\0', in O_cwrite()
433 (oself->pos - oself->string_size) * sizeof(char)); in O_cwrite()
436 memcpy(oself->buf + oself->pos, c, len); in O_cwrite()
438 oself->pos = newpos; in O_cwrite()
440 if (oself->string_size < oself->pos) { in O_cwrite()
441 oself->string_size = oself->pos; in O_cwrite()