100 lines
3.4 KiB
Diff
100 lines
3.4 KiB
Diff
diff -Naur adl-20110628/adlcomp/Makefile adl-20110628.work/adlcomp/Makefile
|
|
--- adl-20110628/adlcomp/Makefile 2004-05-03 20:02:56.000000000 -0400
|
|
+++ adl-20110628.work/adlcomp/Makefile 2018-01-22 13:56:24.643486172 -0500
|
|
@@ -16,7 +16,7 @@
|
|
# Flags for CC
|
|
CC = gcc
|
|
OPTG =
|
|
-CFLAGS = -I${INC} $(OPTG) '-DADL_NAME="${BIN}/adlrun"'
|
|
+CFLAGS = -I${INC} $(OPTG) '-DADL_NAME="/usr/games/adlrun11"'
|
|
|
|
# Flags for lint
|
|
LFLAGS = -DLINT -I${INC} -C
|
|
diff -Naur adl-20110628/adlcomp/compdict.c adl-20110628.work/adlcomp/compdict.c
|
|
--- adl-20110628/adlcomp/compdict.c 2004-05-02 18:54:16.000000000 -0400
|
|
+++ adl-20110628.work/adlcomp/compdict.c 2018-01-22 13:29:34.829483442 -0500
|
|
@@ -15,9 +15,6 @@
|
|
|
|
#define HTSIZE 512 /* Size of a hash table */
|
|
|
|
-char
|
|
- *calloc();
|
|
-
|
|
/* Structure of a hash table entry */
|
|
struct hash_entry {
|
|
struct symbol
|
|
diff -Naur adl-20110628/adlrun/Makefile adl-20110628.work/adlrun/Makefile
|
|
--- adl-20110628/adlrun/Makefile 2004-01-03 00:15:24.000000000 -0500
|
|
+++ adl-20110628.work/adlrun/Makefile 2018-01-22 13:56:07.076486143 -0500
|
|
@@ -16,7 +16,7 @@
|
|
BIN = /users/cunniff/bin
|
|
|
|
# Flags for CC
|
|
-CFLAGS = -I$(INC) -O
|
|
+CFLAGS = -I$(INC) -O $(OPTFLAGS)
|
|
CC = gcc
|
|
|
|
# Flags for the linker - you may need to change -lcurses to -ltermcap
|
|
diff -Naur adl-20110628/adlrun/adlrun.c adl-20110628.work/adlrun/adlrun.c
|
|
--- adl-20110628/adlrun/adlrun.c 2004-01-01 13:42:46.000000000 -0500
|
|
+++ adl-20110628.work/adlrun/adlrun.c 2018-01-22 14:30:29.347489640 -0500
|
|
@@ -157,7 +157,7 @@
|
|
insertkey( "then", SEP, 0, 0 );
|
|
|
|
rand_seed();
|
|
- infile = fopen( inname, "rb+" );
|
|
+ infile = fopen( inname, "rb" );
|
|
if( !infile ) {
|
|
fprintf( stderr, "Error opening file %s\n", inname );
|
|
exit( -1 );
|
|
diff -Naur adl-20110628/include/adltypes.h adl-20110628.work/include/adltypes.h
|
|
--- adl-20110628/include/adltypes.h 2004-01-01 13:42:46.000000000 -0500
|
|
+++ adl-20110628.work/include/adltypes.h 2018-01-22 13:32:47.774483769 -0500
|
|
@@ -1,3 +1,10 @@
|
|
+#include <string.h>
|
|
+#include <stdlib.h>
|
|
+#include <unistd.h>
|
|
+#include <sys/types.h>
|
|
+#include <sys/stat.h>
|
|
+#include <sys/wait.h>
|
|
+
|
|
#include "undef.h" /* Undefine any predefined things */
|
|
|
|
/***************************************************************\
|
|
diff -Naur adl-20110628/misc/Makefile adl-20110628.work/misc/Makefile
|
|
--- adl-20110628/misc/Makefile 2002-01-29 00:10:08.000000000 -0500
|
|
+++ adl-20110628.work/misc/Makefile 2018-01-22 13:55:50.787486115 -0500
|
|
@@ -5,7 +5,7 @@
|
|
INC = ../include
|
|
|
|
# Flags for CC
|
|
-CFLAGS = -O -DHPUX -I${INC}
|
|
+CFLAGS = -O -DHPUX -I${INC} $(OPTFLAGS)
|
|
CC = gcc
|
|
|
|
# Commands for shar
|
|
diff -Naur adl-20110628/samples/mpu/Makefile adl-20110628.work/samples/mpu/Makefile
|
|
--- adl-20110628/samples/mpu/Makefile 2011-01-13 11:16:29.000000000 -0500
|
|
+++ adl-20110628.work/samples/mpu/Makefile 2018-01-22 14:28:53.217489477 -0500
|
|
@@ -12,7 +12,7 @@
|
|
shar : mpu1.shar mpu2.shar
|
|
|
|
clean :
|
|
- rm -f.adx mpu core mpu1.shar mpu2.shar
|
|
+ rm -f .adx mpu core mpu1.shar mpu2.shar
|
|
|
|
mpu1.shar : README COPYRIGHT Makefile locales.adl \
|
|
mpu.adl routines.adl verbs.adl
|
|
diff -Naur adl-20110628/util/Makefile adl-20110628.work/util/Makefile
|
|
--- adl-20110628/util/Makefile 2002-01-29 00:10:08.000000000 -0500
|
|
+++ adl-20110628.work/util/Makefile 2018-01-22 13:55:45.222486106 -0500
|
|
@@ -6,7 +6,7 @@
|
|
|
|
DFLAGS = -O
|
|
CC = gcc
|
|
-CFLAGS = -I${INC} ${DFLAGS}
|
|
+CFLAGS = -I${INC} ${DFLAGS} $(OPTFLAGS)
|
|
|
|
OBJS = vstring.o virtmem.o mytime.o
|
|
|