Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5c2a891c
Commit
5c2a891c
authored
Nov 29, 2004
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 29, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made some functions and variables static.
parent
955c50aa
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
61 additions
and
62 deletions
+61
-62
api.c
dlls/avifil32/api.c
+2
-2
icmstream.c
dlls/avifil32/icmstream.c
+1
-1
printdlg.c
dlls/commdlg/printdlg.c
+4
-4
internet.c
dlls/wininet/internet.c
+22
-22
playsound.c
dlls/winmm/playsound.c
+2
-2
audio.c
dlls/winmm/winealsa/audio.c
+2
-4
midi.c
dlls/winmm/winealsa/midi.c
+1
-1
audio.c
dlls/winmm/winearts/audio.c
+6
-6
audio.c
dlls/winmm/winenas/audio.c
+7
-6
main.c
programs/clock/main.c
+1
-1
control.c
programs/control/control.c
+1
-1
dbgchnl.c
programs/taskmgr/dbgchnl.c
+1
-1
view.c
programs/view/view.c
+1
-1
builtins.c
programs/wcmd/builtins.c
+4
-4
curses.c
programs/wineconsole/curses.c
+2
-2
user.c
programs/wineconsole/user.c
+2
-2
winepath.c
programs/winepath/winepath.c
+2
-2
No files found.
dlls/avifil32/api.c
View file @
5c2a891c
...
@@ -1379,8 +1379,8 @@ static void AVISaveOptionsUpdate(HWND hWnd)
...
@@ -1379,8 +1379,8 @@ static void AVISaveOptionsUpdate(HWND hWnd)
}
}
INT_PTR
CALLBACK
AVISaveOptionsDlgProc
(
HWND
hWnd
,
UINT
uMsg
,
static
INT_PTR
CALLBACK
AVISaveOptionsDlgProc
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
WPARAM
wParam
,
LPARAM
lParam
)
{
{
DWORD
dwInterleave
;
DWORD
dwInterleave
;
BOOL
bIsInterleaved
;
BOOL
bIsInterleaved
;
...
...
dlls/avifil32/icmstream.c
View file @
5c2a891c
...
@@ -111,7 +111,7 @@ static HRESULT AVIFILE_EncodeFrame(IAVIStreamImpl *This,
...
@@ -111,7 +111,7 @@ static HRESULT AVIFILE_EncodeFrame(IAVIStreamImpl *This,
LPBITMAPINFOHEADER
lpbi
,
LPVOID
lpBits
);
LPBITMAPINFOHEADER
lpbi
,
LPVOID
lpBits
);
static
HRESULT
AVIFILE_OpenGetFrame
(
IAVIStreamImpl
*
This
);
static
HRESULT
AVIFILE_OpenGetFrame
(
IAVIStreamImpl
*
This
);
inline
void
AVIFILE_Reset
(
IAVIStreamImpl
*
This
)
static
inline
void
AVIFILE_Reset
(
IAVIStreamImpl
*
This
)
{
{
This
->
lCurrent
=
-
1
;
This
->
lCurrent
=
-
1
;
This
->
lLastKey
=
0
;
This
->
lLastKey
=
0
;
...
...
dlls/commdlg/printdlg.c
View file @
5c2a891c
...
@@ -1746,8 +1746,8 @@ static LRESULT PRINTDLG_WMCommandW(HWND hDlg, WPARAM wParam,
...
@@ -1746,8 +1746,8 @@ static LRESULT PRINTDLG_WMCommandW(HWND hDlg, WPARAM wParam,
/***********************************************************************
/***********************************************************************
* PrintDlgProcA [internal]
* PrintDlgProcA [internal]
*/
*/
INT_PTR
CALLBACK
PrintDlgProcA
(
HWND
hDlg
,
UINT
uMsg
,
WPARAM
wParam
,
static
INT_PTR
CALLBACK
PrintDlgProcA
(
HWND
hDlg
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
LPARAM
lParam
)
{
{
PRINT_PTRA
*
PrintStructures
;
PRINT_PTRA
*
PrintStructures
;
INT_PTR
res
=
FALSE
;
INT_PTR
res
=
FALSE
;
...
@@ -1790,8 +1790,8 @@ INT_PTR CALLBACK PrintDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam,
...
@@ -1790,8 +1790,8 @@ INT_PTR CALLBACK PrintDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam,
return
res
;
return
res
;
}
}
INT_PTR
CALLBACK
PrintDlgProcW
(
HWND
hDlg
,
UINT
uMsg
,
WPARAM
wParam
,
static
INT_PTR
CALLBACK
PrintDlgProcW
(
HWND
hDlg
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
LPARAM
lParam
)
{
{
static
const
WCHAR
propW
[]
=
{
'_'
,
'_'
,
'W'
,
'I'
,
'N'
,
'E'
,
'_'
,
'P'
,
'R'
,
'I'
,
'N'
,
'T'
,
'D'
,
'L'
,
'G'
,
'D'
,
'A'
,
'T'
,
'A'
,
0
};
static
const
WCHAR
propW
[]
=
{
'_'
,
'_'
,
'W'
,
'I'
,
'N'
,
'E'
,
'_'
,
'P'
,
'R'
,
'I'
,
'N'
,
'T'
,
'D'
,
'L'
,
'G'
,
'D'
,
'A'
,
'T'
,
'A'
,
0
};
PRINT_PTRW
*
PrintStructures
;
PRINT_PTRW
*
PrintStructures
;
...
...
dlls/wininet/internet.c
View file @
5c2a891c
...
@@ -90,17 +90,17 @@ HINTERNET WINAPI INTERNET_InternetOpenUrlW(LPWININETAPPINFOW hIC, LPCWSTR lpszUr
...
@@ -90,17 +90,17 @@ HINTERNET WINAPI INTERNET_InternetOpenUrlW(LPWININETAPPINFOW hIC, LPCWSTR lpszUr
LPCWSTR
lpszHeaders
,
DWORD
dwHeadersLength
,
DWORD
dwFlags
,
DWORD
dwContext
);
LPCWSTR
lpszHeaders
,
DWORD
dwHeadersLength
,
DWORD
dwFlags
,
DWORD
dwContext
);
static
VOID
INTERNET_ExecuteWork
();
static
VOID
INTERNET_ExecuteWork
();
DWORD
g_dwTlsErrIndex
=
TLS_OUT_OF_INDEXES
;
static
DWORD
g_dwTlsErrIndex
=
TLS_OUT_OF_INDEXES
;
DWORD
dwNumThreads
;
static
DWORD
dwNumThreads
;
DWORD
dwNumIdleThreads
;
static
DWORD
dwNumIdleThreads
;
DWORD
dwNumJobs
;
static
DWORD
dwNumJobs
;
HANDLE
hEventArray
[
2
];
static
HANDLE
hEventArray
[
2
];
#define hQuitEvent hEventArray[0]
#define hQuitEvent hEventArray[0]
#define hWorkEvent hEventArray[1]
#define hWorkEvent hEventArray[1]
CRITICAL_SECTION
csQueue
;
static
CRITICAL_SECTION
csQueue
;
LPWORKREQUEST
lpHeadWorkQueue
;
static
LPWORKREQUEST
lpHeadWorkQueue
;
LPWORKREQUEST
lpWorkQueueTail
;
static
LPWORKREQUEST
lpWorkQueueTail
;
HMODULE
WININET_hModule
;
static
HMODULE
WININET_hModule
;
extern
void
URLCacheContainers_CreateDefaults
();
extern
void
URLCacheContainers_CreateDefaults
();
extern
void
URLCacheContainers_DeleteAll
();
extern
void
URLCacheContainers_DeleteAll
();
...
@@ -1036,10 +1036,9 @@ BOOL WINAPI InternetCloseHandle(HINTERNET hInternet)
...
@@ -1036,10 +1036,9 @@ BOOL WINAPI InternetCloseHandle(HINTERNET hInternet)
* Helper function for InternetCrackUrlW
* Helper function for InternetCrackUrlW
*
*
*/
*/
void
ConvertUrlComponentValue
(
LPSTR
*
lppszComponent
,
LPDWORD
dwComponentLen
,
static
void
ConvertUrlComponentValue
(
LPSTR
*
lppszComponent
,
LPDWORD
dwComponentLen
,
LPWSTR
lpwszComponent
,
DWORD
dwwComponentLen
,
LPWSTR
lpwszComponent
,
DWORD
dwwComponentLen
,
LPCSTR
lpszStart
,
LPCSTR
lpszStart
,
LPCWSTR
lpwszStart
)
LPCWSTR
lpwszStart
)
{
{
if
(
*
dwComponentLen
!=
0
)
if
(
*
dwComponentLen
!=
0
)
{
{
...
@@ -1104,6 +1103,7 @@ BOOL WINAPI InternetCrackUrlA(LPCSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
...
@@ -1104,6 +1103,7 @@ BOOL WINAPI InternetCrackUrlA(LPCSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
HeapFree
(
GetProcessHeap
(),
0
,
lpwszUrl
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwszUrl
);
return
FALSE
;
return
FALSE
;
}
}
ConvertUrlComponentValue
(
&
lpUrlComponents
->
lpszHostName
,
&
lpUrlComponents
->
dwHostNameLength
,
ConvertUrlComponentValue
(
&
lpUrlComponents
->
lpszHostName
,
&
lpUrlComponents
->
dwHostNameLength
,
UCW
.
lpszHostName
,
UCW
.
dwHostNameLength
,
UCW
.
lpszHostName
,
UCW
.
dwHostNameLength
,
lpszUrl
,
lpwszUrl
);
lpszUrl
,
lpwszUrl
);
...
@@ -1241,7 +1241,7 @@ BOOL WINAPI InternetCrackUrlW(LPCWSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
...
@@ -1241,7 +1241,7 @@ BOOL WINAPI InternetCrackUrlW(LPCWSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
if
(
dwUrlLength
==
0
)
if
(
dwUrlLength
==
0
)
dwUrlLength
=
strlenW
(
lpszUrl
);
dwUrlLength
=
strlenW
(
lpszUrl
);
TRACE
(
"
\n
"
);
TRACE
(
"
(%s %lu %lx %p)
\n
"
,
debugstr_w
(
lpszUrl
),
dwUrlLength
,
dwFlags
,
lpUC
);
/* Determine if the URI is absolute. */
/* Determine if the URI is absolute. */
while
(
*
lpszap
!=
'\0'
)
while
(
*
lpszap
!=
'\0'
)
...
@@ -1771,7 +1771,7 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
...
@@ -1771,7 +1771,7 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
else
else
{
{
memcpy
(
lpBuffer
,
&
type
,
sizeof
(
ULONG
));
memcpy
(
lpBuffer
,
&
type
,
sizeof
(
ULONG
));
*
lpdwBufferLength
=
sizeof
(
ULONG
);
*
lpdwBufferLength
=
sizeof
(
ULONG
);
bSuccess
=
TRUE
;
bSuccess
=
TRUE
;
}
}
break
;
break
;
...
@@ -1786,7 +1786,7 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
...
@@ -1786,7 +1786,7 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
else
else
{
{
memcpy
(
lpBuffer
,
&
flags
,
sizeof
(
ULONG
));
memcpy
(
lpBuffer
,
&
flags
,
sizeof
(
ULONG
));
*
lpdwBufferLength
=
sizeof
(
ULONG
);
*
lpdwBufferLength
=
sizeof
(
ULONG
);
bSuccess
=
TRUE
;
bSuccess
=
TRUE
;
}
}
break
;
break
;
...
@@ -2391,7 +2391,7 @@ void INTERNET_SetLastError(DWORD dwError)
...
@@ -2391,7 +2391,7 @@ void INTERNET_SetLastError(DWORD dwError)
* RETURNS
* RETURNS
*
*
*/
*/
DWORD
INTERNET_GetLastError
()
DWORD
INTERNET_GetLastError
(
void
)
{
{
LPWITHREADERROR
lpwite
=
(
LPWITHREADERROR
)
TlsGetValue
(
g_dwTlsErrIndex
);
LPWITHREADERROR
lpwite
=
(
LPWITHREADERROR
)
TlsGetValue
(
g_dwTlsErrIndex
);
return
lpwite
->
dwError
;
return
lpwite
->
dwError
;
...
@@ -2406,7 +2406,7 @@ DWORD INTERNET_GetLastError()
...
@@ -2406,7 +2406,7 @@ DWORD INTERNET_GetLastError()
* RETURNS
* RETURNS
*
*
*/
*/
DWORD
INTERNET_WorkerThreadFunc
(
LPVOID
*
lpvParam
)
static
DWORD
INTERNET_WorkerThreadFunc
(
LPVOID
*
lpvParam
)
{
{
DWORD
dwWaitRes
;
DWORD
dwWaitRes
;
...
@@ -2441,7 +2441,7 @@ DWORD INTERNET_WorkerThreadFunc(LPVOID *lpvParam)
...
@@ -2441,7 +2441,7 @@ DWORD INTERNET_WorkerThreadFunc(LPVOID *lpvParam)
* RETURNS
* RETURNS
*
*
*/
*/
BOOL
INTERNET_InsertWorkRequest
(
LPWORKREQUEST
lpWorkRequest
)
static
BOOL
INTERNET_InsertWorkRequest
(
LPWORKREQUEST
lpWorkRequest
)
{
{
BOOL
bSuccess
=
FALSE
;
BOOL
bSuccess
=
FALSE
;
LPWORKREQUEST
lpNewRequest
;
LPWORKREQUEST
lpNewRequest
;
...
@@ -2481,7 +2481,7 @@ BOOL INTERNET_InsertWorkRequest(LPWORKREQUEST lpWorkRequest)
...
@@ -2481,7 +2481,7 @@ BOOL INTERNET_InsertWorkRequest(LPWORKREQUEST lpWorkRequest)
* RETURNS
* RETURNS
*
*
*/
*/
BOOL
INTERNET_GetWorkRequest
(
LPWORKREQUEST
lpWorkRequest
)
static
BOOL
INTERNET_GetWorkRequest
(
LPWORKREQUEST
lpWorkRequest
)
{
{
BOOL
bSuccess
=
FALSE
;
BOOL
bSuccess
=
FALSE
;
LPWORKREQUEST
lpRequest
=
NULL
;
LPWORKREQUEST
lpRequest
=
NULL
;
...
@@ -2560,7 +2560,7 @@ lerror:
...
@@ -2560,7 +2560,7 @@ lerror:
* RETURNS
* RETURNS
*
*
*/
*/
static
VOID
INTERNET_ExecuteWork
()
static
VOID
INTERNET_ExecuteWork
(
void
)
{
{
WORKREQUEST
workRequest
;
WORKREQUEST
workRequest
;
...
@@ -2786,7 +2786,7 @@ static VOID INTERNET_ExecuteWork()
...
@@ -2786,7 +2786,7 @@ static VOID INTERNET_ExecuteWork()
* RETURNS
* RETURNS
*
*
*/
*/
LPSTR
INTERNET_GetResponseBuffer
()
LPSTR
INTERNET_GetResponseBuffer
(
void
)
{
{
LPWITHREADERROR
lpwite
=
(
LPWITHREADERROR
)
TlsGetValue
(
g_dwTlsErrIndex
);
LPWITHREADERROR
lpwite
=
(
LPWITHREADERROR
)
TlsGetValue
(
g_dwTlsErrIndex
);
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
...
...
dlls/winmm/playsound.c
View file @
5c2a891c
...
@@ -72,7 +72,7 @@ static HMMIO get_mmioFromProfile(UINT uFlags, LPCWSTR lpszName)
...
@@ -72,7 +72,7 @@ static HMMIO get_mmioFromProfile(UINT uFlags, LPCWSTR lpszName)
static
const
WCHAR
wszNull
[]
=
{
0
};
static
const
WCHAR
wszNull
[]
=
{
0
};
TRACE
(
"searching in SystemSound list for %s
\n
"
,
debugstr_w
(
lpszName
));
TRACE
(
"searching in SystemSound list for %s
\n
"
,
debugstr_w
(
lpszName
));
GetProfileStringW
(
wszSounds
,
(
LPWSTR
)
lpszName
,
wszNull
,
str
,
sizeof
(
str
)
/
sizeof
(
str
[
0
]));
GetProfileStringW
(
wszSounds
,
lpszName
,
wszNull
,
str
,
sizeof
(
str
)
/
sizeof
(
str
[
0
]));
if
(
lstrlenW
(
str
)
==
0
)
if
(
lstrlenW
(
str
)
==
0
)
{
{
if
(
uFlags
&
SND_NODEFAULT
)
goto
next
;
if
(
uFlags
&
SND_NODEFAULT
)
goto
next
;
...
@@ -420,7 +420,7 @@ errCleanUp:
...
@@ -420,7 +420,7 @@ errCleanUp:
return
bRet
;
return
bRet
;
}
}
BOOL
MULTIMEDIA_PlaySound
(
const
void
*
pszSound
,
HMODULE
hmod
,
DWORD
fdwSound
,
BOOL
bUnicode
)
static
BOOL
MULTIMEDIA_PlaySound
(
const
void
*
pszSound
,
HMODULE
hmod
,
DWORD
fdwSound
,
BOOL
bUnicode
)
{
{
WINE_PLAYSOUND
*
wps
=
NULL
;
WINE_PLAYSOUND
*
wps
=
NULL
;
...
...
dlls/winmm/winealsa/audio.c
View file @
5c2a891c
...
@@ -627,8 +627,6 @@ if (err<0) { \
...
@@ -627,8 +627,6 @@ if (err<0) { \
if
(
!
sw
)
if
(
!
sw
)
return
;
return
;
}
}
/* return a string duplicated on the win32 process heap, free with HeapFree */
/* return a string duplicated on the win32 process heap, free with HeapFree */
...
@@ -644,7 +642,7 @@ static char* ALSA_strdup(char *s) {
...
@@ -644,7 +642,7 @@ static char* ALSA_strdup(char *s) {
* Returns either "default" or reads the registry so the user can
* Returns either "default" or reads the registry so the user can
* override the playback/record device used.
* override the playback/record device used.
*/
*/
char
*
ALSA_GetDeviceFromReg
(
char
*
value
)
static
char
*
ALSA_GetDeviceFromReg
(
char
*
value
)
{
{
DWORD
res
;
DWORD
res
;
DWORD
type
;
DWORD
type
;
...
@@ -1323,7 +1321,7 @@ static DWORD wodPlayer_NotifyCompletions(WINE_WAVEOUT* wwo, BOOL force)
...
@@ -1323,7 +1321,7 @@ static DWORD wodPlayer_NotifyCompletions(WINE_WAVEOUT* wwo, BOOL force)
}
}
void
wait_for_poll
(
snd_pcm_t
*
handle
,
struct
pollfd
*
ufds
,
unsigned
int
count
)
static
void
wait_for_poll
(
snd_pcm_t
*
handle
,
struct
pollfd
*
ufds
,
unsigned
int
count
)
{
{
unsigned
short
revents
;
unsigned
short
revents
;
...
...
dlls/winmm/winealsa/midi.c
View file @
5c2a891c
...
@@ -1084,7 +1084,7 @@ static DWORD modReset(WORD wDevID)
...
@@ -1084,7 +1084,7 @@ static DWORD modReset(WORD wDevID)
*
*
* Helper for ALSA_MidiInit
* Helper for ALSA_MidiInit
*/
*/
void
ALSA_AddMidiPort
(
snd_seq_client_info_t
*
cinfo
,
snd_seq_port_info_t
*
pinfo
,
int
cap
,
int
type
)
static
void
ALSA_AddMidiPort
(
snd_seq_client_info_t
*
cinfo
,
snd_seq_port_info_t
*
pinfo
,
int
cap
,
int
type
)
{
{
if
(
cap
&
SND_SEQ_PORT_CAP_WRITE
)
{
if
(
cap
&
SND_SEQ_PORT_CAP_WRITE
)
{
TRACE
(
"OUT (%d:%s:%s:%d:%s:%x)
\n
"
,
snd_seq_client_info_get_client
(
cinfo
),
TRACE
(
"OUT (%d:%s:%s:%d:%s:%x)
\n
"
,
snd_seq_client_info_get_client
(
cinfo
),
...
...
dlls/winmm/winearts/audio.c
View file @
5c2a891c
...
@@ -276,8 +276,8 @@ static DWORD bytes_to_mmtime(LPMMTIME lpTime, DWORD position,
...
@@ -276,8 +276,8 @@ static DWORD bytes_to_mmtime(LPMMTIME lpTime, DWORD position,
/* Volume functions derived from Alsaplayer source */
/* Volume functions derived from Alsaplayer source */
/* length is the number of 16 bit samples */
/* length is the number of 16 bit samples */
void
volume_effect16
(
void
*
bufin
,
void
*
bufout
,
int
length
,
int
left
,
static
void
volume_effect16
(
void
*
bufin
,
void
*
bufout
,
int
length
,
int
left
,
int
right
,
int
nChannels
)
int
right
,
int
nChannels
)
{
{
short
*
d_out
=
(
short
*
)
bufout
;
short
*
d_out
=
(
short
*
)
bufout
;
short
*
d_in
=
(
short
*
)
bufin
;
short
*
d_in
=
(
short
*
)
bufin
;
...
@@ -302,8 +302,8 @@ void volume_effect16(void *bufin, void* bufout, int length, int left,
...
@@ -302,8 +302,8 @@ void volume_effect16(void *bufin, void* bufout, int length, int left,
}
}
/* length is the number of 8 bit samples */
/* length is the number of 8 bit samples */
void
volume_effect8
(
void
*
bufin
,
void
*
bufout
,
int
length
,
int
left
,
static
void
volume_effect8
(
void
*
bufin
,
void
*
bufout
,
int
length
,
int
left
,
int
right
,
int
nChannels
)
int
right
,
int
nChannels
)
{
{
BYTE
*
d_out
=
(
BYTE
*
)
bufout
;
BYTE
*
d_out
=
(
BYTE
*
)
bufout
;
BYTE
*
d_in
=
(
BYTE
*
)
bufin
;
BYTE
*
d_in
=
(
BYTE
*
)
bufin
;
...
@@ -331,7 +331,7 @@ void volume_effect8(void *bufin, void* bufout, int length, int left,
...
@@ -331,7 +331,7 @@ void volume_effect8(void *bufin, void* bufout, int length, int left,
* ARTS_CloseWaveOutDevice
* ARTS_CloseWaveOutDevice
*
*
*/
*/
void
ARTS_CloseWaveOutDevice
(
WINE_WAVEOUT
*
wwo
)
static
void
ARTS_CloseWaveOutDevice
(
WINE_WAVEOUT
*
wwo
)
{
{
arts_close_stream
(
wwo
->
play_stream
);
/* close the arts stream */
arts_close_stream
(
wwo
->
play_stream
);
/* close the arts stream */
wwo
->
play_stream
=
(
arts_stream_t
*
)
-
1
;
wwo
->
play_stream
=
(
arts_stream_t
*
)
-
1
;
...
@@ -350,7 +350,7 @@ void ARTS_CloseWaveOutDevice(WINE_WAVEOUT* wwo)
...
@@ -350,7 +350,7 @@ void ARTS_CloseWaveOutDevice(WINE_WAVEOUT* wwo)
* ARTS_CloseWaveInDevice
* ARTS_CloseWaveInDevice
*
*
*/
*/
void
ARTS_CloseWaveInDevice
(
WINE_WAVEIN
*
wwi
)
static
void
ARTS_CloseWaveInDevice
(
WINE_WAVEIN
*
wwi
)
{
{
arts_close_stream
(
wwi
->
record_stream
);
/* close the arts stream */
arts_close_stream
(
wwi
->
record_stream
);
/* close the arts stream */
wwi
->
record_stream
=
(
arts_stream_t
*
)
-
1
;
wwi
->
record_stream
=
(
arts_stream_t
*
)
-
1
;
...
...
dlls/winmm/winenas/audio.c
View file @
5c2a891c
...
@@ -330,11 +330,11 @@ static DWORD bytes_to_mmtime(LPMMTIME lpTime, DWORD position,
...
@@ -330,11 +330,11 @@ static DWORD bytes_to_mmtime(LPMMTIME lpTime, DWORD position,
/*======================================================================*
/*======================================================================*
* Low level WAVE implementation *
* Low level WAVE implementation *
*======================================================================*/
*======================================================================*/
#if 0
/* Volume functions derived from Alsaplayer source */
/* Volume functions derived from Alsaplayer source */
/* length is the number of 16 bit samples */
/* length is the number of 16 bit samples */
void
volume_effect16
(
void
*
bufin
,
void
*
bufout
,
int
length
,
int
left
,
static
void volume_effect16(void *bufin, void* bufout, int length, int left,
int
right
,
int
nChannels
)
int right, int
nChannels)
{
{
short *d_out = (short *)bufout;
short *d_out = (short *)bufout;
short *d_in = (short *)bufin;
short *d_in = (short *)bufin;
...
@@ -359,8 +359,8 @@ void volume_effect16(void *bufin, void* bufout, int length, int left,
...
@@ -359,8 +359,8 @@ void volume_effect16(void *bufin, void* bufout, int length, int left,
}
}
/* length is the number of 8 bit samples */
/* length is the number of 8 bit samples */
void
volume_effect8
(
void
*
bufin
,
void
*
bufout
,
int
length
,
int
left
,
static
void volume_effect8(void *bufin, void* bufout, int length, int left,
int
right
,
int
nChannels
)
int right, int
nChannels)
{
{
char *d_out = (char *)bufout;
char *d_out = (char *)bufout;
char *d_in = (char *)bufin;
char *d_in = (char *)bufin;
...
@@ -383,12 +383,13 @@ void volume_effect8(void *bufin, void* bufout, int length, int left,
...
@@ -383,12 +383,13 @@ void volume_effect8(void *bufin, void* bufout, int length, int left,
}
}
}
}
}
}
#endif
/******************************************************************
/******************************************************************
* NAS_CloseDevice
* NAS_CloseDevice
*
*
*/
*/
void
NAS_CloseDevice
(
WINE_WAVEOUT
*
wwo
)
static
void
NAS_CloseDevice
(
WINE_WAVEOUT
*
wwo
)
{
{
TRACE
(
"NAS_CloseDevice
\n
"
);
TRACE
(
"NAS_CloseDevice
\n
"
);
nas_close
(
wwo
);
nas_close
(
wwo
);
...
...
programs/clock/main.c
View file @
5c2a891c
...
@@ -320,7 +320,7 @@ static VOID CLOCK_Paint(HWND hWnd)
...
@@ -320,7 +320,7 @@ static VOID CLOCK_Paint(HWND hWnd)
* CLOCK_WndProc
* CLOCK_WndProc
*/
*/
LRESULT
WINAPI
CLOCK_WndProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
static
LRESULT
WINAPI
CLOCK_WndProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
switch
(
msg
)
{
switch
(
msg
)
{
/* L button drag moves the window */
/* L button drag moves the window */
...
...
programs/control/control.c
View file @
5c2a891c
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#include "params.h"
#include "params.h"
extern
void
WINAPI
Control_RunDLL
(
HWND
hWnd
,
HINSTANCE
hInst
,
LPCSTR
cmd
,
DWORD
nCmdShow
);
extern
void
WINAPI
Control_RunDLL
(
HWND
hWnd
,
HINSTANCE
hInst
,
LPCSTR
cmd
,
DWORD
nCmdShow
);
void
launch
(
const
char
*
what
)
static
void
launch
(
const
char
*
what
)
{
{
Control_RunDLL
(
GetDesktopWindow
(),
0
,
what
,
SW_SHOW
);
Control_RunDLL
(
GetDesktopWindow
(),
0
,
what
,
SW_SHOW
);
exit
(
0
);
exit
(
0
);
...
...
programs/taskmgr/dbgchnl.c
View file @
5c2a891c
...
@@ -157,7 +157,7 @@ static int change_channel_CB(HANDLE hProcess, void* addr, char* buffer, void* pm
...
@@ -157,7 +157,7 @@ static int change_channel_CB(HANDLE hProcess, void* addr, char* buffer, void* pm
return
1
;
return
1
;
}
}
void
*
get_symbol
(
HANDLE
hProcess
,
char
*
name
,
char
*
lib
)
static
void
*
get_symbol
(
HANDLE
hProcess
,
char
*
name
,
char
*
lib
)
{
{
char
buffer
[
sizeof
(
IMAGEHLP_SYMBOL
)
+
256
];
char
buffer
[
sizeof
(
IMAGEHLP_SYMBOL
)
+
256
];
SYMBOL_INFO
*
si
=
(
SYMBOL_INFO
*
)
buffer
;
SYMBOL_INFO
*
si
=
(
SYMBOL_INFO
*
)
buffer
;
...
...
programs/view/view.c
View file @
5c2a891c
...
@@ -31,7 +31,7 @@ int deltax = 0, deltay = 0;
...
@@ -31,7 +31,7 @@ int deltax = 0, deltay = 0;
int
width
=
0
,
height
=
0
;
int
width
=
0
,
height
=
0
;
BOOL
isAldus
;
BOOL
isAldus
;
BOOL
FileOpen
(
HWND
hWnd
,
char
*
fn
,
int
fnsz
)
static
BOOL
FileOpen
(
HWND
hWnd
,
char
*
fn
,
int
fnsz
)
{
{
OPENFILENAME
ofn
=
{
sizeof
(
OPENFILENAME
),
OPENFILENAME
ofn
=
{
sizeof
(
OPENFILENAME
),
0
,
0
,
NULL
,
NULL
,
0
,
0
,
NULL
,
0
,
0
,
NULL
,
NULL
,
0
,
0
,
NULL
,
...
...
programs/wcmd/builtins.c
View file @
5c2a891c
...
@@ -515,7 +515,7 @@ int status;
...
@@ -515,7 +515,7 @@ int status;
*
*
* Make a copy of the environment.
* Make a copy of the environment.
*/
*/
WCHAR
*
WCMD_dupenv
(
const
WCHAR
*
env
)
static
WCHAR
*
WCMD_dupenv
(
const
WCHAR
*
env
)
{
{
WCHAR
*
env_copy
;
WCHAR
*
env_copy
;
int
len
;
int
len
;
...
@@ -575,7 +575,7 @@ void WCMD_setlocal (const char *s) {
...
@@ -575,7 +575,7 @@ void WCMD_setlocal (const char *s) {
/*****************************************************************************
/*****************************************************************************
* WCMD_strchrW
* WCMD_strchrW
*/
*/
inline
WCHAR
*
WCMD_strchrW
(
WCHAR
*
str
,
WCHAR
ch
)
static
inline
WCHAR
*
WCMD_strchrW
(
WCHAR
*
str
,
WCHAR
ch
)
{
{
while
(
*
str
)
while
(
*
str
)
{
{
...
@@ -757,7 +757,7 @@ DWORD count;
...
@@ -757,7 +757,7 @@ DWORD count;
/****************************************************************************
/****************************************************************************
* WCMD_compare
* WCMD_compare
*/
*/
int
WCMD_compare
(
const
void
*
a
,
const
void
*
b
)
static
int
WCMD_compare
(
const
void
*
a
,
const
void
*
b
)
{
{
int
r
;
int
r
;
const
char
*
const
*
str_a
=
a
,
*
const
*
str_b
=
b
;
const
char
*
const
*
str_a
=
a
,
*
const
*
str_b
=
b
;
...
@@ -773,7 +773,7 @@ int WCMD_compare( const void *a, const void *b )
...
@@ -773,7 +773,7 @@ int WCMD_compare( const void *a, const void *b )
*
*
* sort variables into order for display
* sort variables into order for display
*/
*/
void
WCMD_setshow_sortenv
(
const
char
*
s
)
static
void
WCMD_setshow_sortenv
(
const
char
*
s
)
{
{
UINT
count
=
0
,
len
=
0
,
i
;
UINT
count
=
0
,
len
=
0
,
i
;
const
char
**
str
;
const
char
**
str
;
...
...
programs/wineconsole/curses.c
View file @
5c2a891c
...
@@ -267,7 +267,7 @@ static void WCCURSES_PosCursor(const struct inner_data* data)
...
@@ -267,7 +267,7 @@ static void WCCURSES_PosCursor(const struct inner_data* data)
*
*
* Sets a new shape for the cursor
* Sets a new shape for the cursor
*/
*/
void
WCCURSES_ShapeCursor
(
struct
inner_data
*
data
,
int
size
,
int
vis
,
BOOL
force
)
static
void
WCCURSES_ShapeCursor
(
struct
inner_data
*
data
,
int
size
,
int
vis
,
BOOL
force
)
{
{
/* we can't do much about the size... */
/* we can't do much about the size... */
data
->
curcfg
.
cursor_size
=
size
;
data
->
curcfg
.
cursor_size
=
size
;
...
@@ -280,7 +280,7 @@ void WCCURSES_ShapeCursor(struct inner_data* data, int size, int vis, BOOL force
...
@@ -280,7 +280,7 @@ void WCCURSES_ShapeCursor(struct inner_data* data, int size, int vis, BOOL force
*
*
* Recomputes all the components (mainly scroll bars) positions
* Recomputes all the components (mainly scroll bars) positions
*/
*/
void
WCCURSES_ComputePositions
(
struct
inner_data
*
data
)
static
void
WCCURSES_ComputePositions
(
struct
inner_data
*
data
)
{
{
int
x
,
y
;
int
x
,
y
;
...
...
programs/wineconsole/user.c
View file @
5c2a891c
...
@@ -202,7 +202,7 @@ static void WCUSER_ShapeCursor(struct inner_data* data, int size, int vis, BOOL
...
@@ -202,7 +202,7 @@ static void WCUSER_ShapeCursor(struct inner_data* data, int size, int vis, BOOL
*
*
* Recomputes all the components (mainly scroll bars) positions
* Recomputes all the components (mainly scroll bars) positions
*/
*/
void
WCUSER_ComputePositions
(
struct
inner_data
*
data
)
static
void
WCUSER_ComputePositions
(
struct
inner_data
*
data
)
{
{
RECT
r
;
RECT
r
;
int
dx
,
dy
;
int
dx
,
dy
;
...
@@ -1299,7 +1299,7 @@ static LRESULT CALLBACK WCUSER_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM
...
@@ -1299,7 +1299,7 @@ static LRESULT CALLBACK WCUSER_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM
*
*
*
*
*/
*/
void
WCUSER_DeleteBackend
(
struct
inner_data
*
data
)
static
void
WCUSER_DeleteBackend
(
struct
inner_data
*
data
)
{
{
if
(
!
PRIVATE
(
data
))
return
;
if
(
!
PRIVATE
(
data
))
return
;
if
(
PRIVATE
(
data
)
->
hMemDC
)
DeleteDC
(
PRIVATE
(
data
)
->
hMemDC
);
if
(
PRIVATE
(
data
)
->
hMemDC
)
DeleteDC
(
PRIVATE
(
data
)
->
hMemDC
);
...
...
programs/winepath/winepath.c
View file @
5c2a891c
...
@@ -40,7 +40,7 @@ typedef LPSTR (*wine_get_unix_file_name_t) ( LPCWSTR dos );
...
@@ -40,7 +40,7 @@ typedef LPSTR (*wine_get_unix_file_name_t) ( LPCWSTR dos );
/*
/*
* handle an option
* handle an option
*/
*/
int
option
(
int
shortopt
,
char
*
longopt
)
static
int
option
(
int
shortopt
,
char
*
longopt
)
{
{
const
char
*
helpmsg
=
const
char
*
helpmsg
=
"Convert PATH(s) to Unix or Windows long or short paths.
\n
"
"Convert PATH(s) to Unix or Windows long or short paths.
\n
"
...
@@ -83,7 +83,7 @@ int option(int shortopt, char *longopt)
...
@@ -83,7 +83,7 @@ int option(int shortopt, char *longopt)
/*
/*
* Parse command line options
* Parse command line options
*/
*/
int
parse_options
(
char
*
argv
[])
static
int
parse_options
(
char
*
argv
[])
{
{
int
outputformats
=
0
;
int
outputformats
=
0
;
int
done
=
0
;
int
done
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment