Lines Matching defs:scp

4457     SelectedCells *scp;
4471 scp = &(screen->selected_cells[which]);
4507 if (scp->data_limit <= (unsigned) need) {
4510 free(scp->data_buffer);
4511 scp->data_buffer = line;
4512 scp->data_limit = (size_t) (need + 1);
4514 line = scp->data_buffer;
4565 scp->data_limit = have + 1;
4566 next = realloc(line, scp->data_limit);
4569 scp->data_length = 0;
4570 scp->data_limit = 0;
4572 scp->data_buffer = next;
4574 scp->data_length = have;
4577 visibleChars(scp->data_buffer, (unsigned) have)));
4585 SelectedCells *scp = &(screen->selected_cells[okSelectionCode(which)]);
4586 FreeAndNull(scp->data_buffer);
4587 scp->data_limit = 0;
4588 scp->data_length = 0;
4593 AppendStrToSelectionBuffer(SelectedCells * scp, Char *text, size_t len)
4596 size_t j = (scp->data_length + len);
4598 if (j + 1 >= scp->data_limit) {
4600 if (!scp->data_length) {
4603 line = (Char *) realloc(scp->data_buffer, k);
4607 scp->data_buffer = line;
4608 scp->data_limit = k;
4610 if (scp->data_buffer != NULL) {
4611 memcpy(scp->data_buffer + scp->data_length, text, len);
4612 scp->data_length += len;
4613 scp->data_buffer[scp->data_length] = 0;
4622 SelectedCells *scp = &(screen->selected_cells[okSelectionCode(which)]);
4650 AppendStrToSelectionBuffer(scp, &ch, (size_t) 1);
4657 AppendStrToSelectionBuffer(scp, &ch, (size_t) 1);
4664 AppendStrToSelectionBuffer(scp, &ch, (size_t) 1);
4682 SelectedCells * scp,
4703 char *the_data = (char *) scp->data_buffer;
4705 unsigned long remaining = scp->data_length;
4708 (long) scp->data_length,
4709 visibleChars(scp->data_buffer, (unsigned) scp->data_length)));
4716 if (memchr(the_data, 0, scp->data_length) != NULL) {
4718 result = calloc(scp->data_length + 1, sizeof(char));
4805 SelectedCells *scp;
4824 scp = &(screen->clipboard_data);
4827 scp = &(screen->selected_cells[AtomToSelection(dpy, *selection)]);
4830 data = scp->data_buffer;
4831 data_length = scp->data_length;
4880 _ConvertSelectionHelper(w, scp,
4887 _ConvertSelectionHelper(w, scp,
4894 _ConvertSelectionHelper(w, scp,
4901 _ConvertSelectionHelper(w, scp,
4924 _ConvertSelectionHelper(w, scp,
4931 _ConvertSelectionHelper(w, scp,
4940 _ConvertSelectionHelper(w, scp,
4955 result = SaveConvertedLength(value, scp->data_length);
5033 SelectedCells *scp;
5053 scp = &(screen->selected_cells[CutBufferToCode(cutbuffer)]);
5054 if (scp->data_length > limit) {
5056 (unsigned long) scp->data_length, cutbuffer));
5058 (unsigned long) scp->data_length, cutbuffer);
5065 unsigned long length = scp->data_length;
5066 Char *data = scp->data_buffer;
5082 scp = &(screen->selected_cells[CLIPBOARD_CODE]);
5083 if ((buf = (Char *) malloc((size_t) scp->data_length)) == NULL) {
5087 memcpy(buf, scp->data_buffer, scp->data_length);
5089 tcp->data_limit = scp->data_length;
5090 tcp->data_length = scp->data_length;
5093 scp = &(screen->selected_cells[which]);
5094 if (scp->data_length == 0) {
5114 (unsigned long) scp->data_length,
5115 visibleChars(scp->data_buffer,
5116 (unsigned) scp->data_length)));
5729 SelectedCells *scp = &(screen->selected_cells[PRIMARY_CODE]);
5730 SelectedCells save_selection = *scp;
5736 memset(scp, 0, sizeof(*scp));
5765 if (scp->data_limit && scp->data_buffer) {
5767 (int) scp->data_limit,
5768 scp->data_buffer));
5769 result = malloc(scp->data_limit + 1);
5771 memcpy(result, scp->data_buffer, scp->data_limit);
5772 result[scp->data_limit] = 0;
5774 free(scp->data_buffer);
5775 scp->data_limit = 0;