Fix warnings from -Wmissing-declarations.

This commit is contained in:
Mike McCormack 2005-06-14 11:42:34 +00:00 committed by Alexandre Julliard
parent cdcb203691
commit 0f36d124a2
11 changed files with 27 additions and 12 deletions

View File

@ -46,6 +46,8 @@
#include "excpt.h"
#include "wine/debug.h"
#include "kernel_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(computername);
/* Registry key and value names */

View File

@ -1802,7 +1802,7 @@ BOOL WINAPI SetConsoleMode(HANDLE hcon, DWORD mode)
* WriteConsoleOutput helper: hides server call semantics
* writes a string at a given pos with standard attribute
*/
int CONSOLE_WriteChars(HANDLE hCon, LPCWSTR lpBuffer, int nc, COORD* pos)
static int CONSOLE_WriteChars(HANDLE hCon, LPCWSTR lpBuffer, int nc, COORD* pos)
{
int written = -1;

View File

@ -36,6 +36,8 @@
#include "wine/unicode.h"
#include "wine/debug.h"
#include "kernel_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(environ);
/* Notes:

View File

@ -44,12 +44,7 @@
#include "kernel16_private.h"
#include "console_private.h"
extern void LOCALE_InitRegistry(void);
extern void COMPUTERNAME_Init(void);
extern int __wine_set_signal_handler(unsigned, int (*)(unsigned));
/* memory/environ.c */
extern void ENV_CopyStartupInformation(void);
extern int main_create_flags;

View File

@ -119,6 +119,19 @@ extern void load_winedos(void);
/* thread.c */
extern TEB *THREAD_InitStack( TEB *teb, DWORD stack_size );
/* environ.c */
extern void ENV_CopyStartupInformation(void);
/* computername.c */
extern void COMPUTERNAME_Init(void);
/* locale.c */
extern void LOCALE_Init(void);
extern void LOCALE_InitRegistry(void);
/* oldconfig.c */
extern void convert_old_config(void);
extern struct winedos_exports
{
/* for global16.c */

View File

@ -36,6 +36,8 @@
#include "winreg.h"
#include "winternl.h"
#include "kernel_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(nls);
#define DATE_DATEVARSONLY 0x0100 /* only date stuff: yMdg */
@ -1988,7 +1990,7 @@ BOOL WINAPI EnumTimeFormatsW( TIMEFMT_ENUMPROCW lpTimeFmtEnumProc, LCID Locale,
* TODO
* The above note should be respected by GetCalendarInfoA.
*/
BOOL WINAPI NLS_EnumCalendarInfoAW(void *calinfoproc, LCID locale,
static BOOL NLS_EnumCalendarInfoAW(void *calinfoproc, LCID locale,
CALID calendar, CALTYPE caltype, BOOL unicode, BOOL ex )
{
WCHAR *buf, *opt = NULL, *iter = NULL;

View File

@ -87,9 +87,8 @@ static const WCHAR pifW[] = {'.','p','i','f',0};
static const WCHAR winevdmW[] = {'w','i','n','e','v','d','m','.','e','x','e',0};
extern void SHELL_LoadRegistry(void);
extern void convert_old_config(void);
extern void VERSION_Init( const WCHAR *appname );
extern void LOCALE_Init(void);
/***********************************************************************
* contains_path

View File

@ -568,7 +568,7 @@ static BOOL PROFILE_DeleteKey( PROFILESECTION **section,
*
* Delete all keys from a profile tree.
*/
void PROFILE_DeleteAllKeys( LPCWSTR section_name)
static void PROFILE_DeleteAllKeys( LPCWSTR section_name)
{
PROFILESECTION **section= &CurProfile->section;
while (*section)

View File

@ -46,6 +46,8 @@
#include "wine/server.h"
#include "wine/debug.h"
#include "kernel_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(thread);
WINE_DECLARE_DEBUG_CHANNEL(relay);

View File

@ -75,7 +75,7 @@ static WORD parse_dos_version( HKEY hkey )
/**********************************************************************
* get_dos_version
*/
WORD get_dos_version(void)
static WORD get_dos_version(void)
{
OBJECT_ATTRIBUTES attr;
UNICODE_STRING nameW;

View File

@ -82,7 +82,7 @@ static void WIN87_SetCtrlWord( CONTEXT86 *context )
CtrlWord_2 = LOWORD(context->Eax);
}
void WIN87_Init( CONTEXT86 *context )
static void WIN87_Init( CONTEXT86 *context )
{
if (Installed) {
#ifdef __i386__