home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
oct93
/
graphics
/
graphtal.lha
/
Graphtal
/
README.AMIGA
< prev
next >
Wrap
Text File
|
1993-08-26
|
6KB
|
173 lines
README.AMIGA
============
- To compile Graphtal on the Amiga you need GCC-233 and a lot of memory.
Don't forget to set a large stack size (256000 is fine) !
Because AmigaDOS isn't case sensitive you must edit string.h
(for more information on this read the header of string.h)
- Graphtal has a device for Rayshade output.
- I have include some tools to convert PPM output to IFF24 in bin
(to convert PPM output to IFF get the the PBM plus package)
- Note: some examples for Graphtal need a lot of memory (over 10MB) !
- Note: Graphtal needs the cpp to process the inputfile.
- GCC-233 and Rayshade are available by anonymous FTP in ftp.luth.se
or any other Aminet site
For more information on Graphtal please read the README file !
This is a list of changes made to the original
Graphtal_no_bison_no_flex-1.0.tar.Z distribution ...
==============================================================================
TO TRANSFORM Graphtal.Original/Expression.C
INTO Graphtal.Amiga/Expression.C ...
==============================================================================
*** CHANGE [81,85] IN Graphtal.Original/Expression.C TO [81,93] IN Graphtal.Amiga/Expression.C ***
< for (i=0; i<op2->theExpression->count(); i++)
< theExpression->append(op2->theExpression->item(i)->copy());
< for (i=0; i<op1->theExpression->count(); i++)
< theExpression->append(op1->theExpression->item(i)->copy());
< theExpression->append(oper);
---------------
>#ifdef AMIGA_GCC
> for (i=0; i<op1->theExpression->count(); i++)
> theExpression->append(op1->theExpression->item(i)->copy());
> for (i=0; i<op2->theExpression->count(); i++)
> theExpression->append(op2->theExpression->item(i)->copy());
> theExpression->append(oper);
>#else
> for (i=0; i<op2->theExpression->count(); i++)
> theExpression->append(op2->theExpression->item(i)->copy());
> for (i=0; i<op1->theExpression->count(); i++)
> theExpression->append(op1->theExpression->item(i)->copy());
> theExpression->append(oper);
>#endif
*** CHANGE [100,106] IN Graphtal.Original/Expression.C TO [108,124] IN Graphtal.Amiga/Expression.C ***
< for (i=0; i<op3->theExpression->count(); i++)
< theExpression->append(op3->theExpression->item(i)->copy());
< for (i=0; i<op2->theExpression->count(); i++)
< theExpression->append(op2->theExpression->item(i)->copy());
< for (i=0; i<op1->theExpression->count(); i++)
< theExpression->append(op1->theExpression->item(i)->copy());
< theExpression->append(oper);
---------------
>#ifdef AMIGA_GCC
> for (i=0; i<op1->theExpression->count(); i++)
> theExpression->append(op1->theExpression->item(i)->copy());
> for (i=0; i<op2->theExpression->count(); i++)
> theExpression->append(op2->theExpression->item(i)->copy());
> for (i=0; i<op3->theExpression->count(); i++)
> theExpression->append(op3->theExpression->item(i)->copy());
> theExpression->append(oper);
>#else
> for (i=0; i<op3->theExpression->count(); i++)
> theExpression->append(op3->theExpression->item(i)->copy());
> for (i=0; i<op2->theExpression->count(); i++)
> theExpression->append(op2->theExpression->item(i)->copy());
> for (i=0; i<op1->theExpression->count(); i++)
> theExpression->append(op1->theExpression->item(i)->copy());
> theExpression->append(oper);
>#endif
==============================================================================
TO TRANSFORM Graphtal.Original/main.C
INTO Graphtal.Amiga/main.C ...
==============================================================================
*** APPEND AFTER 39 IN Graphtal.Original/main.C ***
>#ifdef SUPPORT_AMIGA
># include "LineDevice.h"
># include "WireDevice.h"
># include "AMIGA_Window.h"
>#endif
>
*** APPEND AFTER 106 IN Graphtal.Original/main.C ***
>#ifdef SUPPORT_AMIGA
> else if (theOptions.drivername == "amigasimple")
> d = new LineDevice(new AMIGA_Window, &theOptions);
> else if (theOptions.drivername == "amigawire")
> d = new WireDevice(new AMIGA_Window, &theOptions);
>#endif
*** APPEND AFTER 112 IN Graphtal.Original/main.C ***
>#ifdef SUPPORT_AMIGA
> cerr << "\nUnknown driver specified, using simple AMIGA.\n\n";
> d = new LineDevice(new AMIGA_Window, &theOptions);
>#else
*** APPEND AFTER 115 IN Graphtal.Original/main.C ***
>#endif
==============================================================================
TO TRANSFORM Graphtal.Original/mathutilities.h
INTO Graphtal.Amiga/mathutilities.h ...
==============================================================================
*** APPEND AFTER 23 IN Graphtal.Original/mathutilities.h ***
>#ifdef NO_DRAND48
>#include <stdlib.h>
>inline void srand48(long seed) { srand((int)seed); }
>inline double drand48() { return (double)( ((double)rand()) / ((double)(RAND_MAX)) ); }
>#else
*** APPEND AFTER 25 IN Graphtal.Original/mathutilities.h ***
>#endif
==============================================================================
TO TRANSFORM Graphtal.Original/rcString.C
INTO Graphtal.Amiga/rcString.C ...
==============================================================================
*** APPEND AFTER 19 IN Graphtal.Original/rcString.C ***
>#ifdef AMIGA_GCC
> #include "string.h"
>#endif
>
==============================================================================
CREATE FILE Graphtal.Amiga/string.h
==============================================================================
>/*
> * Because AmigaDOS isn't case sensitive it can't make a difference
> * between the C++ "String.h" and the C "string.h". To fix this
> * please set the full path to your "string.h" header file below !
> *
> */
>
>#include "GCC:include/string.h"
>
Lucas Ammon (lammon@iamexwi.unibe.ch)