home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / oct93 / graphics / graphtal.lha / Graphtal / README.AMIGA < prev    next >
Text File  |  1993-08-26  |  6KB  |  173 lines

  1.  
  2. README.AMIGA
  3. ============
  4.  
  5. - To compile Graphtal on the Amiga you need GCC-233 and a lot of memory.
  6.   Don't forget to set a large stack size (256000 is fine) !
  7.   Because AmigaDOS isn't case sensitive you must edit string.h 
  8.   (for more information on this read the header of string.h)
  9.  
  10. - Graphtal has a device for Rayshade output.
  11.  
  12. - I have include some tools to convert PPM output to IFF24 in bin
  13.   (to convert PPM output to IFF get the the PBM plus package)
  14.  
  15. - Note: some examples for Graphtal need a lot of memory (over 10MB) !
  16.  
  17. - Note: Graphtal needs the cpp to process the inputfile.
  18.  
  19. - GCC-233 and Rayshade are available by anonymous FTP in ftp.luth.se 
  20.   or any other Aminet site
  21.  
  22. For more information on Graphtal please read the README file !
  23.  
  24. This is a list of changes made to the original 
  25. Graphtal_no_bison_no_flex-1.0.tar.Z distribution ... 
  26.  
  27. ==============================================================================
  28. TO TRANSFORM Graphtal.Original/Expression.C 
  29.    INTO Graphtal.Amiga/Expression.C ...
  30. ==============================================================================
  31.  
  32. *** CHANGE [81,85] IN Graphtal.Original/Expression.C TO [81,93] IN Graphtal.Amiga/Expression.C ***
  33.  
  34. <  for (i=0; i<op2->theExpression->count(); i++)
  35. <    theExpression->append(op2->theExpression->item(i)->copy());
  36. <  for (i=0; i<op1->theExpression->count(); i++)
  37. <    theExpression->append(op1->theExpression->item(i)->copy());
  38. <  theExpression->append(oper);
  39.  
  40. ---------------
  41. >#ifdef AMIGA_GCC
  42. >  for (i=0; i<op1->theExpression->count(); i++)
  43. >    theExpression->append(op1->theExpression->item(i)->copy());
  44. >  for (i=0; i<op2->theExpression->count(); i++)
  45. >    theExpression->append(op2->theExpression->item(i)->copy());
  46. >  theExpression->append(oper);
  47. >#else
  48. >  for (i=0; i<op2->theExpression->count(); i++)
  49. >    theExpression->append(op2->theExpression->item(i)->copy());
  50. >  for (i=0; i<op1->theExpression->count(); i++)
  51. >    theExpression->append(op1->theExpression->item(i)->copy());
  52. >  theExpression->append(oper);
  53. >#endif
  54.  
  55. *** CHANGE [100,106] IN Graphtal.Original/Expression.C TO [108,124] IN Graphtal.Amiga/Expression.C ***
  56.  
  57. <  for (i=0; i<op3->theExpression->count(); i++)
  58. <    theExpression->append(op3->theExpression->item(i)->copy());
  59. <  for (i=0; i<op2->theExpression->count(); i++)
  60. <    theExpression->append(op2->theExpression->item(i)->copy());
  61. <  for (i=0; i<op1->theExpression->count(); i++)
  62. <    theExpression->append(op1->theExpression->item(i)->copy());
  63. <  theExpression->append(oper);
  64.  
  65. ---------------
  66. >#ifdef AMIGA_GCC
  67. >  for (i=0; i<op1->theExpression->count(); i++)
  68. >    theExpression->append(op1->theExpression->item(i)->copy());
  69. >  for (i=0; i<op2->theExpression->count(); i++)
  70. >    theExpression->append(op2->theExpression->item(i)->copy());
  71. >  for (i=0; i<op3->theExpression->count(); i++)
  72. >    theExpression->append(op3->theExpression->item(i)->copy());
  73. >  theExpression->append(oper);
  74. >#else
  75. >  for (i=0; i<op3->theExpression->count(); i++)
  76. >    theExpression->append(op3->theExpression->item(i)->copy());
  77. >  for (i=0; i<op2->theExpression->count(); i++)
  78. >    theExpression->append(op2->theExpression->item(i)->copy());
  79. >  for (i=0; i<op1->theExpression->count(); i++)
  80. >    theExpression->append(op1->theExpression->item(i)->copy());
  81. >  theExpression->append(oper);
  82. >#endif
  83.  
  84.  
  85.  
  86.  
  87.  
  88. ==============================================================================
  89. TO TRANSFORM Graphtal.Original/main.C 
  90.    INTO Graphtal.Amiga/main.C ...
  91. ==============================================================================
  92.  
  93. *** APPEND AFTER 39 IN Graphtal.Original/main.C ***
  94. >#ifdef SUPPORT_AMIGA
  95. ># include "LineDevice.h"
  96. ># include "WireDevice.h"
  97. ># include "AMIGA_Window.h"
  98. >#endif
  99. >
  100.  
  101. *** APPEND AFTER 106 IN Graphtal.Original/main.C ***
  102. >#ifdef SUPPORT_AMIGA
  103. >    else if (theOptions.drivername == "amigasimple")
  104. >      d = new LineDevice(new AMIGA_Window, &theOptions);
  105. >    else if (theOptions.drivername == "amigawire")
  106. >      d = new WireDevice(new AMIGA_Window, &theOptions);
  107. >#endif
  108.  
  109. *** APPEND AFTER 112 IN Graphtal.Original/main.C ***
  110. >#ifdef SUPPORT_AMIGA
  111. >    cerr << "\nUnknown driver specified, using simple AMIGA.\n\n";
  112. >      d = new LineDevice(new AMIGA_Window, &theOptions);
  113. >#else
  114.  
  115. *** APPEND AFTER 115 IN Graphtal.Original/main.C ***
  116. >#endif
  117.  
  118.  
  119.  
  120.  
  121.  
  122. ==============================================================================
  123. TO TRANSFORM Graphtal.Original/mathutilities.h 
  124.    INTO Graphtal.Amiga/mathutilities.h ...
  125. ==============================================================================
  126.  
  127. *** APPEND AFTER 23 IN Graphtal.Original/mathutilities.h ***
  128. >#ifdef NO_DRAND48
  129. >#include <stdlib.h>
  130. >inline void   srand48(long seed) { srand((int)seed); }
  131. >inline double drand48()          { return (double)( ((double)rand()) / ((double)(RAND_MAX)) ); }
  132. >#else
  133.  
  134. *** APPEND AFTER 25 IN Graphtal.Original/mathutilities.h ***
  135. >#endif
  136.  
  137.  
  138.  
  139.  
  140.  
  141. ==============================================================================
  142. TO TRANSFORM Graphtal.Original/rcString.C 
  143.    INTO Graphtal.Amiga/rcString.C ...
  144. ==============================================================================
  145.  
  146. *** APPEND AFTER 19 IN Graphtal.Original/rcString.C ***
  147. >#ifdef AMIGA_GCC
  148. >    #include "string.h"
  149. >#endif
  150. >
  151.  
  152.  
  153.  
  154.  
  155.  
  156. ==============================================================================
  157. CREATE FILE Graphtal.Amiga/string.h
  158. ==============================================================================
  159.  
  160. >/*
  161. > * Because AmigaDOS isn't case sensitive it can't make a difference
  162. > * between the C++ "String.h" and the C "string.h". To fix this 
  163. > * please set the full path to your "string.h" header file below !
  164. > *
  165. > */
  166. >
  167. >#include "GCC:include/string.h"
  168. >
  169.  
  170.  
  171. Lucas Ammon (lammon@iamexwi.unibe.ch)
  172.  
  173.