Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!bu.edu!nntp-read!jbw From: jbw@bigbird.bu.edu (Joe Wells) Newsgroups: comp.lang.perl Subject: Re: perl 4.0 patch #1 Message-ID: Date: 16 Apr 91 20:36:10 GMT References: <1991Apr13.183556.16756@jpl-devvax.jpl.nasa.gov> Sender: news@bu.edu.bu.edu Organization: Boston University Computer Science Department Lines: 64 In-reply-to: lwall@jpl-devvax.jpl.nasa.gov's message of 13 Apr 91 18:35:56 GMT In article <1991Apr13.183556.16756@jpl-devvax.jpl.nasa.gov> lwall@jpl-devvax.jpl.nasa.gov (Larry Wall) writes: Subject: Configure now figures out malloc ptr type It doesn't handle the case where free is declared like this in stdlib.h: extern int free(/* void *ptr */); and then you try to use Perl's malloc, which of course defines free like this: void free(cp) char *cp; { .... I just edited malloc.c by hand, but perhaps there's a better way. (BTW, SunOS 4.1 on SPARCserver.) Subject: C flags are now settable on a per-file basis How about C compiler settable on per-file basis? Here's the necessary diffs (including an example of its use, you have to use cc when compiling calls to the dbm library): ---------------------------------------------------------------------- --- Makefile.SH-dist Sat Apr 13 23:48:15 1991 +++ Makefile.SH Tue Apr 16 16:18:42 1991 @@ -104,7 +104,7 @@ SHELL = /bin/sh .c.o: - $(CC) -c $(CFLAGS) $*.c + $(CFLAGS) $*.c all: $(public) $(private) $(util) uperl.o $(scripts) cd x2p; $(MAKE) all --- cflags.SH-dist Sat Apr 13 23:48:50 1991 +++ cflags.SH Tue Apr 16 16:24:48 1991 @@ -40,7 +40,7 @@ dump.c) ;; eval.c) ;; form.c) ;; - hash.c) ;; + hash.c) cc=cc ccflags=-I/usr/include/sun;; malloc.c) ;; perl.c) ;; perly.c) ;; @@ -75,6 +75,6 @@ *) ;; esac - echo "$ccflags $optimize $large $split" - eval "$also $ccflags $optimize $large $split" + echo "$cc -c $ccflags $optimize $large $split" + eval "$also $cc -c $ccflags $optimize $large $split" done ---------------------------------------------------------------------- -- Enjoy, Joe Wells