|
|
Dear Sirs;
I attach sysMacPict.c and sysMacPict.h files for MPW MrC.
Y.Tanabe
Kobe,Japan
mail->tec### [at] khrimorjp
home->http://www.kh.rim.or.jp/~techflux
MPW,OpenGL,Pov-Ray for MAC
Machine:
Power Mac DT233 RAM 160MByte VM is ON
MacOS: Mac OS J1-8.1
MPW Shell 3.5d3 Memory sets 48MByte
Universal Interfaces Header 3.0.1
Compiler:
MrC 4.1a7c3
Libraries:
SharedLibraries StdCLib 3.4.5
PPCLibraries PPCStdCLib.o 3.5d9
System Extension:
StdCLib 3.5d9
//CORRECTION START HERE
1.)
Replace and add
sysMacPict.c
sysMacPict.h
2.)
Add Boolean flag to struct file_handle_struct in "FRAME.H"
struct file_handle_struct
{
char *filename;
int mode;
int width, height;
int buffer_size;
char *buffer;
FILE *file;
int file_type; /* What format the output file is */
int (*Open_File_p) (struct file_handle_struct *handle,char *name, int
*width, int *height, int buffer_size, int mode);
void (*Write_Line_p) (struct file_handle_struct *handle,COLOUR
*line_data, int line_number);
int (*Read_Line_p) (struct file_handle_struct *handle,COLOUR
*line_data, int *line_number);
void (*Read_Image_p) (IMAGE *Image, char *filename);
void (*Close_File_p) (struct file_handle_struct *handle);
//TFC ADD
Boolean flag;
};
3.)
File ":MacSource:config.h"; line 379
File ":MacSource:PovMac.h"; line 71
change
#include <MacTypes.h>
to
#include <Types.h>
File ":MacSource:PovMac.h"; line 88
change
#include <ControlDefinitions.h>
to
//#include <ControlDefinitions.h>
File ":MacSource:DialogUtils.c"; line 901
change
#ifdef __UseNavEventData
switch(callBackParms->eventData.eventDataParms.event->what)
#else
switch(callBackParms->eventData.event->what)
#endif
to
//#ifdef __UseNavEventData
// switch(callBackParms->eventData.eventDataParms.event->what)
//#else
switch(callBackParms->eventData.event->what)
//#endif
File ":MacSource:DialogUtils.c"; line 911
change
#ifdef __UseNavEventData
pWindow =
(WindowPtr)(callBackParms->eventData.eventDataParms.event->message);
#else
pWindow = (WindowPtr)(callBackParms->eventData.event->message);
#endif
to
//#ifdef __UseNavEventData
// pWindow =
(WindowPtr)(callBackParms->eventData.eventDataParms.event->message);
//#else
pWindow = (WindowPtr)(callBackParms->eventData.event->message);
//#endif
File ":SOURCE:OPTIN.c"; line 1653
add top
#include "sysMacPict.h"
change
Histogram_File_Handle = GET_SYS_FILE_HANDLE ();
to
Histogram_File_Handle = Get_MacPICT_File_Handle();
File ":SOURCE:POVRAY.c"; line 1043
add top
#include "sysMacPict.h"
change
case 'S' : Output_File_Handle = GET_SYS_FILE_HANDLE();
def_ext=SYS_DEF_EXT; break;
to
case 'S' : Output_File_Handle = Get_MacPICT_File_Handle();
def_ext=SYS_DEF_EXT; break;
File ":SOURCE:PARSTXTR.c"; line 162
add top
#include "sysMacPict.h"
change
READ_SYS_IMAGE(Image, Name);
to
Read_MacPICT_Image(Image, Name);
File ":MacSource:DialogUtils.h"; line 116
change
// We don't need prototypes here, they are in Controls.h!
/*
pascal OSErr GetBevelButtonMenuValue(ControlHandle inButton, SInt16
*outValue);
pascal OSErr SetBevelButtonMenuValue(ControlHandle inButton, SInt16
inValue);
pascal OSErr GetBevelButtonMenuHandle(ControlHandle inButton, MenuHandle
*outHandle);
pascal OSErr SetBevelButtonGraphicAlignment(ControlHandle inButton,
ControlButtonGraphicAlignment inAlign, SInt16 inHOffset, SInt16
inVOffset);
pascal OSErr GetImageWellContentInfo(ControlHandle inButton,
ControlButtonContentInfoPtr info);
pascal OSErr SetImageWellContentInfo(ControlHandle inButton,
ControlButtonContentInfoPtr info);
*/
to
// We don't need prototypes here, they are in Controls.h!
pascal OSErr GetBevelButtonMenuValue(ControlHandle inButton, SInt16
*outValue);
pascal OSErr SetBevelButtonMenuValue(ControlHandle inButton, SInt16
inValue);
pascal OSErr GetBevelButtonMenuHandle(ControlHandle inButton, MenuHandle
*outHandle);
pascal OSErr SetBevelButtonGraphicAlignment(ControlHandle inButton,
ControlButtonGraphicAlignment inAlign, SInt16 inHOffset, SInt16
inVOffset);
pascal OSErr GetImageWellContentInfo(ControlHandle inButton,
ControlButtonContentInfoPtr info);
pascal OSErr SetImageWellContentInfo(ControlHandle inButton,
ControlButtonContentInfoPtr info);
File ":MacSource:DialogUtils.c"; line 1048
change
#if !defined(powerc) && !defined (__powerc)
to
//#if !defined(powerc) && !defined (__powerc)
File ":MacSource:DialogUtils.c"; line 1119
change
#endif
to
//#endif
4.)
POV-Ray.make
change
{PovRayMacDir}mpwRsrcs.r
# Make an XSym (debugging) file
# {ShowMakeSymProgress}
# MakeSym {MakeSymOptions} {AppName}.xcoff
{ShowRezProgress}
{RezTool} {PovRayMacDir}mpwRsrcs.r -o {Targ} -append
# Call Thorsten's tool to fix up the application's stack size
set StackSize 600000
Echo "# `date -s` ----- Setting App stack size to {StackSize}"
ChangeAppStack {AppName} -appstack StackSize
# Set file's creator type, turn on bundle bit, turn off inited bit
SetFile {Targ} -t APPL -c {AppSignature} -a Bi
to
{PovRayMacDir}mpwRsrcs.r
# Make an XSym (debugging) file
# {ShowMakeSymProgress}
# MakeSym {MakeSymOptions} {AppName}.xcoff
{ShowRezProgress}
{RezTool} {PovRayMacDir}mpwRsrcs.r -o {Targ} -append
# Call Thorsten's tool to fix up the application's stack size
# set StackSize 600000
# Echo "# `date -s` ----- Setting App stack size to {StackSize}"
# ChangeAppStack {AppName} -appstack StackSize
# Set file's creator type, turn on bundle bit, turn off inited bit
SetFile {Targ} -t APPL -c {AppSignature} -a Bi
5.)
mpwRsrcs.r
add top
#include "CodeFragmentTypes.r"
#define kDefaultStackSize 307200
add bottom
resource 'cfrg' (0)
{
{
kPowerPC,
kFullLib,
kNoVersionNum,
kNoVersionNum,
kDefaultStackSize,
kNoAppSubFolder,
kIsApp,
kOnDiskFlat,
kZeroOffset,
kWholeFork,
"POV-Ray"
}
};
//END
Post a reply to this message
Attachments:
Download 'iso-2022-jp' (49 KB)
Download 'iso-2022-jp' (4 KB)
|
|