*
*/
- /* TODO (Jussi)
- * * Clipboard does not work (at least some cases)
- * * ATSU font rendering has some problems
- * * Investigate and remove dead code (there is still lots of that)
- */
+/* TODO (Jussi)
+ * * Clipboard does not work (at least some cases)
+ * * ATSU font rendering has some problems
+ * * Investigate and remove dead code (there is still lots of that)
+ */
#include <Devices.h> /* included first to avoid CR problems */
#include "vim.h"
/* Get number of files in list */
*error = AECountItems(theList, numFiles);
if (*error)
- {
- return(fnames);
- }
+ return fnames;
/* Allocate the pointer list */
fnames = (char_u **) alloc(*numFiles * sizeof(char_u *));
{
/* Caller is able to clean up */
/* TODO: Should be clean up or not? For safety. */
- return(fnames);
+ return fnames;
}
/* Convert the FSSpec to a pathname */
error = AEGetParamPtr(theAEvent, keyDirectObject, typeChar, &typeCode, (Ptr) &SearchData, sizeof(WindowSearch), &actualSize);
if (error)
- {
- return(error);
- }
+ return error;
error = HandleUnusedParms(theAEvent);
if (error)
- {
- return(error);
- }
+ return error;
for (buf = firstbuf; buf != NULL; buf = buf->b_next)
if (buf->b_ml.ml_mfp != NULL
error = HandleUnusedParms(theAEvent);
if (error)
- {
- return(error);
- }
+ return error;
/* Send the reply */
/* replyObject.descriptorType = typeNull;
/* AECreateDesc(typeChar, (Ptr)&title[1], title[0], &data) */
error = AECreateList(nil, 0, false, &replyList);
if (error)
- {
- return(error);
- }
+ return error;
#if 0
error = AECountItems(&replyList, &numFiles);
error = AEGetParamPtr(theAEvent, keyDirectObject, typeChar, &typeCode, (Ptr) &GetTextData, sizeof(GetTextData), &actualSize);
if (error)
- {
- return(error);
- }
+ return error;
for (buf = firstbuf; buf != NULL; buf = buf->b_next)
if (buf->b_ml.ml_mfp != NULL)
}
error = HandleUnusedParms(theAEvent);
- if (error)
- {
- return(error);
- }
- return(error);
+ return error;
}
/*
/* the direct object parameter is the list of aliases to files (one or more) */
error = AEGetParamDesc(theAEvent, keyDirectObject, typeAEList, &theList);
if (error)
- {
- return(error);
- }
+ return error;
error = AEGetParamPtr(theAEvent, keyAEPosition, typeChar, &typeCode, (Ptr) &thePosition, sizeof(SelectionRange), &actualSize);
if (error == errAEDescNotFound)
error = noErr;
if (error)
- {
- return(error);
- }
+ return error;
/*
error = AEGetParamDesc(theAEvent, keyAEPosition, typeChar, &thePosition);
/* Fake mouse event to wake from stall */
PostEvent(mouseUp, 0);
- finished:
+finished:
AEDisposeDesc(&theList); /* dispose what we allocated */
error = HandleUnusedParms(theAEvent);
- if (error)
- {
- return(error);
- }
- return(error);
+ return error;
}
/*
OSErr error = noErr;
error = HandleUnusedParms(theAEvent);
- if (error)
- {
- return(error);
- }
-
- return(error);
+ return error;
}
/*
error = HandleUnusedParms(theAEvent);
if (error)
- {
- return(error);
- }
+ return error;
/* Need to fake a :confirm qa */
do_cmdline_cmd((char_u *)"confirm qa");
- return(error);
+ return error;
}
/*
OSErr error = noErr;
error = HandleUnusedParms(theAEvent);
- if (error)
- {
- return(error);
- }
- return(error);
+ return error;
}
/*
OSErr error = noErr;
error = HandleUnusedParms(theAEvent);
- if (error)
- {
- return(error);
- }
- return(error);
+ return error;
}
return noErr;
- bail:
+bail:
/*
* when we fail give any additional callback handler a chance to perform
* it's actions
#endif
static OSErr
-receiveHandler(WindowRef theWindow, void* handlerRefCon, DragRef theDrag)
+receiveHandler(WindowRef theWindow, void *handlerRefCon, DragRef theDrag)
{
int x, y;
int_u modifiers;
SetControl32BitMaximum (sb->id, max);
SetControl32BitMinimum (sb->id, 0);
SetControl32BitValue (sb->id, val);
- SetControlViewSize (sb->id, size);
+ SetControlViewSize (sb->id, size);
#ifdef DEBUG_MAC_SB
printf("thumb_sb (%x) %x, %x,%x\n",sb->id, val, size, max);
#endif