Ignore:
Timestamp:
Jan 13, 2000, 9:09:09 PM (26 years ago)
Author:
sandervl
Message:

logging changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/misc.cpp

    r2298 r2430  
    1 /* $Id: misc.cpp,v 1.16 2000-01-02 22:09:01 sandervl Exp $ */
     1/* $Id: misc.cpp,v 1.17 2000-01-13 20:09:09 sandervl Exp $ */
    22
    33/*
     
    244244static BOOL init = FALSE;
    245245static BOOL fLogging = TRUE;
     246static int  dwEnableLogging = 1;
    246247
    247248int SYSTEM EXPORT WriteLog(char *tekst, ...)
     
    272273  }
    273274
    274   if(fLogging && flog)
     275  if(fLogging && flog && (dwEnableLogging > 0))
    275276  {
    276277    THDB *thdb = GetThreadTHDB();
     
    285286      fprintf(flog, "\n");
    286287  }
    287   fflush(flog);
    288288  SetFS(sel);
    289289  return 1;
     290}
     291//******************************************************************************
     292//******************************************************************************
     293void SYSTEM DecreaseLogCount()
     294{
     295  dwEnableLogging--;
     296}
     297//******************************************************************************
     298//******************************************************************************
     299void SYSTEM IncreaseLogCount()
     300{
     301  dwEnableLogging++;
    290302}
    291303//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.