# HG changeset patch # User Daniel Atallah # Date 1141708191 0 # Node ID 7ef6a2d0d9dac766dd36bcaccad71c985ea93301 # Parent 6de39a8cc2c1f3d747b10eafd1128cbe7db05ee2 [gaim-migrate @ 15808] Whitespace and warning fixes committer: Tailor Script diff -r 6de39a8cc2c1 -r 7ef6a2d0d9da plugins/tcl/tcl_win32.c --- a/plugins/tcl/tcl_win32.c Tue Mar 07 05:06:22 2006 +0000 +++ b/plugins/tcl/tcl_win32.c Tue Mar 07 05:09:51 2006 +0000 @@ -4,7 +4,7 @@ * gaim * * Copyright (C) 2003 Herman Bloggs - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or @@ -33,34 +33,29 @@ LPFNTCLCREATEINTERP wtcl_CreateInterp = NULL; LPFNTKINIT wtk_Init = NULL; -BOOL tcl_win32_init() { - if(!(wtcl_CreateInterp=(LPFNTCLCREATEINTERP)wgaim_find_and_loadproc("tcl84.dll", "Tcl_CreateInterp"))) { - gaim_debug(GAIM_DEBUG_INFO, "tcl", "tcl_win32_init error loading Tcl_CreateInterp\n"); - return FALSE; - } +static BOOL tcl_win32_init() { + if(!(wtcl_CreateInterp = (LPFNTCLCREATEINTERP) wgaim_find_and_loadproc("tcl84.dll", "Tcl_CreateInterp"))) { + gaim_debug(GAIM_DEBUG_INFO, "tcl", "tcl_win32_init error loading Tcl_CreateInterp\n"); + return FALSE; + } - if(!(wtk_Init=(LPFNTKINIT)wgaim_find_and_loadproc("tk84.dll", "Tk_Init"))) { - gaim_debug(GAIM_DEBUG_INFO, "tcl", "tcl_win32_init error loading Tk_Init\n"); - return FALSE; - } - return TRUE; + if(!(wtk_Init = (LPFNTKINIT) wgaim_find_and_loadproc("tk84.dll", "Tk_Init"))) { + gaim_debug(GAIM_DEBUG_INFO, "tcl", "tcl_win32_init error loading Tk_Init\n"); + return FALSE; + } + return TRUE; } BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { - switch( fdwReason ) { - case DLL_PROCESS_ATTACH: - return tcl_win32_init(); - - case DLL_THREAD_ATTACH: - break; + switch (fdwReason) { + case DLL_PROCESS_ATTACH: + return tcl_win32_init(); - case DLL_THREAD_DETACH: - break; - - case DLL_PROCESS_DETACH: - break; - } - return TRUE; + case DLL_THREAD_ATTACH: + case DLL_THREAD_DETACH: + case DLL_PROCESS_DETACH: + break; + } + return TRUE; } -