40 |
#include "buffer.h" |
#include "buffer.h" |
41 |
#include "charset.h" |
#include "charset.h" |
42 |
#include "coding.h" |
#include "coding.h" |
43 |
|
#include "composite.h" |
44 |
|
|
45 |
/* If ever some function outside this file will need to call any |
/* If ever some function outside this file will need to call any |
46 |
clipboard-related function, the following prototypes and constants |
clipboard-related function, the following prototypes and constants |
661 |
coding.dst_multibyte = 1; |
coding.dst_multibyte = 1; |
662 |
Vnext_selection_coding_system = Qnil; |
Vnext_selection_coding_system = Qnil; |
663 |
coding.mode |= CODING_MODE_LAST_BLOCK; |
coding.mode |= CODING_MODE_LAST_BLOCK; |
664 |
|
/* We explicitely disable composition handling because selection |
665 |
|
data should not contain any composition sequence. */ |
666 |
|
coding.composing = COMPOSITION_DISABLED; |
667 |
truelen = get_clipboard_data (CF_OEMTEXT, htext, data_size, 1); |
truelen = get_clipboard_data (CF_OEMTEXT, htext, data_size, 1); |
668 |
bufsize = decoding_buffer_size (&coding, truelen); |
bufsize = decoding_buffer_size (&coding, truelen); |
669 |
buf = (unsigned char *) xmalloc (bufsize); |
buf = (unsigned char *) xmalloc (bufsize); |