#include "copyright.h"#include <bool.h>#include "sysdep.h"Go to the source code of this file.
Defines | |
| #define | min(a, b) (((a) < (b)) ? (a) : (b)) |
| #define | max(a, b) (((a) > (b)) ? (a) : (b)) |
| #define | divRoundDown(n, s) ((n) / (s)) |
| #define | divRoundUp(n, s) (((n) / (s)) + ((((n) % (s)) > 0) ? 1 : 0)) |
| #define | ASSERT(condition) |
Typedefs | |
| typedef void(* | VoidFunctionPtr )(int arg) |
| typedef void(* | VoidNoArgFunctionPtr )() |
Functions | |
| void | DebugInit (char *flags) |
| bool | DebugIsEnabled (char flag) |
| void | DEBUG (char flag, char *format,...) |
|
|
|
Definition at line 39 of file utility.h. Referenced by OpenFile::ReadAt, and OpenFile::WriteAt. |
|
|
Definition at line 40 of file utility.h. Referenced by AddrSpace::AddrSpace, FileHeader::Allocate, and BitMap::BitMap. |
|
|
|
|
|
|
|
|
Definition at line 51 of file utility.h. Referenced by CallOnUserAbort, Console::Console, Disk::Disk, Thread::Fork, SynchList::Mapcar, List::Mapcar, Network::Network, PendingInterrupt::PendingInterrupt, Scheduler::Print, Interrupt::Schedule, Thread::StackAllocate, SynchConsole::SynchConsole, and Timer::Timer. |
|
|
Definition at line 52 of file utility.h. Referenced by CallOnUserAbort. |
|
||||||||||||||||
|
|
Definition at line 38 of file utility.cc. Referenced by Initialize.
00039 {
00040 enableFlags = flagList;
00041 }
|
|
|
Definition at line 49 of file utility.cc. Referenced by Interrupt::CheckIfDue, DEBUG, FileSystem::FileSystem, MailBox::Get, Machine::OneInstruction, PostOffice::PostalDelivery, Disk::ReadRequest, Machine::Run, PostOffice::Send, and Disk::WriteRequest.
00050 {
00051 if (enableFlags != NULL)
00052 return (strchr(enableFlags, flag) != 0)
00053 || (strchr(enableFlags, '+') != 0);
00054 else
00055 return FALSE;
00056 }
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002