/* Check that there aren't any args remaining in the event */
static OSErr
-get_missing_params(AppleEvent *theAppleEvent)
+get_missing_params(const AppleEvent *theAppleEvent)
{
DescType theType;
Size actualSize;
/* Handle the Print or Quit events (by failing) */
static pascal OSErr
-handle_not(AppleEvent *theAppleEvent, AppleEvent *reply, long refCon)
+handle_not(const AppleEvent *theAppleEvent, AppleEvent *reply, unsigned long refCon)
{
#pragma unused (reply, refCon)
got_one = 1;
/* Handle the Open Application event (by ignoring it) */
static pascal OSErr
-handle_open_app(AppleEvent *theAppleEvent, AppleEvent *reply, long refCon)
+handle_open_app(const AppleEvent *theAppleEvent, AppleEvent *reply, unsigned long refCon)
{
#pragma unused (reply, refCon)
#if 0
/* Handle the Open Document event, by adding an argument */
static pascal OSErr
-handle_open_doc(AppleEvent *theAppleEvent, AppleEvent *reply, long refCon)
+handle_open_doc(const AppleEvent *theAppleEvent, AppleEvent *reply, unsigned long refCon)
{
#pragma unused (reply, refCon)
OSErr err;
static void
event_loop()
{
+#ifndef TARGET_API_MAC_CARBON
EventRecord event;
int n;
int ok;
AEProcessAppleEvent(&event);
}
}
+#endif
}
/* Get the argv vector, return argc */