home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / p / prolg386.zip / pl / 386bsd.patch (.txt) next >
LaTeX Document  |  1992-08-29  |  8KB  |  298 lines

  1. diff -c -r pl/config.h pl.386bsd/config.h
  2. *** pl/config.h    Tue Jul  7 10:20:02 1992
  3. --- pl.386bsd/config.h    Thu Aug 27 15:18:16 1992
  4. ***************
  5. *** 1,4 ****
  6. ! #define M_SYSTEMHOME "/staff/jan/src/pl"
  7.   #define M_DEFSTARTUP ".plrc"
  8.   #define M_BINDIR "/usr/local/bin"
  9. ! #define M_PROLOG "pl"
  10. --- 1,4 ----
  11. ! #define M_SYSTEMHOME "/src/local/pl/home"
  12.   #define M_DEFSTARTUP ".plrc"
  13.   #define M_BINDIR "/usr/local/bin"
  14. ! #define M_PROLOG pl
  15. diff -c -r pl/man/online pl.386bsd/man/online
  16. *** pl/man/online    Tue May 26 13:51:48 1992
  17. --- pl.386bsd/man/online    Wed Aug 26 16:32:13 1992
  18. ***************
  19. *** 1,15 ****
  20. ! #!/bin/csh -f
  21. ! set echo
  22. ! set totex=./onlinetotex
  23. ! setenv MANUAL ../library/MANUAL
  24. ! setenv INDEX  ../library/help_index.pl
  25. ! $totex intro.doc   | expand > intro.tex
  26.   $totex builtin.doc | expand > builtin.tex
  27.   $totex module.doc  | expand > module.tex
  28.   $totex foreign.doc | expand > foreign.tex
  29.   $totex hack.doc    | expand > hack.tex
  30.   cp     summary.doc            summary.tex
  31.   latex online.tex
  32.   latex online.tex
  33.   dvi2tty online | cat -s > $MANUAL
  34. ! pl -g online_index -t halt
  35. --- 1,17 ----
  36. ! #!/bin/sh -v -f
  37. ! totex=onlinetotex
  38. ! MANUAL="../library/MANUAL"
  39. ! INDEX="../library/help_index.pl"
  40. ! export MANUAL INDEX
  41. ! $totex intro.doc | expand > intro.tex
  42.   $totex builtin.doc | expand > builtin.tex
  43.   $totex module.doc  | expand > module.tex
  44.   $totex foreign.doc | expand > foreign.tex
  45.   $totex hack.doc    | expand > hack.tex
  46.   cp     summary.doc            summary.tex
  47.   latex online.tex
  48.   latex online.tex
  49.   dvi2tty online | cat -s > $MANUAL
  50. ! #pl -g online_index -t halt
  51. diff -c -r pl/man/onlinetotex pl.386bsd/man/onlinetotex
  52. *** pl/man/onlinetotex    Tue May 26 13:51:50 1992
  53. --- pl.386bsd/man/onlinetotex    Wed Aug 26 16:13:43 1992
  54. ***************
  55. *** 1,4 ****
  56. ! #! /bin/sed -f
  57.   s/section\*/section/
  58.   s/^\.SS \(.*\)/\\subsection{\1}/
  59.   s/^\.S \(.*\)/\\section{\1}/
  60. --- 1,4 ----
  61. ! #!/usr/bin/sed -f
  62.   s/section\*/section/
  63.   s/^\.SS \(.*\)/\\subsection{\1}/
  64.   s/^\.S \(.*\)/\\section{\1}/
  65. diff -c -r pl/src/Makefile pl.386bsd/src/Makefile
  66. *** pl/src/Makefile    Thu Jul 16 14:51:50 1992
  67. --- pl.386bsd/src/Makefile    Sat Aug 29 20:03:35 1992
  68. ***************
  69. *** 34,52 ****
  70.   # paths and file names for installation
  71. ! SYSTEMHOME=M_SYSTEMHOME
  72. ! DEFSTARTUP=M_DEFSTARTUP
  73. ! PROLOG=M_PROLOG
  74. ! BINDIR=M_BINDIR
  75.   SYS=pl
  76. ! STARTUPDIR=../startup
  77.   STARTUPPATH=$(STARTUPDIR)/startup.MACHINE
  78. ! RUNTIMEDIR=../runtime/MACHINE
  79.   RUNTIME=$(RUNTIMEDIR)/pl.o
  80.   PB=../boot
  81.   BINLIB=libPL.a
  82. ! CPP=/lib/cpp
  83.   EXPORTS=../include/SWI-Exports
  84.   CINCLUDE=../include/SWI-Prolog.h
  85. --- 34,54 ----
  86.   # paths and file names for installation
  87. ! # the following 4 names are to change, because we do not use ../config.h
  88. ! SYSTEMHOME=/usr/local/lib/pl
  89. ! DEFSTARTUP=.plrc
  90. ! BINDIR=/usr/local/bin
  91. ! PROLOG=pl
  92. + # normally you should not need to change this
  93.   SYS=pl
  94. ! STARTUPDIR=$(SYSTEMHOME)/startup
  95.   STARTUPPATH=$(STARTUPDIR)/startup.MACHINE
  96. ! RUNTIMEDIR=$(SYSTEMHOME)/runtime/MACHINE
  97.   RUNTIME=$(RUNTIMEDIR)/pl.o
  98.   PB=../boot
  99.   BINLIB=libPL.a
  100. ! CPP=/usr/libexec/cpp
  101.   EXPORTS=../include/SWI-Exports
  102.   CINCLUDE=../include/SWI-Prolog.h
  103. ***************
  104. *** 90,99 ****
  105.   xmakefile:    Makefile md.h ../config.h
  106.           @-rm -f junk.c make.h
  107. !         @sed 's/"//g' md.h ../config.h > make.h
  108.           @sed -f make.sed Makefile > junk.c
  109.           @$(CPP) junk.c | \
  110. !         sed -e 's/^[     ]*$$//' -e 's/^ /    /' | \
  111.           sed -n -e '/^..*$$/p' > xmakefile
  112.           @rm -f junk.c make.h
  113. --- 92,103 ----
  114.   xmakefile:    Makefile md.h ../config.h
  115.           @-rm -f junk.c make.h
  116. !         @sed 's/"//g' ../config.h md.h > make.h
  117.           @sed -f make.sed Makefile > junk.c
  118.           @$(CPP) junk.c | \
  119. !         sed -e "s/[     ]*$$//g" \
  120. !             -e "/^[     ]*$$/d"  \
  121. !             -e "s/^ /    /"  | \
  122.           sed -n -e '/^..*$$/p' > xmakefile
  123.           @rm -f junk.c make.h
  124. ***************
  125. *** 100,113 ****
  126.   $(SYS):        $(OBJ) $(DEPOBJ) $(EXT)
  127.           $(CC) $(LDFLAGS) -o $(SYS) $(OBJ) $(DEPOBJ) $(EXT) $(LIBS)
  128. ! $(STARTUPDIR):    
  129.           -mkdir $@
  130.   $(STARTUPPATH):    $(PLBOOT) $(PLINIT) pl-wam.o
  131.           ./$(SYS) -O -o $(STARTUPPATH) -b $(PLINIT) -c $(PLBOOT)
  132. ! $(RUNTIMEDIR):
  133. !         @-mkdir ../runtime
  134.           @-mkdir $@
  135.   $(RUNTIME):    $(OBJ) $(DEPOBJ) $(RUNTIMEDIR)
  136. --- 104,118 ----
  137.   $(SYS):        $(OBJ) $(DEPOBJ) $(EXT)
  138.           $(CC) $(LDFLAGS) -o $(SYS) $(OBJ) $(DEPOBJ) $(EXT) $(LIBS)
  139. ! $(STARTUPDIR):    $(SYSTEMHOME)
  140.           -mkdir $@
  141. ! $(SYSTEMHOME):
  142. !         -mkdir $@
  143.   $(STARTUPPATH):    $(PLBOOT) $(PLINIT) pl-wam.o
  144.           ./$(SYS) -O -o $(STARTUPPATH) -b $(PLINIT) -c $(PLBOOT)
  145. ! $(RUNTIMEDIR):  $(SYSTEMHOME)
  146. !         @-mkdir $(SYSTEMHOME)/runtime
  147.           @-mkdir $@
  148.   $(RUNTIME):    $(OBJ) $(DEPOBJ) $(RUNTIMEDIR)
  149. ***************
  150. *** 145,150 ****
  151. --- 150,159 ----
  152.   xinstall:    $(RUNTIMEDIR)
  153.           $(INSTALL) $(SYS) $(RUNTIMEDIR)
  154.           ./dump $(RUNTIMEDIR)/$(SYS) $(BINDIR)/$(PROLOG)
  155. +         mv ../library $(SYSTEMHOME)
  156. +         ln -s $(SYSTEMHOME)/library ../library
  157. +         mv ../include $(SYSTEMHOME)
  158. +         ln -s $(SYSTEMHOME)/include ../include
  159.   #else
  160.           rm -f $(BINDIR)/$(PROLOG)
  161. diff -c -r pl/src/dump pl.386bsd/src/dump
  162. *** pl/src/dump    Tue May 26 13:52:09 1992
  163. --- pl.386bsd/src/dump    Sat Aug 29 00:54:32 1992
  164. ***************
  165. *** 1,30 ****
  166. ! #!/bin/csh -f
  167.   # Create a stand alone executable of SWI-Prolog
  168. ! set pl=./pl
  169. ! switch( $#argv )
  170. !     case 0:
  171. !         set bin=/usr/local/bin/$pl
  172. !         breaksw
  173. !     case 1:
  174. !         set pl=$1
  175. !         set bin=/usr/local/bin/$pl
  176. !         breaksw
  177. !     case 2:
  178. !         set pl=$1
  179. !         set bin=$2
  180. !         breaksw
  181. !     default:
  182.           echo "Usage: dump [sys] [executable]"
  183.           exit 1
  184. ! endsw
  185. ! $pl -f none -B << _EOS_
  186. ! save_program('$bin',
  187.       [ goal        = '''\$welcome'''
  188.       , toplevel    = prolog
  189.       , init_file    = '.plrc'
  190. !     ]).    
  191. ! halt.
  192. ! _EOS_
  193. --- 1,30 ----
  194. ! #!/bin/sh
  195.   # Create a stand alone executable of SWI-Prolog
  196. ! case $# in
  197. !     0)
  198. !         pl=./pl
  199. !         bin=/usr/local/bin/pl
  200. !         ;;
  201. !     1)
  202. !         pl=$1
  203. !         bin=/usr/local/bin/pl
  204. !         ;;
  205. !     2)
  206. !         pl=$1
  207. !         bin=$2
  208. !         ;;
  209. !     *)
  210.           echo "Usage: dump [sys] [executable]"
  211.           exit 1
  212. !         ;;
  213. ! esac
  214. ! echo "save_program('$bin',
  215.       [ goal        = '''\$welcome'''
  216.       , toplevel    = prolog
  217.       , init_file    = '.plrc'
  218. !     ])." > tmprmt 
  219. ! $pl -f none -B < tmprmt
  220. diff -c -r pl/src/pl-funcs.h pl.386bsd/src/pl-funcs.h
  221. *** pl/src/pl-funcs.h    Tue Jul  7 10:25:31 1992
  222. --- pl.386bsd/src/pl-funcs.h    Wed Aug 26 15:43:23 1992
  223. ***************
  224. *** 63,69 ****
  225. --- 63,71 ----
  226.   #if O_COMPILE_ARITH
  227.   int        indexArithFunction P((FunctorDef, Module));
  228.   FunctorDef    functorArithFunction P((int));
  229. + #if !PROTO
  230.   bool        ar_func_n P((FI(code), int, Word *));
  231. + #endif
  232.   #endif O_COMPILE_ARITH
  233.           /* pl-atom.c */
  234. diff -c -r pl/src/pl-os.c pl.386bsd/src/pl-os.c
  235. *** pl/src/pl-os.c    Thu Jul 16 15:13:28 1992
  236. --- pl.386bsd/src/pl-os.c    Wed Aug 26 17:48:02 1992
  237. ***************
  238. *** 19,25 ****
  239.   #include <sys/stat.h>
  240.   #include <pwd.h>
  241.   #include <sys/file.h>
  242. ! #if minix || LINUX
  243.   #include <unistd.h>
  244.   #endif
  245. --- 19,25 ----
  246.   #include <sys/stat.h>
  247.   #include <pwd.h>
  248.   #include <sys/file.h>
  249. ! #if minix || LINUX || __386BSD__
  250.   #include <unistd.h>
  251.   #endif
  252. ***************
  253. *** 28,34 ****
  254.   extern int unlink(/*char **/);
  255.   extern int link(/*char **/);
  256.   extern int select(/*int *, int*, int*, struct timeval **/);
  257. ! #if !minix && !LINUX
  258.   extern int ioctl(/*int, int, Void*/);
  259.   extern int execl(/*char *, ... */);
  260.   #endif
  261. --- 28,34 ----
  262.   extern int unlink(/*char **/);
  263.   extern int link(/*char **/);
  264.   extern int select(/*int *, int*, int*, struct timeval **/);
  265. ! #if !minix && !LINUX && !__386BSD__
  266.   extern int ioctl(/*int, int, Void*/);
  267.   extern int execl(/*char *, ... */);
  268.   #endif
  269. diff -c -r pl/src/pl-save.c pl.386bsd/src/pl-save.c
  270. *** pl/src/pl-save.c    Thu Jul 16 14:51:55 1992
  271. --- pl.386bsd/src/pl-save.c    Thu Aug 27 19:12:17 1992
  272. ***************
  273. *** 81,87 ****
  274. --- 81,89 ----
  275.   #include <fcntl.h>
  276.   #include "pl-save.h"
  277. + #if !__386BSD__
  278.   int    brk P((caddr_t));
  279. + #endif
  280.   caddr_t sbrk P((int));
  281.   extern  etext;            /* end-of-text */
  282.   extern  char **environ;        /* normally first data-address */
  283. ***************
  284. *** 363,369 ****
  285.               n,
  286.               (unsigned) sect->start,
  287.               (unsigned) sect->start+sect->length,
  288. !             tell(fd)));
  289.       tryWrite(fd, sect->start, sect->length);
  290.     }
  291. --- 363,369 ----
  292.               n,
  293.               (unsigned) sect->start,
  294.               (unsigned) sect->start+sect->length,
  295. !             (unsigned) fd));
  296.       tryWrite(fd, sect->start, sect->length);
  297.     }
  298.