home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / macfe / debug / xp_mac.h < prev   
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.0 KB  |  67 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #pragma once
  20. #include <stdio.h>
  21. #include <Types.h>
  22. #include "poof.h"
  23.  
  24. /*-----------------------------------------------------------------------------
  25.     xp_MacToUnixErr
  26.     Module function. Maps Mac system errors to unix-stype errno errors.
  27. -----------------------------------------------------------------------------*/
  28.  
  29. extern int xp_MacToUnixErr (OSErr err);
  30.  
  31. /*-----------------------------------------------------------------------------
  32.     Debuging Setup
  33. -----------------------------------------------------------------------------*/
  34.  
  35. /*
  36. #ifdef DEBUG
  37.  
  38. class DebugMgr: public Manager {
  39. public:
  40.                     DebugMgr ();
  41.                     ~DebugMgr ();
  42.     void            Inspect (OSType item, int value);
  43.             // Delegation
  44.     Boolean         ObeyCommand (CommandT command, void *param);
  45.     void             FindCommandStatus (CommandT command, Boolean &enabled, 
  46.                         Boolean &usesMark, Char16 &mark, Str255 name);
  47.     void            ExecuteSelf (MessageT message, void *ioParam);
  48.             // Printing
  49.     void             Trace (char *message, int length);
  50. private:    // Module
  51.     void            LoadState ();
  52.     void            SaveState ();
  53.     void             EnterSelf ();
  54.     void             ExitSelf ();
  55. public:
  56.     FILE *            fTraceFile;
  57. private:
  58.     LWindow            *fInspector;
  59.     OSErr            fTraceLog;
  60. };
  61.  
  62. extern DebugMgr TheDebugMgr;
  63.  
  64. #endif // DEBUG
  65. */
  66.  
  67.