Mercurial > hg > xemacs-beta
annotate src/hash.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 | de9952d2ed18 |
children | 308d34e9f07d |
rev | line source |
---|---|
1292 | 1 /* Copyright (C) 2003 Ben Wing. |
2 This file is part of XEmacs. | |
428 | 3 |
4 XEmacs is free software; you can redistribute it and/or modify it | |
5 under the terms of the GNU General Public License as published by the | |
6 Free Software Foundation; either version 2, or (at your option) any | |
7 later version. | |
8 | |
9 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 for more details. | |
13 | |
14 You should have received a copy of the GNU General Public License | |
15 along with XEmacs; see the file COPYING. If not, write to | |
16 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
17 Boston, MA 02111-1307, USA. */ | |
18 | |
19 /* Synched up with: Not in FSF. */ | |
20 | |
440 | 21 #ifndef INCLUDED_hash_h_ |
22 #define INCLUDED_hash_h_ | |
428 | 23 |
24 typedef struct | |
25 { | |
442 | 26 const void *key; |
428 | 27 void *contents; |
28 } hentry; | |
29 | |
442 | 30 typedef int (*hash_table_test_function) (const void *, const void *); |
665 | 31 typedef Hashcode (*hash_table_hash_function) (const void *); |
428 | 32 |
33 struct hash_table | |
34 { | |
35 hentry *harray; | |
36 long zero_set; | |
37 void *zero_entry; | |
665 | 38 Elemcount size; /* size of the hasharray */ |
39 Elemcount fullness; /* number of entries in the hash table */ | |
428 | 40 hash_table_hash_function hash_function; |
41 hash_table_test_function test_function; | |
42 }; | |
43 | |
44 /* SIZE is the number of initial entries. The hash table will be grown | |
45 automatically if the number of entries approaches the size */ | |
665 | 46 struct hash_table *make_hash_table (Elemcount size); |
428 | 47 |
2515 | 48 struct hash_table *make_string_hash_table (Elemcount size); |
49 | |
826 | 50 struct hash_table *make_general_hash_table (Elemcount size, |
51 hash_table_hash_function | |
52 hash_function, | |
53 hash_table_test_function | |
54 test_function); | |
428 | 55 |
56 /* Clear HASH-TABLE. A freshly created hash table is already cleared up. */ | |
57 void clrhash (struct hash_table *hash_table); | |
58 | |
59 /* Free HASH-TABLE and its substructures */ | |
60 void free_hash_table (struct hash_table *hash_table); | |
61 | |
62 /* Returns a hentry whose key is 0 if the entry does not exist in HASH-TABLE */ | |
442 | 63 const void *gethash (const void *key, struct hash_table *hash_table, |
64 const void **ret_value); | |
428 | 65 |
66 /* KEY should be different from 0 */ | |
442 | 67 void puthash (const void *key, void *contents, struct hash_table *hash_table); |
428 | 68 |
69 /* delete the entry with key KEY */ | |
442 | 70 void remhash (const void *key, struct hash_table *hash_table); |
428 | 71 |
442 | 72 typedef int (*maphash_function) (const void* key, void* contents, void* arg); |
428 | 73 |
442 | 74 typedef int (*remhash_predicate) (const void* key, const void* contents, |
428 | 75 void* arg); |
76 | |
77 /* Call MF (key, contents, arg) for every entry in HASH-TABLE */ | |
78 void maphash (maphash_function mf, struct hash_table *hash_table, void* arg); | |
79 | |
80 /* Delete all objects from HASH-TABLE satisfying PREDICATE */ | |
81 void map_remhash (remhash_predicate predicate, | |
82 struct hash_table *hash_table, void *arg); | |
83 | |
1292 | 84 /* Grow the table if it has less than BREATHING_ROOM elements that can be |
85 added before a resize will be triggered. After the grow, the table can | |
86 hold at least BREATHING_ROOM elements (and probably a lot more) before | |
87 needing resizing again. */ | |
88 void pregrow_hash_table_if_necessary (struct hash_table *hash_table, | |
89 Elemcount breathing_room); | |
440 | 90 #endif /* INCLUDED_hash_h_ */ |