PGSETJMP.H File Reference

#include "CPUDEFS.H"
#include "PGERRORS.H"

Include dependency graph for PGSETJMP.H:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PGVolatile(x)   ((void) &x)
#define BOOLEAN_EXCEPTION   0x1000
#define pgGetError(globals)   (globals->last_error)
#define pgGetMessage(globals)   (globals->last_message)
#define pgGetReference(globals)   (globals->last_ref)
#define pgSetReference(globals, ref)   (globals->last_ref = ref)
#define pgReRaise(globals)   pgFailure(globals, pgGetError( globals ), pgGetMessage( globals ))
#define pgFailNIL(globals, allocation)   if (!(allocation)) pgFailure(globals, NO_MEMORY_ERR, 0)
#define pgFailZero(globals, allocation)   if (!(allocation)) pgFailure(globals, NO_MEMORY_ERR, 0)
#define pgFailBoolean(globals, b)   if ((b)) pgFailure( globals, BOOLEAN_EXCEPTION, 0)
#define pgFailError(globals, error)   if (error != NO_ERROR) pgFailure( globals, error, 0)
#define pgSetFailureHandler(globals, handler)   globals->last_handler = handler

Typedefs

typedef pgm_globals pgm_globals
typedef pgm_globals PG_FAR * pgm_globals_ptr
typedef pg_fail_info pg_fail_info
typedef pg_fail_info PG_FAR * pg_fail_info_ptr

Functions

typedef PG_FN_PASCAL (void, pg_error_handler)(pgm_globals_ptr globals)
 PG_PASCAL (void) pgPushHandler(pgm_globals_ptr globals
 PG_PASCAL (pg_error) pgProcessError(pg_error error)

Variables

pg_fail_info_ptr fail_info
pg_error error
pg_error long message
pg_error new_error
pg_error long new_msg
pg_error long void PG_FAR * new_ref
unsigned long what_ref
pg_error acceptable_error
pg_error pg_error actual_error


Define Documentation

#define BOOLEAN_EXCEPTION   0x1000
 

Definition at line 50 of file PGSETJMP.H.

#define pgFailBoolean globals,
 )     if ((b)) pgFailure( globals, BOOLEAN_EXCEPTION, 0)
 

Definition at line 100 of file PGSETJMP.H.

#define pgFailError globals,
error   )     if (error != NO_ERROR) pgFailure( globals, error, 0)
 

Definition at line 102 of file PGSETJMP.H.

#define pgFailNIL globals,
allocation   )     if (!(allocation)) pgFailure(globals, NO_MEMORY_ERR, 0)
 

Definition at line 96 of file PGSETJMP.H.

#define pgFailZero globals,
allocation   )     if (!(allocation)) pgFailure(globals, NO_MEMORY_ERR, 0)
 

Definition at line 98 of file PGSETJMP.H.

#define pgGetError globals   )     (globals->last_error)
 

Definition at line 90 of file PGSETJMP.H.

#define pgGetMessage globals   )     (globals->last_message)
 

Definition at line 91 of file PGSETJMP.H.

#define pgGetReference globals   )     (globals->last_ref)
 

Definition at line 92 of file PGSETJMP.H.

#define pgReRaise globals   )     pgFailure(globals, pgGetError( globals ), pgGetMessage( globals ))
 

Definition at line 94 of file PGSETJMP.H.

#define pgSetFailureHandler globals,
handler   )     globals->last_handler = handler
 

Definition at line 104 of file PGSETJMP.H.

#define pgSetReference globals,
ref   )     (globals->last_ref = ref)
 

Definition at line 93 of file PGSETJMP.H.

#define PGVolatile  )     ((void) &x)
 

Definition at line 48 of file PGSETJMP.H.


Typedef Documentation

typedef struct pg_fail_info pg_fail_info
 

Definition at line 57 of file PGSETJMP.H.

typedef pg_fail_info PG_FAR* pg_fail_info_ptr
 

Definition at line 58 of file PGSETJMP.H.

typedef struct pgm_globals pgm_globals
 

Definition at line 54 of file PGSETJMP.H.

typedef pgm_globals PG_FAR* pgm_globals_ptr
 

Definition at line 55 of file PGSETJMP.H.


Function Documentation

typedef PG_FN_PASCAL void  ,
pg_error_handler 
 

PG_PASCAL pg_error   ) 
 

PG_PASCAL void   ) 
 


Variable Documentation

pg_error acceptable_error
 

Definition at line 74 of file PGSETJMP.H.

pg_error pg_error actual_error
 

Definition at line 74 of file PGSETJMP.H.

pg_error error
 

Definition at line 69 of file PGSETJMP.H.

