|
From: Tim R. <row...@us...> - 2003-05-07 23:49:57
|
Update of /cvsroot/squeak/squeak/platforms/Cross/vm
In directory sc8-pr-cvs1:/tmp/cvs-serv27169/platforms/Cross/vm
Modified Files:
sq.h
Log Message:
change browser plugin support; add null macros for most platforms and expect Mac platform specific file to override. See section labelled old browser plug-in support for specifics
Index: sq.h
===================================================================
RCS file: /cvsroot/squeak/squeak/platforms/Cross/vm/sq.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** sq.h 6 Mar 2002 10:13:50 -0000 1.5
--- sq.h 7 May 2003 23:49:50 -0000 1.6
***************
*** 9,12 ****
--- 9,13 ----
* RCSID: $Id$
*
+ * 02/26/03 tim change browser plugin support code
* 01/28/02 Tim add macro default for sqFilenameFromStringOpen
* and sqFTruncate
***************
*** 340,344 ****
int clipboardWriteFromAt(int count, int byteArrayIndex, int startIndex);
! /* browser plug-in support */
void plugInForceTimeToReturn(void);
int plugInInit(char *imageName);
--- 341,346 ----
int clipboardWriteFromAt(int count, int byteArrayIndex, int startIndex);
! /* old browser plug-in support, maintained for a little while */
! #if 1
void plugInForceTimeToReturn(void);
int plugInInit(char *imageName);
***************
*** 347,350 ****
--- 349,362 ----
int plugInShutdown(void);
int plugInTimeToReturn(void);
+ #endif
+ /* macros to support Mac browser plugin needs without ugly
+ * code in Interpreter
+ */
+ #define insufficientMemorySpecifiedError() error("Insufficient memory for this image")
+ #define insufficientMemoryAvailableError() error("Failed to allocate memory for the heap")
+ #define unableToReadImageError() error("Read failed or premature end of image file")
+ #define browserPluginReturnIfNeeded()
+ #define browserPluginInitialiseIfNeeded()
+
/* interpreter entry points needed by compiled primitives */
|