|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T g
Length: 4628 (0x1214) Types: TextFile Names: »ghostscript-patch-from-net«
└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89 └─⟦this⟧ »./ghostscript-patch-from-net«
Path: freja!dkuug!sunic!kth!mcvax!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!NSFNET-RELAY.AC.UK!lmjm%doc.imperial.ac.uk From: lmjm%doc.imperial.ac.uk@NSFNET-RELAY.AC.UK (Lee McLoughlin) Newsgroups: gnu.ghostscript.bug Subject: Patches for ghostscript-1.3 for BSD. Message-ID: <8728.8907032240@oriona.doc.ic.ac.uk> Date: 3 Jul 89 22:40:26 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 174 Here are some patches I needed to get gs working on a 4.2 BSD system. It still doesn't work fully. On doing ./gs leta.ps It creates an inital window. When I hit return it then creates another window. On hitting return again it then draws in the second window! I've not yet looked into this problem. Lee Ps: Where did all the example postscript files go? I had them around but without them how are you supposed to test gs? RCS file: RCS/ansi2knr.c,v retrieving revision 1.1 diff -cbr -r1.1 ansi2knr.c *** /tmp/,RCSt1008696 Mon Jul 3 23:33:39 1989 --- ansi2knr.c Mon Jul 3 23:15:45 1989 *************** *** 21,27 /* Convert ANSI function declarations to K&R syntax */ #include <stdio.h> #include <ctype.h> ! #include <string.h> char *malloc(); /* avoid non-core .h files */ /* Usage: --- 21,27 ----- /* Convert ANSI function declarations to K&R syntax */ #include <stdio.h> #include <ctype.h> ! #include "string_.h" char *malloc(); /* avoid non-core .h files */ #ifdef BSD4_2 *************** *** 23,28 #include <ctype.h> #include <string.h> char *malloc(); /* avoid non-core .h files */ /* Usage: ansi2knr input_file output_file --- 23,33 ----- #include <ctype.h> #include "string_.h" char *malloc(); /* avoid non-core .h files */ + + #ifdef BSD4_2 + #define strchr index + #endif + /* Usage: ansi2knr input_file output_file =================================================================== RCS file: RCS/gsmisc.c,v retrieving revision 1.1 diff -cbr -r1.1 gsmisc.c *** /tmp/,RCSt1008696 Mon Jul 3 23:33:41 1989 --- gsmisc.c Mon Jul 3 23:26:25 1989 *************** *** 27,32 char gs_debug[128]; #endif /* Versions of malloc and free compatible with GhostScript's */ /* model of memory management. */ char * --- 27,50 ----- char gs_debug[128]; #endif + + #ifndef SYS5 + long clock() + { + return 0; + } + + char * + memset( register char *b1, register int c, register int n ) + { + char *start = b1; + + while( n-- > 0 ) + *b1++ = c; + + return start; + } + #endif /* Versions of malloc and free compatible with GhostScript's */ /* model of memory management. */ char * =================================================================== RCS file: RCS/makefile,v retrieving revision 1.1 diff -cbr -r1.1 makefile *** /tmp/,RCSt1008696 Mon Jul 3 23:33:43 1989 --- makefile Mon Jul 3 23:29:04 1989 *************** *** 33,39 # Add -DBSD4_2 for 4.2bsd systems. # Add -DSYSV for System V. ! CFLAGS=-O # Define platform flags for ld. # The following are appropriate for Sun OS4.0. --- 33,39 ----- # Add -DBSD4_2 for 4.2bsd systems. # Add -DSYSV for System V. ! CFLAGS=-DBSD4_2 # Define platform flags for ld. # The following are appropriate for Sun OS4.0. *************** *** 38,44 # Define platform flags for ld. # The following are appropriate for Sun OS4.0. ! LDPLAT=-Bstatic # ---------------------------- End of options --------------------------- # --- 38,44 ----- # Define platform flags for ld. # The following are appropriate for Sun OS4.0. ! LDPLAT= # ---------------------------- End of options --------------------------- # =================================================================== RCS file: RCS/std.h,v retrieving revision 1.1 diff -cbr -r1.1 std.h *** /tmp/,RCSt1008696 Mon Jul 3 23:33:45 1989 --- std.h Mon Jul 3 22:35:19 1989 *************** *** 115,117 # define P11(t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11) # define P12(t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12) #endif --- 115,128 ----- # define P11(t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11) # define P12(t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12) #endif + + #ifndef SYS5 + #define memcpy(dst,src,n) bcopy((src),(dst),(n)) + #define memcmp(b1,b2,n) bcmp((b1),(b2),(n)) + #define strchr index + #define strrchr rindex + #endif + + #ifdef BSD4_2 + extern char *malloc(); + #endif -- Lee McLoughlin 01 589 5111 X 5028 Department of Computing,Imperial College,180 Queens Gate,London SW7 2BZ, UK Janet: lmjm@uk.ac.ic.doc Uucp: lmjm@icdoc.UUCP (or ..!ukc!icdoc!lmjm) DARPA: lmjm@doc.ic.ac.uk (or lmjm%uk.ac.ic.doc@nsfnet-relay.ac.uk)