Referenced by addday(), adddaynamesrow(), browsernewwindow(), BuildAFPVolMountInfo(), BuildAFPXVolMountInfo(), BumpDate(), callprotocolhandler(), carbonCreateFormatAndSetting(), carbonSessionDefaultPageAndSettingValidate(), cardFastScript(), ccloadfile(), ccnewrecord(), ccstart(), ChangeCreatorType(), ChangeFDFlags(), CheckObjectLock(), CheckVolLock(), CopyDirectoryAccess(), CopyFileMgrAttributes(), copyonefile(), daveNetMassager(), dbopenfile(), dbshadowavaillist(), dbwriteshadowavaillist(), DeleteDirectory(), DeleteDirectoryContents(), deletefile(), DetermineVRefNum(), editappwindow(), editverb(), evaluatelogical(), evaluatewith(), fifopenfile(), filedelete(), fileseteof(), frontDeleteCardTable(), frontEditTable(), frontGetTable(), frontSetRuntimeCard(), frontStartCard(), FSReadNoCache(), FSWriteNoCache(), fwsNetEventCloseStream(), fwsNetEventReadStream(), GetCatInfoNoName(), GetDInfo(), GetDirectoryID(), GetDirItems(), GetDirName(), getEmbeddedTable(), GetFileLocation(), GetFilenameFromPathname(), GetFileSize(), GetIOACUser(), GetObjectLocation(), GetParentID(), GetUGEntries(), GetVolFileSystemID(), GetVolState(), GetVolumeInfoNoName(), groupvaluevisit(), hashpackexternal(), hashpackvisit(), hashstatsverb(), HMoveRenameCompat(), HOpenAware(), HOpenRFAware(), htmlbuildmacrocontext(), IACgetcardattributes(), IACgetobjectattributes(), indexpageverb(), initappletwires(), initprint(), inittablestructure(), iowaunpack(), issafemacro(), landsystem6unpackverb(), langexternalmemoryunpack(), langexternalunpack(), langipcbuildmessage(), langipcconvertaelist(), langipcconvertoplist(), langipcgeteventattr(), langipcstart(), langunpacktreenode(), langunpacktreevisit(), listsubtractvalue(), listtostring(), lockfile(), locksemaphoreverb(), makeintegerlist(), makelistvalue(), makerecordvalue(), mathfunctionvalue(), menewmenurecord(), menufunctionvalue(), moveIntoCardWindow(), mrcalendargetfirstaddressverb(), mrcalendargetfirstday(), mrcalendargetlastaddressverb(), mrcalendargetlastday(), myMoof(), newappwindow(), newcancoonrecord(), newCardWindow(), newrecord(), newshellwindow(), newshellwindowinfo(), odbOpenFile(), OnLine(), openappwindow(), openresourcefile(), opfunctionvalue(), opgetlangtext(), opgetsourceverb(), oppacklist(), oppushhandle(), opsetexpansionstateverb(), opunpacklist(), opunshifthandle(), osaCoerceFromDesc(), osaCoerceToDesc(), osaDisplay(), osaExecute(), osaGetSource(), osahandleevent(), outtextvisit(), packiconsuite(), padwithzerosverb(), parseargsverb(), parsepopcharconst(), pictfunctionvalue(), processhtmlmacrosverb(), recalcclone(), RestoreDefault(), RetrieveAFPVolMountInfo(), RetrieveAFPXVolMountInfo(), rundirectiveverb(), runlangscript(), runoutlinedirectivesverb(), saveappwindow(), SetDefault(), SetDInfo(), settargetglobals(), shellinitprint(), shellnewfile(), shellopenfile(), stringfunctionvalue(), stringtopattern(), tableunpacktable(), tableVerb(), uisInit(), unlockfile(), unmergehandles(), UnmountAndEject(), unpackiconsuite(), unpackobject(), utf16toansi(), webserverlocaterespondercontextbuilder(), windowfunctionvalue(), wpfunctionvalue(), wpunpack(), XGetVolumeInfoNoName(), and xmlgetaddresslist().

pg_fail_info_ptr fail_info
 

Definition at line 68 of file PGSETJMP.H.

pg_error long message
 

Definition at line 69 of file PGSETJMP.H.

Referenced by finderevent(), handlediskinserted(), landsystem7send(), and shellhandlejugglerevent().

pg_error new_error
 

Definition at line 71 of file PGSETJMP.H.

pg_error long new_msg
 

Definition at line 71 of file PGSETJMP.H.

pg_error long void PG_FAR* new_ref
 

Definition at line 71 of file PGSETJMP.H.

unsigned long what_ref
 

Definition at line 73 of file PGSETJMP.H.


Generated on Fri Jun 9 22:24:35 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6