Path: ns-mx!uunet!zaphod.mps.ohio-state.edu!qt.cs.utexas.edu!yale.edu!cmcl2!adm!smoke!gwyn
From: gwyn@smoke.brl.mil (Doug Gwyn)
Newsgroups: comp.sys.apple2
Subject: ORCA/C 1.2 header patches
Keywords: APW ORCA C header bug patch
Message-ID: <16792@smoke.brl.mil>
Date: 19 Jul 91 13:43:36 GMT
Organization: U.S. Army Ballistic Research Laboratory (BRL), APG, MD.
Lines: 38

Bug fixes and improvements for ORCA/C release 1.2 (including APW) header files:

To avoid copyright hassles, I show only enough of the context to make the patch.

        ASSERT.H:

#ifndef NDEBUG
extern void exit (int status);          /* DAG -- was missing */
extern int printf(char *format, ...);   /* DAG -- was missing */
#define assert(expression) (((expression) == 0) ? (printf("Assertion failed: file %s, line %d\n", __FILE__, __LINE__), exit(-1)): (void)0)      /* DAG -- added cast */

Note that this is still not a fully standard-conforming <assert.h>.

        MISCTOOL.H:

#define alreadyInQueue 0x0382
/* DAG -- added following for 5.0.4: */
#define badTimeVerb 0x0390  /* Invalid convVerb value */
#define badTimeData 0x0391  /* Invalid date or time to be converted */

extern pascal void ClrHeartBeat() inline(0x1403,dispatcher);
/* DAG -- added following for 5.0.4: */
extern pascal unsigned long ConvSeconds() inline(0x3703,dispatcher);

        QUICKDRAW.H:

#define mode640 0x0080  /* Argument to QDStartup */
#define noFastFont 0x1000  /* masterSCB bit; DAG -- added for 5.0.4 */

        SIGNAL.H:

void            (*signal(int sig, void (*func) (int)))(/*int*/);        /* DAG */
int             raise(int sig);

        WINDOW.H:

#define tmIdleEvents 0x00100000L
#define tmNoGetNextEvent 0x00200000L    /* DAG -- added for 5.0.4 */
