Changeset 1398 for trunk/dll/errutil.c


Ignore:
Timestamp:
Feb 21, 2009, 6:43:00 PM (16 years ago)
Author:
Gregg Young
Message:

Move embeded strings to PCSZ variables or string table; Eliminate Error2 functions Runtime_Error with NULL format string returns "No data" error. Change declares from PSZ to PCSZ in functions where the variable isn't changed. Added btm as an executable file type in several additional places. Use fProtectOnly to prevent attempt to execute Dos and Win programs on "Protect only" installs in several additional places.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/errutil.c

    r1395 r1398  
    4949#include "fm3str.h"
    5050#include "notebook.h"                   // fErrorBeepOff
     51#include "init.h"                       // Data declares
    5152
    5253#pragma data_seg(GLOBAL2)
     
    295296
    296297//== Runtime_Error: report runtime library error using passed message string ===
     298//If pszFmt is NULL a No Data error message is returned GKY 20 Feb 09 (Replaces Runtime_Error2)
    297299
    298300VOID Runtime_Error(PCSZ pszSrcFile, UINT uSrcLineNo, PCSZ pszFmt, ...)
     
    302304
    303305  // Format caller's message
     306  if (!pszFmt)
     307    pszFmt = PCSZ_NODATA;
    304308  va_start(va, pszFmt);
    305309  szMsg[sizeof(szMsg) - 1] = 0;
     
    326330//== Runtime_Error2: report runtime library error using passed message id ===
    327331
    328 VOID Runtime_Error2(PCSZ pszSrcFile, UINT uSrcLineNo, UINT idMsg)
     332/*VOID Runtime_Error2(PCSZ pszSrcFile, UINT uSrcLineNo, UINT idMsg)
    329333{
    330334  Runtime_Error(pszSrcFile, uSrcLineNo, GetPString(idMsg));
     
    332336} // Runtime_Error2
    333337
    334 // fixme to be rename to Misc_Error
     338// fixme to be rename to Misc_Error */
    335339
    336340//=== saymsg: report misc error using passed message ===
Note: See TracChangeset for help on using the changeset viewer.