[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

es 0.84 under 386bsd, patches provided



I have es apparently working under the following systems with these
patches applied:

        386bsd 0.1 with 0.2.2 patchkit and 18 miscellaneous patches.
        GCC 2.3.3 and 2.4.0

        SunOS 3.1
        GCC 2.4.0

As far as testing goes, the trip test and casual interactive use
haven't shown any problems, but I can't claim this stuff is bug free.

Note:

Only the patches to config.h and trip.es are relevant. I've provided
patches to Makefile, and a new file xmalloc.c just to indicate how I
built the thing under 386bsd with the readline library from gdb 4.9.

All in all this was pretty trivial stuff. I'm impressed by how clean
es seem to be.


Cheers,
Dave


====8<================================>8====
*** ./config.h.D1	Fri Apr 30 11:38:57 1993
--- ./config.h	Sat May 22 01:28:13 1993
***************
*** 165,168 ****
--- 165,187 ----
  
  
+ /* 386BSD 0.1 with 0.2.2 patchkit */
+ 
+ #if __386BSD__
+ #ifndef DEVFD
+ #define DEVFD			1
+ #endif
+ #ifndef	USE_SIGACTION
+ #define USE_SIGACTION		1
+ #endif
+ #ifndef	INITIAL_PATH
+ #define	INITIAL_PATH		"/usr/sbin", "/sbin", "/usr/bin", "/bin", ""
+ #endif
+ #define SIG_ERR			BADSIG
+ #ifndef	REQUIRE_STAT
+ #define REQUIRE_STAT		1
+ #endif
+ #endif
+ 
+ 
  /* NeXT defaults */
  
*** ./trip.es.D1	Fri Apr 30 11:38:51 1993
--- ./trip.es	Sat May 22 01:10:22 1993
***************
*** 206,224 ****
  	} \
  'trying ...
! caught error $&parse <eval>:1: syntax error
  trying ...
! caught error $&parse <eval>:1: syntax error
  trying ...
! caught error $&parse <eval>:1: syntax error
  trying ...
! caught error $&parse <eval>:1: syntax error
  trying ...
! caught error $&parse <eval>:1: syntax error
  trying ...
! caught error $&parse <eval>:1: syntax error
  trying ...
! caught error $&parse <eval>:1: syntax error
  trying ...
! caught error $&parse <eval>:1: syntax error
  never succeeded
  '
--- 206,224 ----
  	} \
  'trying ...
! caught error $&parse <eval>:1: parse error
  trying ...
! caught error $&parse <eval>:1: parse error
  trying ...
! caught error $&parse <eval>:1: parse error
  trying ...
! caught error $&parse <eval>:1: parse error
  trying ...
! caught error $&parse <eval>:1: parse error
  trying ...
! caught error $&parse <eval>:1: parse error
  trying ...
! caught error $&parse <eval>:1: parse error
  trying ...
! caught error $&parse <eval>:1: parse error
  never succeeded
  '
*** ./xmalloc.c.D1	Sat May 22 01:42:37 1993
--- ./xmalloc.c	Sat May 22 00:47:39 1993
***************
*** 0 ****
--- 1,24 ----
+ #include "config.h"
+ #include "stdenv.h"
+ 
+ void *
+ xmalloc (
+    size_t size
+ ) {
+    return malloc(size);
+ };
+ 
+ void *
+ xrealloc (
+    void *ptr,
+    size_t size
+ ) {
+    return realloc(ptr, size);
+ };
+ 
+ void
+ xfree (
+    void *ptr
+ ) {
+    free(ptr);
+ };
*** ./Makefile.D1	Fri Apr 30 11:39:41 1993
--- ./Makefile	Sat May 22 00:53:59 1993
***************
*** 24,32 ****
  
  SHELL	= /bin/sh
! CC	= cc
! #CC	= gcc
! CFLAGS	= -g -O -Wall
  LDFLAGS	=
! LIBS	=
  
  HFILES	= config.h es.h gc.h input.h prim.h print.h sigmsgs.h stdenv.h syntax.h var.h
--- 24,32 ----
  
  SHELL	= /bin/sh
! CC	= gcc
! CFLAGS	= -O2 -m486 -Wall -DREADLINE
! YACC    = bison -y
  LDFLAGS	=
! LIBS	= -lreadline -ltermcap -lmmalloc
  
  HFILES	= config.h es.h gc.h input.h prim.h print.h sigmsgs.h stdenv.h syntax.h var.h
***************
*** 35,44 ****
  	  prim-ctl.c prim-etc.c prim-io.c prim-sys.c prim.c print.c proc.c \
  	  sigmsgs.c signal.c split.c status.c str.c syntax.c term.c token.c \
! 	  tree.c util.c var.c vec.c version.c y.tab.c dump.c
  OFILES	= access.o closure.o conv.o dict.o eval.o except.o fd.o gc.o glob.o \
  	  glom.o input.o heredoc.o list.o main.o match.o open.o opt.o \
  	  prim-ctl.o prim-etc.o prim-io.o prim-sys.o prim.o print.o proc.o \
  	  sigmsgs.o signal.o split.o status.o str.o syntax.o term.o token.o \
! 	  tree.o util.o var.o vec.o version.o y.tab.o
  OTHER	= Makefile parse.y mksignal
  GEN	= esdump y.tab.c y.tab.h y.output token.h sigmsgs.c initial.c
--- 35,44 ----
  	  prim-ctl.c prim-etc.c prim-io.c prim-sys.c prim.c print.c proc.c \
  	  sigmsgs.c signal.c split.c status.c str.c syntax.c term.c token.c \
! 	  tree.c util.c var.c vec.c version.c y.tab.c dump.c xmalloc.c
  OFILES	= access.o closure.o conv.o dict.o eval.o except.o fd.o gc.o glob.o \
  	  glom.o input.o heredoc.o list.o main.o match.o open.o opt.o \
  	  prim-ctl.o prim-etc.o prim-io.o prim-sys.o prim.o print.o proc.o \
  	  sigmsgs.o signal.o split.o status.o str.o syntax.o term.o token.o \
! 	  tree.o util.o var.o vec.o version.o y.tab.o xmalloc.o
  OTHER	= Makefile parse.y mksignal
  GEN	= esdump y.tab.c y.tab.h y.output token.h sigmsgs.c initial.c
====8<================================>8====