Changeset 1402 for trunk/dll/errutil.c


Ignore:
Timestamp:
Mar 14, 2009, 6:17:59 PM (16 years ago)
Author:
Gregg Young
Message:

Remove variable aurgs from docopy & unlinkf (not used); Move more strings to PCSZs and string table; Move PCSZs to compile time initialization; Fix hang on startup caused by a drive scan and a dircnr scan trying to update a drive in the tree at the same time (related to the "treeswitch options); Code cleanup mainly removal of old printfs, SayMsgs, DbgMsg and unneeded %s.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/errutil.c

    r1398 r1402  
    3232  07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error
    3333  07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook.
     34  08 Mar 09 GKY Remove Dos_Error2 (unused) and Runtime_Error2 (no advantage over using Runtime_Error)
    3435
    3536***********************************************************************/
     
    5051#include "notebook.h"                   // fErrorBeepOff
    5152#include "init.h"                       // Data declares
    52 
    53 #pragma data_seg(GLOBAL2)
    54 PSZ DEBUG_STRING;
    5553
    5654#pragma data_seg(DATA1)
     
    192190
    193191} // Dos_Error
    194 
    195 /*== Dos_Error2: report Dos...() error using passed message id ===
    196 
    197 INT Dos_Error2(ULONG mb_type, ULONG ulRC, HWND hwndOwner,
    198                PCSZ pszSrcFile, UINT uSrcLineNo, UINT idMsg)
    199 {
    200   return Dos_Error(mb_type, ulRC, hwndOwner, pszSrcFile, uSrcLineNo,
    201                    GetPString(idMsg));
    202 } // Dos_Error2 */
    203192
    204193/**
     
    328317} // Runtime_Error
    329318
    330 //== Runtime_Error2: report runtime library error using passed message id ===
    331 
    332 /*VOID Runtime_Error2(PCSZ pszSrcFile, UINT uSrcLineNo, UINT idMsg)
    333 {
    334   Runtime_Error(pszSrcFile, uSrcLineNo, GetPString(idMsg));
    335 
    336 } // Runtime_Error2
    337 
    338 // fixme to be rename to Misc_Error */
    339 
    340319//=== saymsg: report misc error using passed message ===
    341320
     
    400379
    401380} // Win_Error
    402 
    403 /*== Win_Error2: report Win...() error using passed message id ===
    404 
    405 VOID Win_Error2(HWND hwndErr, HWND hwndOwner,
    406                 PCSZ pszSrcFile, UINT uSrcLineNo, UINT idMsg)
    407 {
    408   Win_Error(hwndErr, hwndOwner, pszSrcFile, uSrcLineNo, GetPString(idMsg));
    409 
    410 } // Win_Error2 */
    411381
    412382/**
     
    437407} // Win_Error_NoMsgBox
    438408
    439 #pragma alloc_text(ERROR,Win_Error,Dos_Error,saymsg,showMsg,GetHiresTimeer)
     409#pragma alloc_text(ERROR,Win_Error,Dos_Error,saymsg,showMsg,Runtime_Error,GetMSecTimer)
Note: See TracChangeset for help on using the changeset viewer.