annotate notes.txt @ 5932:d2c2d83dbb52 cygwin

working with new Xpm.dll
author Henry Thompson <ht@markup.co.uk>
date Wed, 09 Dec 2015 15:50:11 +0000
parents 8955a38b8ecb
children c1e8f3294298
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5920
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
1 Brute-forced a set of changes which allowed
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
2 make unicode-encapsulate
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
3 to work
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
4 1) Patched make-mswin-unicode.pl to match macros with pointer return types;
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
5 2) Updated intl-encap-win32.c to deal with
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
6 a) added functions;
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
7 b) refactoring of w32api include files.
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
8
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
9 Renamed DEVICE_TYPE to DEVICE_TYPE_X in device-impl.h and everywhere
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
10 it is used to avoid collision with DEVICE_TYPE in winioctl.h
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
11
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
12 Minimal fixes to get to compile wrt int vs. intptr_t in
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
13 event-msw.c
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
14
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
15 event-msw.c:67:3: error: #error Something is wrong -- you are neither
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
16 Windows native (possibly MinGW) nor Cygwin. # error Something is
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
17 wrong -- you are neither Windows native (possibly MinGW) nor Cygwin.
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
18
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
19 Ah, need a more up-to-date config.{sub,guess}, got one from somewhere
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
20 dated timestamp='2013-06-10'
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
21
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
22 Copy src/s/cygwin32.h to cygwin64.h and src/m/intel386.h to x86_64.h
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
23
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
24 And a configure.ac which recognises cygwin64
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
25
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
26 Remove cygwin_conv_to_posix_path from lib-src/gnuclient.c
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
27
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
28 Replace calls to qxeGetWindowLong(... GWL_..) with
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
29 qxeGetWindowLongPtr(... GWLP_...) (w. LONG_PTR result if used)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
30 after re-making unicode-encapsulate
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
31 And one LONG l = qxeGetWindowLong (hwnd, XWL_FRAMEOBJ) to LONG_PTR l = qxeGetWindowLongPtr (hwnd, XWL_FRAMEOBJ)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
32
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
33 Ah, several bugs in new header files in w32api, required some
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
34 additions to wfun_re in make-mswin-unicode.pl
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
35
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
36 That's enough to get event-msw.c to compile, although there are some
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
37 size-related warnings.
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
38
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
39 similar problem in frame-msw.c:
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
40 qxeSetClassLong (FRAME_MSWINDOWS_HANDLE (f), GCL_HICON
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
41
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
42 and in glyphs-msw.c:
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
43 qxeGetWindowLong
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
44 (FRAME_MSWINDOWS_HANDLE (XFRAME (frame)),
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
45 GWL_HINSTANCE),
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
46
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
47 and scrollbar-msw.c
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
48 also
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
49 (void *) opaque =
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
50 (void *)qxeGetWindowLong (SCROLLBAR_MSW_HANDLE (sb), GWL_USERDATA);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
51
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
52 LONG_PTR opaque =
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
53 qxeGetWindowLongPtr (SCROLLBAR_MSW_HANDLE (sb), GWLP_USERDATA);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
54
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
55 and dialog-msw.c:197:31: error: ‘DWL_USER’ undeclared (first use in this function)
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
56 qxeSetWindowLong (hwnd, DWL_USER, l_param);
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
57
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
58 Compiles all the way through, links OK, temacs runs!
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
59 Build completes
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
60 xemacs -nw works
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
61 but xemacs as such does not:
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
62 > ./xemacs
0f2338afbabf Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff changeset
63 Fatal error: assertion failed, file event-msw.c, line 4149, !NILP (Vmswindows_frame_being_created)
5921
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
64 --------------
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
65 console-msw.c:116:3: warning: format '%ld' expects argument of type
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
66 'long int', but argument 3 has type 'DWORD' [-Wformat=]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
67 resolution: cast the DWORDs to long
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
68 ----
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
69 event-msw.c: In function 'mswindows_wnd_proc':
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
70 event-msw.c:2741:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
71 ((LCID) GetKeyboardLayout (0) & 0xFFFF),
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
72 cast to intptr_t first
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
73
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
74 event-msw.c:2825:50: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
75 virtual_key = qxeMapVirtualKeyEx (scan, 1, (HKL) lcid);
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
76 cast to intptr_t first
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
77 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
78 event-msw.c:2839:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
79 (HKL) lcid);
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
80 ^ ditto
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
81
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
82 event-msw.c:2861:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
83 (HKL) lcid);
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
84 ^ ditto
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
85
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
86 [I _really_ don't understand the size hacking going on between LCIDs
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
87 and HKLs here!]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
88 event-msw.c: In function 'emacs_mswindows_remove_timeout':
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
89 event-msw.c:4200:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
90 (void *) id, MECR_DEALLOCATE_EVENT);
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
91 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
92 This is a hack!!! Use intptr_t instead, still a hack.
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
93
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
94
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
95 frame-msw.c: In function ‘mswindows_init_frame_1’:
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
96 frame-msw.c:274:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
97 qxeSetWindowLong (hwnd, XWL_FRAMEOBJ, (LONG)STORE_LISP_IN_VOID (frame_obj));
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
98 intptr_t
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
99
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
100 frame-msw.c: In function ‘mswindows_get_mouse_position’:
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
101 frame-msw.c:554:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
102 *frame = GET_LISP_FROM_VOID ((void *) qxeGetWindowLong (hwnd, XWL_FRAMEOBJ));
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
103 qxeGetWindowLongPtr (hwnd, XWL_FRAMEOBJ
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
104
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
105 frame-msw.c: In function ‘mswindows_get_frame_parent’:
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
106 frame-msw.c:822:36: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
107 parent = GET_LISP_FROM_VOID ((void *) qxeGetWindowLong (hwnd, XWL_FRAMEOBJ));
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
108 ditto
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
109
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
110 glyphs-msw.c: In function 'mswindows_widget_instantiate':
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
111 glyphs-msw.c:2261:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
112 (HMENU)id, /* No menu */
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
113 intptr_t id = -1;
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
114
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
115 menubar-msw.c: In function 'empty_menu':
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
116 menubar-msw.c:98:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
117 #define EMPTY_ITEM_ID ((UINT)STORE_LISP_IN_VOID (Qunbound))
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
118 menubar-msw.c:181:49: note: in expansion of macro 'EMPTY_ITEM_ID'
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
119 qxeAppendMenu (menu, MF_STRING | MF_GRAYED, EMPTY_ITEM_ID,
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
120 resolved:#define EMPTY_ITEM_ID ((UINT)STORE_LISP_IN_VOID (Qunbound))
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
121 intptr_t
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
122
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
123 dialog-msw.c:764:9: warning: passing argument 4 of 'qxeCreateDialogIndirectParam' from incompatible pointer type [enabled by default]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
124 (LPARAM) STORE_LISP_IN_VOID (obj));
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
125 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
126 intptr_t
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
127
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
128 toolbar-msw.c: In function 'mswindows_clear_toolbar':
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
129 toolbar-msw.c:100:55: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
130 qxeSendMessage (toolbarwnd, TB_GETIMAGELIST, 0, (LONG) &ilist);
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
131 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
132 intptr_t
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
133 toolbar-msw.c: In function 'mswindows_output_toolbar':
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
134 toolbar-msw.c:370:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
135 (HMENU)(TOOLBAR_ID_BIAS + pos),
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
136 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
137 (intptr_t)
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
138 In file included from mule-coding.c:32:0:
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
139 mule-coding.c: In function 'parse_charset_conversion_specs':
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
140
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
141 win32.c: In function 'mswindows_lisp_error_1':
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
142 win32.c:259:9: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'DWORD' [-Wformat=]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
143 errnum, GetLastError ());
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
144 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
145 (long)
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
146 win32.c: In function 'Fmswindows_shell_execute':
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
147 win32.c:352:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
148 ret = (int) qxeShellExecute (NULL, opext, doc, parmext, path,
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
149 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
150 intptr-t
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
151 win32.c: In function 'setitimer_helper':
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
152 win32.c:847:7: warning: passing argument 3 of 'timeSetEvent' from incompatible pointer type [enabled by default]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
153 event_type);
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
154 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
155 resoluion: pblm is elsewhere?
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
156 setitimer_helper_proc (UINT UNUSED (uID), UINT UNUSED (uMsg), DWORD[_PTR] dwUser,
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
157 DWORD[_PTR] UNUSED (dw1), DWORD[_PTR] UNUSED (dw2))
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
158
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
159 > make clean, try again
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
160
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
161 /usr/local/src/xemacs-21.5-64bit/lib-src/winclient.c: In function 'doFile':
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
162 /usr/local/src/xemacs-21.5-64bit/lib-src/winclient.c:299:4: warning: pointer targ
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
163 ets in passing argument 1 of 'DdeClientTransaction' differ in signedness [-Wpoint
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
164 er-sign]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
165 0, XTYP_EXECUTE, TRANSACTION_TIMEOUT, NULL);
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
166 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
167 In file included from /usr/local/src/xemacs-21.5-64bit/lib-src/winclient.c:27:0:
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
168 /usr/include/w32api/ddeml.h:208:19: note: expected 'LPBYTE' but argument is of ty
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
169 pe 'char *'
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
170 HDDEDATA WINAPI DdeClientTransaction(LPBYTE pData,DWORD cbData,HCONV hConv,HSZ
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
171 hszItem,UINT wFmt,UINT wType,DWORD dwTimeout,LPDWORD pdwResult);
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
172 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
173 [note it's arg1 that's the problem, cast to LPBYTE]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
174
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
175 event-msw.c:4200:6: warning: passing argument 4 of 'map_event_chain_remove' makes pointer from integer without a cast [enabled by default]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
176 (intptr_t)id, MECR_DEALLOCATE_EVENT);
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
177 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
178 In file included from event-msw.c:72:0:
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
179 events.h:956:5: note: expected 'void *' but argument is of type 'long int'
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
180 int map_event_chain_remove (int (*fn) (Lisp_Object ev, void *user_data),
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
181 resolution: hack, but cast _again_, i.e. (void *)(intptr_t)
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
182
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
183 dialog-msw.c:764:9: warning: passing argument 4 of 'qxeCreateDialogIndirectParam' from incompatible pointer type [enabled by default]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
184 (intptr_t) STORE_LISP_IN_VOID (obj));
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
185 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
186 In file included from syswindows.h:642:0,
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
187 from console-msw.h:39,
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
188 from console-msw-impl.h:37,
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
189 from dialog-msw.c:37:
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
190 intl-auto-encap-win32.h:627:6: note: expected 'DLGPROC' but argument is of type 'BOOL (*)(struct HWND__ *, UINT, WPARAM, LPARAM)'
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
191 HWND qxeCreateDialogIndirectParam (HINSTANCE hInstance, LPCDLGTEMPLATEW lpTemplate, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam);
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
192 resolved by adding a cast: (DLGPROC)dialog_proc, but not at all sure
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
193 that's right
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
194
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
195 > make clean, try again
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
196
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
197 intl-win32.c:1509:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
198 TranslateCharsetInfo ((DWORD *) (DWORD) old_logfont.lfCharSet, &info,
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
199 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
200 resolution: do nothing -- I think this is necessary because of
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
201 extremely aggressive argument overloading by MS
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
202
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
203 intl-auto-encap-win32.c:126:5: warning: passing argument 1 of 'ShellExecuteExA' from incompatible pointer type [enabled by default]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
204 return ShellExecuteExA (pExecInfo);
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
205 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
206 In file included from syswindows.h:220:0,
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
207 from intl-auto-encap-win32.c:12:
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
208 /usr/include/w32api/shellapi.h:345:22: note: expected 'struct SHELLEXECUTEINFOA *' but argument is of type 'struct SHELLEXECUTEINFOW *'
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
209 SHSTDAPI_(WINBOOL) ShellExecuteExA (SHELLEXECUTEINFOA *pExecInfo);
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
210 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
211 resolution: ignored, never used, removed from intl-encap-win32.c
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
212
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
213 intl-auto-encap-win32.c: In function 'qxeFreeEnvironmentStrings':
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
214 intl-auto-encap-win32.c:1771:5: warning: passing argument 1 of 'FreeEnvironmentStringsA' from incompatible pointer type [enabled by default]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
215 return FreeEnvironmentStringsA (penv);
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
216 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
217 In file included from /usr/include/w32api/winbase.h:28:0,
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
218 from /usr/include/w32api/windows.h:70,
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
219 from syswindows.h:204,
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
220 from intl-auto-encap-win32.c:12:
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
221 /usr/include/w32api/processenv.h:29:29: note: expected 'LPCH' but argument is of type 'LPWCH'
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
222 WINBASEAPI WINBOOL WINAPI FreeEnvironmentStringsA (LPCH penv);
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
223 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
224 intl-encap-win32.c: In function 'qxeUpdateICMRegKey':
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
225 intl-encap-win32.c:1426:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
226 return UpdateICMRegKeyW (arg1, (DWORD) arg2, (LPWSTR) arg3, arg4);
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
227 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
228 intl-encap-win32.c:1426:5: warning: passing argument 2 of 'UpdateICMRegKeyW' makes pointer from integer without a cast [enabled by default]
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
229 return UpdateICMRegKeyW (arg1, (DWORD) arg2, (LPWSTR) arg3, arg4);
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
230 ^
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
231 In file included from /usr/include/w32api/windows.h:71:0,
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
232 from syswindows.h:204,
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
233 from console-msw.h:39,
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
234 from intl-encap-win32.c:44:
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
235 /usr/include/w32api/wingdi.h:3425:28: note: expected 'LPWSTR' but argument is of type 'unsigned int'
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
236 WINGDIAPI WINBOOL WINAPI UpdateICMRegKeyW(DWORD reserved,LPWSTR lpszCMID,LPWSTR lpszFileName,UINT command);
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
237 resolution: nothing, known problem
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
238
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
239 Similarly wrt qxeEnumResourceTypes, qxeEnumResourceNames,
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
240 qxeEnumResourceLanguages, qxeImmSetCompositionString
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
241
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
242 ---------
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
243 make clean, recompile, all looks OK, try to track down the problem --
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
244 the error in event-msw.c inside mswindow_find_frame, inside
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
245 intercepted_wnd_proc (a signal handler?),
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
246 where we have a
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
247 window with no frame saved, appears to happen when the main thread is
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
248 in mswindows_init_frame_1 at frame-msw.c:139
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
249 at recompute_all_cached_specifiers_in_frame at specifier.c:3483
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
250 at recompute_one_cached_specifier_in_frame at specifier.c:3444
68639fb08af8 no obvious 64 vs. 32 pblms in compilation, but still crashing in event-msw
Henry Thompson <ht@markup.co.uk>
parents: 5920
diff changeset
251 around the sixth one
5924
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
252 ---
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
253 April 2014 above here
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
254 ----
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
255 After a tiny spark on interest on xemacs-beta, did pull -u, merge and
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
256 commit, make distclean, configure '--with-pdump=yes' '--with-modules=no' '--with-mule=yes' '--with-ncurses=yes' '--with-msw=yes' '--without-png' '--without-xpm' '--without-jpeg' '--with-cflags-debugging=-ggdb'
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
257
Henry Thompson <ht@markup.co.uk>
parents: 5921
diff changeset
258 No change -- -nw works, w/o -nw gives the same assertion failed.
5925
08cfc8f77fb6 make space for long ptr, and store as such, for frame in WINDOW data,
Henry Thompson <ht@markup.co.uk>
parents: 5924
diff changeset
259 -----
08cfc8f77fb6 make space for long ptr, and store as such, for frame in WINDOW data,
Henry Thompson <ht@markup.co.uk>
parents: 5924
diff changeset
260 Trying again, make distclean followed by
08cfc8f77fb6 make space for long ptr, and store as such, for frame in WINDOW data,
Henry Thompson <ht@markup.co.uk>
parents: 5924
diff changeset
261 >
08cfc8f77fb6 make space for long ptr, and store as such, for frame in WINDOW data,
Henry Thompson <ht@markup.co.uk>
parents: 5924
diff changeset
262 didn't work!, had to add --without-x (why???)
08cfc8f77fb6 make space for long ptr, and store as such, for frame in WINDOW data,
Henry Thompson <ht@markup.co.uk>
parents: 5924
diff changeset
263 ------
08cfc8f77fb6 make space for long ptr, and store as such, for frame in WINDOW data,
Henry Thompson <ht@markup.co.uk>
parents: 5924
diff changeset
264 Force debug printing on by
08cfc8f77fb6 make space for long ptr, and store as such, for frame in WINDOW data,
Henry Thompson <ht@markup.co.uk>
parents: 5924
diff changeset
265 debug_mswindows_events = 3;
08cfc8f77fb6 make space for long ptr, and store as such, for frame in WINDOW data,
Henry Thompson <ht@markup.co.uk>
parents: 5924
diff changeset
266 at the end of event-msw.c
08cfc8f77fb6 make space for long ptr, and store as such, for frame in WINDOW data,
Henry Thompson <ht@markup.co.uk>
parents: 5924
diff changeset
267 Added more printing, removed frame printing, from
08cfc8f77fb6 make space for long ptr, and store as such, for frame in WINDOW data,
Henry Thompson <ht@markup.co.uk>
parents: 5924
diff changeset
268 debug_output_mswin_message ditto
08cfc8f77fb6 make space for long ptr, and store as such, for frame in WINDOW data,
Henry Thompson <ht@markup.co.uk>
parents: 5924
diff changeset
269 Narrowed it down to the
08cfc8f77fb6 make space for long ptr, and store as such, for frame in WINDOW data,
Henry Thompson <ht@markup.co.uk>
parents: 5924
diff changeset
270 qxeSetWindowLong (hwnd, XWL_FRAMEOBJ, (intptr_t)STORE_LISP_IN_VOID (frame_obj));
08cfc8f77fb6 make space for long ptr, and store as such, for frame in WINDOW data,
Henry Thompson <ht@markup.co.uk>
parents: 5924
diff changeset
271 at the end of mswindows_init_frame_1 in frame-msw.c
08cfc8f77fb6 make space for long ptr, and store as such, for frame in WINDOW data,
Henry Thompson <ht@markup.co.uk>
parents: 5924
diff changeset
272 a) Should be ...LongtPtr
08cfc8f77fb6 make space for long ptr, and store as such, for frame in WINDOW data,
Henry Thompson <ht@markup.co.uk>
parents: 5924
diff changeset
273 b) Not enough room allocated for a 64-bit long ptr -- fixed in
08cfc8f77fb6 make space for long ptr, and store as such, for frame in WINDOW data,
Henry Thompson <ht@markup.co.uk>
parents: 5924
diff changeset
274 console-msw-impl.h
5928
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
275 ----
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
276 Trying to get a clean diff to send to Vin
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
277 Need Change log entries!
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
278 Working with /c/C32/usr/local/src/xemacs-21.5-mine vs. -upstream (now
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
279 pulled from xemacs, not xemacs-beta)
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
280 _Only_ new files are
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
281 src/s/cygwin64.h
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
282 src/m/x86_64.h
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
283 Changed files are
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
284 > diff -rq --exclude=.hg --exclude=info --exclude=*.{o,i,exe,elc} xemacs-21.5-{upstream,mine}|egrep -v Only | cut -f 2 -d ' ' | cut -f 2- -d /
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
285 ChangeLog
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
286 README
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
287 configure
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
288 configure.ac
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
289 lib-src/gnuclient.c
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
290 lib-src/make-mswin-unicode.pl
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
291 lib-src/winclient.c
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
292 src/console-msw-impl.h
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
293 src/console-msw.c
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
294 src/device-impl.h
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
295 src/device.c
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
296 src/dialog-msw.c
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
297 src/event-msw.c
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
298 src/frame-msw.c
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
299 src/frame.c
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
300 src/glyphs-msw.c
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
301 src/glyphs.c
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
302 src/intl-auto-encap-win32.c
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
303 src/intl-auto-encap-win32.h
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
304 src/intl-encap-win32.c
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
305 src/menubar-msw.c
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
306 src/process-unix.c
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
307 src/scrollbar-msw.c
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
308 src/specifier.c
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
309 src/toolbar-msw.c
2f34b59f451a from Vin?
Henry Thompson <ht@markup.co.uk>
parents: 5925
diff changeset
310 src/win32.c
5929
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
311 ---
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
312 default branch, abandoned cygwin64 as system-type
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
313 Trying to compile with vs2015:
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
314
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
315 > patch -p 1 < ../xemacs-21.5-upstream/vs2015_3.patch
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
316 patching file nt/xemacs.mak
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
317 Hunk #4 FAILED at 796.
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
318 1 out of 19 hunks FAILED -- saving rejects to file nt/xemacs.mak.rej
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
319 patching file src/intl-auto-encap-win32.c
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
320 Hunk #1 FAILED at 36.
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
321 Hunk #2 succeeded at 3147 with fuzz 2 (offset -199 lines).
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
322 Hunk #3 succeeded at 3156 with fuzz 2 (offset -199 lines).
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
323 1 out of 3 hunks FAILED -- saving rejects to file src/intl-auto-encap-win32.c.rej
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
324 patching file src/s/windowsnt.h
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
325 patching file src/sysproc.h
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
326 OK, did first (.mak) by hand, other was there, in a different place,
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
327 already.
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
328 Compilation produces _lots_ of warnings about type/size conversions,
f5dfcf2323bc vs2015_3.patch applied, and some vs64 fixes
Henry Thompson <ht@markup.co.uk>
parents: 5928
diff changeset
329 slowly figuring out fixes, possible not all correct :-(
5930
a0d9bfe304de more 64-bit patches for VS, not sure of many of them
Henry Thompson <ht@markup.co.uk>
parents: 5929
diff changeset
330 Some further forward and back hacking wrt timeval and tv_sec, finally
a0d9bfe304de more 64-bit patches for VS, not sure of many of them
Henry Thompson <ht@markup.co.uk>
parents: 5929
diff changeset
331 had to actually edit /c/Program Files (x86)/Windows
a0d9bfe304de more 64-bit patches for VS, not sure of many of them
Henry Thompson <ht@markup.co.uk>
parents: 5929
diff changeset
332 Kits/8.1/Include/um/winsock.h to get things moving :-(
a0d9bfe304de more 64-bit patches for VS, not sure of many of them
Henry Thompson <ht@markup.co.uk>
parents: 5929
diff changeset
333
a0d9bfe304de more 64-bit patches for VS, not sure of many of them
Henry Thompson <ht@markup.co.uk>
parents: 5929
diff changeset
334 Lots of EMACS_INT (long long) == 8-bytes -> int or long == 4-bytes
a0d9bfe304de more 64-bit patches for VS, not sure of many of them
Henry Thompson <ht@markup.co.uk>
parents: 5929
diff changeset
335 warnings, whose equivalent (long (8) -> int (4)) are _not_ notified by
a0d9bfe304de more 64-bit patches for VS, not sure of many of them
Henry Thompson <ht@markup.co.uk>
parents: 5929
diff changeset
336 Cygwin, are coming up, sort-of overpowering the compiler output, so
a0d9bfe304de more 64-bit patches for VS, not sure of many of them
Henry Thompson <ht@markup.co.uk>
parents: 5929
diff changeset
337 fttb I've set ERROR_CHECK_ALL=0 in config.inc, which turned off -TP
a0d9bfe304de more 64-bit patches for VS, not sure of many of them
Henry Thompson <ht@markup.co.uk>
parents: 5929
diff changeset
338 (CPP, which I thought was raising the warnings), but still getting many
a0d9bfe304de more 64-bit patches for VS, not sure of many of them
Henry Thompson <ht@markup.co.uk>
parents: 5929
diff changeset
339 warnings: down from 567 to 423!
a0d9bfe304de more 64-bit patches for VS, not sure of many of them
Henry Thompson <ht@markup.co.uk>
parents: 5929
diff changeset
340 More small fixes, in process-nt.c very speculative, get me to through
a0d9bfe304de more 64-bit patches for VS, not sure of many of them
Henry Thompson <ht@markup.co.uk>
parents: 5929
diff changeset
341 compilation to (lots of) linking errors
5931
8955a38b8ecb just barely working
Henry Thompson <ht@markup.co.uk>
parents: 5930
diff changeset
342 Clean and rebuild and only Xpm lib linking errors, turn off Xpm and
8955a38b8ecb just barely working
Henry Thompson <ht@markup.co.uk>
parents: 5930
diff changeset
343 build completes except for makeinfo (shell script pblm), but
8955a38b8ecb just barely working
Henry Thompson <ht@markup.co.uk>
parents: 5930
diff changeset
344 xemacs.exe works (on screen, not -nw).
5930
a0d9bfe304de more 64-bit patches for VS, not sure of many of them
Henry Thompson <ht@markup.co.uk>
parents: 5929
diff changeset
345
5932
d2c2d83dbb52 working with new Xpm.dll
Henry Thompson <ht@markup.co.uk>
parents: 5931
diff changeset
346 Using VS for the winlibs, to set flags etc. use the wrench icon in the
d2c2d83dbb52 working with new Xpm.dll
Henry Thompson <ht@markup.co.uk>
parents: 5931
diff changeset
347 Property Manager window.
d2c2d83dbb52 working with new Xpm.dll
Henry Thompson <ht@markup.co.uk>
parents: 5931
diff changeset
348 Copied all but WIN32 preprocessor flag from the 32-bit VS-built
d2c2d83dbb52 working with new Xpm.dll
Henry Thompson <ht@markup.co.uk>
parents: 5931
diff changeset
349 solution
d2c2d83dbb52 working with new Xpm.dll
Henry Thompson <ht@markup.co.uk>
parents: 5931
diff changeset
350 Needed to fuss with linker debugging flags and input (module
d2c2d83dbb52 working with new Xpm.dll
Henry Thompson <ht@markup.co.uk>
parents: 5931
diff changeset
351 definition file) to get it all to work, but now it does!