error.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "strings.h"
#include "dialogs.h"
#include "ops.h"
#include "resources.h"
#include "shell.h"
#include "shellhooks.h"
#include "error.h"

Include dependency graph for error.c:

Go to the source code of this file.

Defines

#define systemerrorlist   258
#define ctsystemerrors   92
#define unknownsystemerror   ctsystemerrors + 1
#define errorcushionsize   0x1800

Functions

boolean setoserrorparam (bigstring bs)
OSErr getoserror (void)
boolean getsystemerrorstring (OSErr errcode, bigstring bs)
static boolean getsafetycushion (void)
boolean memoryerror (void)
boolean oserror (OSErr errcode)
boolean initerror (void)

Variables

struct {
   short   errornumber
   hdltreenode   htree
   hdlhashnode   hnode
   hdltreenode   hcode
   long   offset
   hdlheadrecord   hnode
   FSSpec *   fsfile
   FSSpec   fsalias
   boolean   fl
   boolean   launched
   OSType   apptype
   bigstring   errormessage
   short   fnum
   short   fsize
   short   fstyle
herrorcushion
static OSErr lasterror = noErr


Define Documentation

#define ctsystemerrors   92
 

Definition at line 48 of file error.c.

Referenced by getsystemerrorstring().

#define errorcushionsize   0x1800
 

Referenced by getsafetycushion().

#define systemerrorlist   258
 

Definition at line 46 of file error.c.

Referenced by getsystemerrorstring().

#define unknownsystemerror   ctsystemerrors + 1
 


Function Documentation

OSErr getoserror void   ) 
 

Definition at line 274 of file error.c.

References lasterror.

Referenced by langipcfasterror(), langipchandleverb(), langipcopenapproutine(), langipcopendocroutine(), languntraperrors(), launchfunctionvalue(), osageterror(), and pusheventparameter().

static boolean getsafetycushion void   )  [static]
 

Definition at line 340 of file error.c.

References errorcushionsize, herrorcushion, NewHandle, and nil.

Referenced by getnewhandle(), initerror(), initmemory(), initsyserror(), memoryerror(), resizehandle(), and sysmemoryerror().

boolean getsystemerrorstring OSErr  errcode,
bigstring  bs
 

Definition at line 286 of file error.c.

References bigstring, ctsystemerrors, errornumber, getstringlist(), i, isemptystring, systemerrorlist, and systemerrortable.

Referenced by gettcperrorstring(), langipcerrormessage(), languntraperrors(), memoryerror(), oserror(), syserror(), and sysfunctionvalue().

Here is the call graph for this function:

boolean initerror void   ) 
 

Definition at line 487 of file error.c.

References getsafetycushion().

Referenced by shellinit().

Here is the call graph for this function:

boolean memoryerror void   ) 
 

Definition at line 349 of file error.c.

References bigstring, DisposeHandle, getsafetycushion(), getsystemerrorstring(), herrorcushion, lasterror, longinfinity, MemError, nil, noErr, shellcallmemoryhooks(), and shellerrormessage().

Referenced by alloctreenodeblock(), concathandles(), copyhandle(), disposehandle(), fwsNetEventLaunch(), fwsNetEventListenStream(), fwstransmitfile(), largefilebuffer(), loadfromhandletohandle(), menewmenubar(), mergehandles(), newclearhandle(), newfilledhandle(), newhandle(), newtexthandle(), sethandlesize(), testheapspace(), unmergehandles(), unpackwordsolutionenginefile(), wpnewbuffer(), wpnewpg(), wppacktext(), wppaste(), and wpunpacktext().

Here is the call graph for this function:

boolean oserror OSErr  errcode  ) 
 

Definition at line 396 of file error.c.

boolean setoserrorparam bigstring  bs  ) 
 

Definition at line 268 of file error.c.

References nil, and setparseparams().

Referenced by aliastofilespec(), filenotfounderror(), fileopener(), filesetdefaultpath(), filespectoalias(), getspecialfolderpath(), getvolumevalue(), langfunctionvalue(), launchapplication(), openresourcefile(), renamefile(), and setfserrorparam().

Here is the call graph for this function:


Variable Documentation

short errornumber
 

Definition at line 53 of file error.c.

Referenced by getsystemerrorstring().

struct { ... } herrorcushion
 

Referenced by getsafetycushion(), memoryerror(), and sysmemoryerror().

OSErr lasterror = noErr [static]
 

Definition at line 261 of file error.c.

Referenced by getoserror(), memoryerror(), and oserror().


Generated on Thu Jun 1 07:03:14 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6