X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fselect-msw.c;h=7d11bd9b2f7faf1117f08af7d35900aff6d9e90d;hb=4f29597e4f3696a59bb08ffece07183c1568c4a5;hp=616f0d6b6f854fd65fe35abb753bc65dc826b00d;hpb=2416430cb588c7f7a7ca990d536c092f3af3a0b9;p=chise%2Fxemacs-chise.git- diff --git a/src/select-msw.c b/src/select-msw.c index 616f0d6..7d11bd9 100644 --- a/src/select-msw.c +++ b/src/select-msw.c @@ -29,169 +29,183 @@ Boston, MA 02111-1307, USA. */ #include #include "lisp.h" +#include "frame.h" #include "select.h" #include "console-msw.h" -DEFUN ("mswindows-set-clipboard", Fmswindows_set_clipboard, 1, 1, 0, /* -Copy STRING to the mswindows clipboard. -*/ - (string)) -{ - int rawsize, size, i; - unsigned char *src, *dst, *next; - HGLOBAL h = NULL; - - CHECK_STRING (string); - - /* Calculate size with LFs converted to CRLFs because - * CF_TEXT format uses CRLF delimited ASCIIZ */ - src = XSTRING_DATA (string); - size = rawsize = XSTRING_LENGTH (string) + 1; - for (i=0; i