ADDITIONAL INSTRUCTIONS FOR APOLLOS [As of GCT 1.1.]

Many of the changes below are caused because of the very peculiar
/bin/sh on the Apollo I'm using.  They're marked with (*). 
If you have a more recent /bin/sh, you might not have to make them.


1.  I've only ever tried compiling GCT in the Berkeley environment.

2.  To configure for Apollos, type 

	% config.gcc apollo68

3.  When editing the makefile, comment out the definition for CFLAGS.
Now search for the string "apollo.com".  Uncomment the definition of
CFLAGS just above that.

4.  Before running the makefile, type this:

	% cc -c alloca.c

5.  The tests have not yet been successfully run on the Apollo,
because the version I have access to does not have an up-to-date
Bourne shell.   There are also known incompatibilities between
Apollo's join(1) and sed(1) programs and other system's.  You'll have
to change testdir/instrument/run.source, the log_check function, using 
src/apollo-cut as a model.


==================

GCT 1.4beta is known to work on Apollo machines.  I have received
these notes:  


BTW. I also added a c line wrapper to callcc, to prevent too long lines
for the c compiler

----------------------------------------------------------------------
*** callcc_ORG	Wed Dec  9 14:29:36 1992
--- callcc	Wed Dec  9 14:54:08 1992
***************
*** 47,52 ****
--- 47,58 ----
    exit 1
  fi
  
+ # Parse arguments to wrap the long lines of c source for our poor Apollo compiler
+ for i
+ do	case $i in
+ 		*.c)	cp $i ${i}-$$; c_wrapper < ${i}-$$ > $i; rm ${i}-$$;;
+ 	esac
+ done
  
  $COMPILER "$@"
  STATUS=$?


====

Here is c_wrapper:

%{
/* No copyright, no warranty.
 * =============================================================================
 * Project  : GCT Generic Coverage Tool
 * Filename : c_wrapper.l
 * Function : This is an input file for LEX, for wrapping long lines
 *		by adding a newline after each ';' and ','
 *
 * Edit    Date       Author      SPR      Modifications made
 * ----  ---------  ----------- ---------  ---------------------
 *  1.0  25-Feb-92  J. Cazander            yylex only returns on EOF
 *  1.1   6-Jan-93                         simplified 'c' and repaired '\c'
 * ============================================================================
 */

#define	yywrap()	1

%}

WS		[ \t]*
%start  normal dstring
%%
        BEGIN normal;
<normal>\,{WS}\n	|
<normal>\;{WS}\n	ECHO;				/* NL already there */

<normal>\;		|
<normal>\,		{ ECHO; putchar( '\n' ); }	/* Add a NL after an ',' or ';' */

<normal>\"		{ ECHO; BEGIN dstring; }	/* start of a string */
<dstring>\"		{ ECHO; BEGIN normal; }		/* end of a string */
<dstring>.		ECHO;				/* normal char inside string */
<dstring>\\.		|
<dstring>\\\n		ECHO;				/* backslashed chars inside string */

<normal>\'.\'		ECHO;				/* Normal quoted character */
<normal>\'\\.*\'	ECHO;				/* Back slashed quoted char */

<normal>.		|
<normal>\n		ECHO;				/* all other chars */
%%

