
How to build gawk 3.0.3
-----------------------

- Sources : gawk303 tar file

- Unpack all c files into the c dir

- Unpack all h files into the h dir

- Add 'posix.gawkmisc/c' (as gawkmiscro.c)

- Add 'pc.config/h' (as config.h)

- In gawkmiscro.c replace
  ---------------------------------------------------------------------------------------------
	return (strchr(file, '/') != NULL);
  ---------------------------------------------------------------------------------------------
	return (strpbrk(file, ":.") != NULL);
  ---------------------------------------------------------------------------------------------

- In gawkmiscro.c replace
  ---------------------------------------------------------------------------------------------
	return (c == '/');
  ---------------------------------------------------------------------------------------------
	return (c == '.');
  ---------------------------------------------------------------------------------------------

- In config.h add (at start)
  ---------------------------------------------------------------------------------------------
	#define ptr_t void*
  ---------------------------------------------------------------------------------------------

- In config.h change defines :
  - #define HAVE_BCOPY 1
  - #define HAVE_STRINGS_H 1

- In gawkmisc.c replace
  ---------------------------------------------------------------------------------------------
	#include "posix/gawkmisc.c"
  ---------------------------------------------------------------------------------------------
	#include "gawkmiscro.c"
  ---------------------------------------------------------------------------------------------

- In dfa.c remove the ptr_t redefinitions

- In main.c add (at start)
  ---------------------------------------------------------------------------------------------
	const char* __dynamic_da_name = "gawk";
	int __riscosify_control;
	#define __RISCOSIFY_NO_PROCESS 0x0040;
  ---------------------------------------------------------------------------------------------

- In main.c add (at start of main())
  ---------------------------------------------------------------------------------------------
	__riscosify_control |= __RISCOSIFY_NO_PROCESS;
  ---------------------------------------------------------------------------------------------

- In main.c replace
  ---------------------------------------------------------------------------------------------
	myname = gawk_name(argv[0]);
  ---------------------------------------------------------------------------------------------
	myname = argv[0];
  ---------------------------------------------------------------------------------------------

- In awktab.c add (before '... isalpha(c) ...')
  ---------------------------------------------------------------------------------------------
	if (c == 0xd)
	{
		yyerror("Sorry, I'm a 'Unixy' port and barf on <CR><LF>. Use <LF> only !\n");
		exit(1);
	}
  ---------------------------------------------------------------------------------------------

