Mercurial > hg > xemacs-beta
annotate src/libst.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 | 74fd4e045ea6 |
children | 697ef44129c6 |
rev | line source |
---|---|
0 | 1 /* libst.h - include file for portable sound tools library |
2 ** | |
3 ** Copyright (C) 1989 by Jef Poskanzer. | |
4 ** | |
5 ** Permission to use, copy, modify, and distribute this software and its | |
6 ** documentation for any purpose and without fee is hereby granted, provided | |
7 ** that the above copyright notice appear in all copies and that both that | |
8 ** copyright notice and this permission notice appear in supporting | |
9 ** documentation. This software is provided "as is" without express or | |
10 ** implied warranty. | |
11 */ | |
12 | |
13 /* Synched up with: Not in FSF. */ | |
14 | |
398 | 15 #ifndef INCLUDED_libst_h_ |
16 #define INCLUDED_libst_h_ | |
17 | |
0 | 18 #define SAMPLES_PER_SECOND 8192 |
19 | |
20 #define MINLIN -32768 | |
21 #define MAXLIN 32767 | |
22 #define LINCLIP(x) do { if ( x < MINLIN ) x = MINLIN ; else if ( x > MAXLIN ) x = MAXLIN; } while ( 0 ) | |
23 | |
24 unsigned char st_linear_to_ulaw( /* int sample */ ); | |
25 int st_ulaw_to_linear_slow( /* unsigned char ulawbyte */ ); | |
26 | |
27 /* | |
28 ** This macro converts from ulaw to 16 bit linear, faster. | |
29 ** | |
30 ** Jef Poskanzer | |
31 ** 23 October 1989 | |
32 ** | |
33 ** Input: 8 bit ulaw sample | |
34 ** Output: signed 16 bit linear sample | |
35 */ | |
36 #define st_ulaw_to_linear(ulawbyte) ulaw_table[ulawbyte] | |
37 | |
38 static int ulaw_table[256] = { | |
39 -32124, -31100, -30076, -29052, -28028, -27004, -25980, -24956, | |
40 -23932, -22908, -21884, -20860, -19836, -18812, -17788, -16764, | |
41 -15996, -15484, -14972, -14460, -13948, -13436, -12924, -12412, | |
42 -11900, -11388, -10876, -10364, -9852, -9340, -8828, -8316, | |
43 -7932, -7676, -7420, -7164, -6908, -6652, -6396, -6140, | |
44 -5884, -5628, -5372, -5116, -4860, -4604, -4348, -4092, | |
45 -3900, -3772, -3644, -3516, -3388, -3260, -3132, -3004, | |
46 -2876, -2748, -2620, -2492, -2364, -2236, -2108, -1980, | |
47 -1884, -1820, -1756, -1692, -1628, -1564, -1500, -1436, | |
48 -1372, -1308, -1244, -1180, -1116, -1052, -988, -924, | |
49 -876, -844, -812, -780, -748, -716, -684, -652, | |
50 -620, -588, -556, -524, -492, -460, -428, -396, | |
51 -372, -356, -340, -324, -308, -292, -276, -260, | |
52 -244, -228, -212, -196, -180, -164, -148, -132, | |
53 -120, -112, -104, -96, -88, -80, -72, -64, | |
54 -56, -48, -40, -32, -24, -16, -8, 0, | |
55 32124, 31100, 30076, 29052, 28028, 27004, 25980, 24956, | |
56 23932, 22908, 21884, 20860, 19836, 18812, 17788, 16764, | |
57 15996, 15484, 14972, 14460, 13948, 13436, 12924, 12412, | |
58 11900, 11388, 10876, 10364, 9852, 9340, 8828, 8316, | |
59 7932, 7676, 7420, 7164, 6908, 6652, 6396, 6140, | |
60 5884, 5628, 5372, 5116, 4860, 4604, 4348, 4092, | |
61 3900, 3772, 3644, 3516, 3388, 3260, 3132, 3004, | |
62 2876, 2748, 2620, 2492, 2364, 2236, 2108, 1980, | |
63 1884, 1820, 1756, 1692, 1628, 1564, 1500, 1436, | |
64 1372, 1308, 1244, 1180, 1116, 1052, 988, 924, | |
65 876, 844, 812, 780, 748, 716, 684, 652, | |
66 620, 588, 556, 524, 492, 460, 428, 396, | |
67 372, 356, 340, 324, 308, 292, 276, 260, | |
68 244, 228, 212, 196, 180, 164, 148, 132, | |
69 120, 112, 104, 96, 88, 80, 72, 64, | |
70 56, 48, 40, 32, 24, 16, 8, 0 }; | |
398 | 71 |
72 #endif /* INCLUDED_libst_h_ */ |