Mercurial > hg > xemacs-beta
annotate lwlib/lwlib-internal.h @ 4874:4c3f5e1ecbeb
ChangeLog for previous patch: regenerate intl-auto-encap-win32.c
(fix build problems when building --with-msw=no on Cygwin)
-------------------- ChangeLog entries follow: --------------------
lib-src/ChangeLog addition:
2010-01-15 Ben Wing <ben@xemacs.org>
* make-mswin-unicode.pl:
Various fixes to get this to work when using the Cygwin header files
in /usr/include/w32api instead of the VC++ ones:
-- Use /usr/include/w32api as default; don't assume that a passed-in
directory always ends in .../include.
-- Add `const' to list of known type modifiers.
-- If function already seen, warn but don't generate twice.
-- Eliminate `extern' from return type modifiers.
-- Cosmetic: When eliminating APIENTRY, also eliminate following
whitespace.
src/ChangeLog addition:
2010-01-15 Ben Wing <ben@xemacs.org>
* intl-auto-encap-win32.c:
* intl-auto-encap-win32.c (qxeExtractAssociatedIcon):
* intl-auto-encap-win32.c (qxeShellExecuteEx):
* intl-auto-encap-win32.c (qxeSHFileOperation):
* intl-auto-encap-win32.c (qxeSHQueryRecycleBin):
* intl-auto-encap-win32.c (qxeSHEmptyRecycleBin):
* intl-auto-encap-win32.c (qxeWNetAddConnection):
* intl-auto-encap-win32.c (qxeWNetAddConnection2):
* intl-auto-encap-win32.c (qxeWNetAddConnection3):
* intl-auto-encap-win32.c (qxeWNetCancelConnection):
* intl-auto-encap-win32.c (qxeWNetCancelConnection2):
* intl-auto-encap-win32.c (qxeWNetGetConnection):
* intl-auto-encap-win32.c (qxeWNetUseConnection):
* intl-auto-encap-win32.c (qxeWNetConnectionDialog1):
* intl-auto-encap-win32.c (qxeWNetDisconnectDialog1):
* intl-auto-encap-win32.c (qxeWNetOpenEnum):
* intl-auto-encap-win32.c (qxeWNetEnumResource):
* intl-auto-encap-win32.c (qxeWNetGetUniversalName):
* intl-auto-encap-win32.c (qxeWNetGetUser):
* intl-auto-encap-win32.c (qxeWNetGetProviderName):
* intl-auto-encap-win32.c (qxeWNetGetNetworkInformation):
* intl-auto-encap-win32.c (qxeWNetGetLastError):
* intl-auto-encap-win32.c (qxeMultinetGetConnectionPerformance):
* intl-auto-encap-win32.c (qxeAppendMenu):
* intl-auto-encap-win32.c (qxeCopyAcceleratorTable):
* intl-auto-encap-win32.c (qxeDlgDirSelectComboBoxEx):
* intl-auto-encap-win32.c (qxeEnumDesktops):
* intl-auto-encap-win32.c (qxeEnumWindowStations):
* intl-auto-encap-win32.c (qxeGetClassInfo):
* intl-auto-encap-win32.c (qxeGetClassLong):
* intl-auto-encap-win32.c (qxeGetClassName):
* intl-auto-encap-win32.c (qxeGetKeyboardLayoutName):
* intl-auto-encap-win32.c (qxeGetWindowLong):
* intl-auto-encap-win32.c (qxeGetUserObjectInformation):
* intl-auto-encap-win32.c (qxeGetWindowTextLength):
* intl-auto-encap-win32.c (qxeGrayString):
* intl-auto-encap-win32.c (qxeInsertMenu):
* intl-auto-encap-win32.c (qxeSetProp):
* intl-auto-encap-win32.c (qxeEnumICMProfiles):
* intl-auto-encap-win32.c (qxeExtTextOut):
* intl-auto-encap-win32.c (qxeSetICMProfile):
* intl-auto-encap-win32.c (qxeTextOut):
* intl-auto-encap-win32.c (qxeSHGetPathFromIDList):
* intl-auto-encap-win32.c (qxeFindText):
* intl-auto-encap-win32.c (qxeReplaceText):
* intl-auto-encap-win32.c (qxeImmInstallIME):
* intl-auto-encap-win32.c (qxeImmGetDescription):
* intl-auto-encap-win32.c (qxeImmGetIMEFileName):
* intl-auto-encap-win32.c (qxeImmGetCompositionString):
* intl-auto-encap-win32.c (qxeImmGetCandidateListCount):
* intl-auto-encap-win32.c (qxeImmGetCandidateList):
* intl-auto-encap-win32.c (qxeImmGetGuideLine):
* intl-auto-encap-win32.c (qxeImmConfigureIME):
* intl-auto-encap-win32.c (qxeImmEscape):
* intl-auto-encap-win32.c (qxeImmGetConversionList):
* intl-auto-encap-win32.c (qxeImmRegisterWord):
* intl-auto-encap-win32.c (qxeImmUnregisterWord):
* intl-auto-encap-win32.c (qxeImmEnumRegisterWord):
* intl-auto-encap-win32.c (qxesndPlaySound):
* intl-auto-encap-win32.c (qxePlaySound):
* intl-auto-encap-win32.c (qxewaveOutGetErrorText):
* intl-auto-encap-win32.c (qxewaveInGetErrorText):
* intl-auto-encap-win32.c (qxemidiOutGetErrorText):
* intl-auto-encap-win32.c (qxemidiInGetErrorText):
* intl-auto-encap-win32.c (qxemmioStringToFOURCC):
* intl-auto-encap-win32.c (qxemmioInstallIOProc):
* intl-auto-encap-win32.c (qxemmioOpen):
* intl-auto-encap-win32.c (qxemmioRename):
* intl-auto-encap-win32.c (qxemciSendCommand):
* intl-auto-encap-win32.c (qxemciSendString):
* intl-auto-encap-win32.c (qxemciGetDeviceID):
* intl-auto-encap-win32.c (qxemciGetErrorString):
* intl-auto-encap-win32.h:
* intl-auto-encap-win32.h (qxemciGetErrorString):
Regenerate these files from Cygwin headers.
* intl-encap-win32.c:
Bracket more functions in HAVE_MS_WINDOWS, to fix build problems
when building --with-msw=no on Cygwin.
Fixes for Cygwin headers:
-- Comment out IME.H, non-existent in Cygwin.
-- Make MessageBoxIndirect a `no' (don't encapsulate but generate
error if used) because it has a structure parameter that needs
to be A/W split but is declared as FOO*, and our parser can't
split this.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Fri, 15 Jan 2010 05:12:07 -0600 |
parents | facf3239ba30 |
children | 03ab78e48ef6 |
rev | line source |
---|---|
440 | 1 #ifndef INCLUDED_lwlib_internal_h_ |
2 #define INCLUDED_lwlib_internal_h_ | |
428 | 3 |
4 #include "lwlib.h" | |
5 | |
448 | 6 #ifdef USE_ASSERTIONS |
7 /* Highly dubious kludge */ | |
8 /* (thanks, Jamie, I feel better now -- ben) */ | |
1650 | 9 EXTERN_C void assert_failed (const char *, int, const char *); |
448 | 10 # define abort() (assert_failed (__FILE__, __LINE__, "abort()")) |
3025 | 11 # define assert(x) ((x) ? (void) 0 : assert_failed (__FILE__, __LINE__, #x)) |
448 | 12 #else |
13 # ifdef DEBUG_XEMACS | |
3025 | 14 # define assert(x) ((x) ? (void) 0 : (void) abort ()) |
448 | 15 # else |
3025 | 16 # define assert(x) ((void) 0) |
448 | 17 # endif |
18 #endif | |
19 | |
428 | 20 /* This represents a single widget within a widget tree. All the |
21 widgets in a widget tree are chained through the `next' field. | |
22 `info' is a back pointer to the widget tree. */ | |
23 | |
24 typedef struct _widget_instance | |
25 { | |
26 Widget widget; | |
27 Widget parent; | |
28 Boolean pop_up_p; | |
29 struct _widget_info* info; | |
30 struct _widget_instance* next; | |
31 } widget_instance; | |
32 | |
33 /* This represents a single widget tree, such as a single menubar. | |
34 The global variable `all_widget_info' lists all widget trees, | |
35 chained through the `next' field of this structure. */ | |
36 | |
37 typedef struct _widget_info | |
38 { | |
39 char* type; | |
40 char* name; | |
41 LWLIB_ID id; | |
42 widget_value* val; | |
43 Boolean busy; | |
44 lw_callback pre_activate_cb; | |
45 lw_callback selection_cb; | |
46 lw_callback post_activate_cb; | |
47 struct _widget_instance* instances; | |
48 struct _widget_info* next; | |
49 } widget_info; | |
50 | |
51 typedef Widget | |
52 (*widget_creation_function) (widget_instance* instance); | |
53 | |
54 typedef struct _widget_creation_entry | |
55 { | |
442 | 56 const char* type; |
428 | 57 widget_creation_function function; |
58 } widget_creation_entry; | |
59 | |
60 /* update all other instances of a widget. Can be used in a callback when | |
442 | 61 a widget has been used by the user */ |
428 | 62 void |
63 lw_internal_update_other_instances (Widget widget, XtPointer closure, | |
64 XtPointer call_data); | |
65 | |
66 /* get the widget_value for a widget in a given instance */ | |
67 widget_value* | |
68 lw_get_widget_value_for_widget (widget_instance* instance, Widget w); | |
69 | |
70 widget_info *lw_get_widget_info (LWLIB_ID id); | |
71 | |
440 | 72 #endif /* INCLUDED_lwlib_internal_h_ */ |