X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fselect-msw.c;h=7d11bd9b2f7faf1117f08af7d35900aff6d9e90d;hb=2cbece6401b2279497293e6dc54cda607f49db2f;hp=616f0d6b6f854fd65fe35abb753bc65dc826b00d;hpb=b540e469915b0c7df8ca3036e4ed8a5a5d4e0fce;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