From bf37d48ac58355b7499e84418b28eff8f4a4baf8 Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 14 Jan 1988 13:40:56 +0000 Subject: [PATCH] Some minor corrections --- modules/src/alloc/Makefile | 3 ++- modules/src/alloc/Malloc.c | 3 --- modules/src/alloc/Realloc.c | 3 --- modules/src/alloc/Salloc.c | 3 --- modules/src/alloc/Srealloc.c | 3 --- modules/src/alloc/alloc.3 | 2 ++ 6 files changed, 4 insertions(+), 13 deletions(-) diff --git a/modules/src/alloc/Makefile b/modules/src/alloc/Makefile index de720ea75..db6925221 100644 --- a/modules/src/alloc/Makefile +++ b/modules/src/alloc/Makefile @@ -3,6 +3,7 @@ HDIR = $(EMHOME)/modules/h INSTALL=$(EMHOME)/modules/install COMPARE=$(EMHOME)/modules/compare INCLUDES = -I. -I$(HDIR) +AR = ar CFLAGS = -O $(INCLUDES) @@ -24,7 +25,7 @@ OBJECTS = botch.o clear.o st_alloc.o Malloc.o Salloc.o \ all: liballoc.a liballoc.a: $(OBJECTS) - ar cr liballoc.a $(OBJECTS) + $(AR) cr liballoc.a $(OBJECTS) -sh -c 'ranlib liballoc.a' install: all diff --git a/modules/src/alloc/Malloc.c b/modules/src/alloc/Malloc.c index db538eef9..f8ac6c24d 100644 --- a/modules/src/alloc/Malloc.c +++ b/modules/src/alloc/Malloc.c @@ -8,11 +8,8 @@ /* The memory allocation routines offered in this file are: char *Malloc(n) : allocate n bytes - - This file imports routines from "system". */ -#include #include "in_all.h" #include "alloc.h" diff --git a/modules/src/alloc/Realloc.c b/modules/src/alloc/Realloc.c index 643bd9a8c..50652643a 100644 --- a/modules/src/alloc/Realloc.c +++ b/modules/src/alloc/Realloc.c @@ -8,11 +8,8 @@ /* The memory allocation routines offered in this file are: char *Realloc(ptr, n) : reallocate buffer to n bytes - - This file imports routines from "system". */ -#include #include "in_all.h" #include "alloc.h" diff --git a/modules/src/alloc/Salloc.c b/modules/src/alloc/Salloc.c index 33c93e443..f553c4941 100644 --- a/modules/src/alloc/Salloc.c +++ b/modules/src/alloc/Salloc.c @@ -9,11 +9,8 @@ char *Salloc(str, n) : allocate n bytes, initialized with the string str - - This file imports routines from "system". */ -#include #include "in_all.h" #include "alloc.h" diff --git a/modules/src/alloc/Srealloc.c b/modules/src/alloc/Srealloc.c index 9f1fede3c..2f04d965c 100644 --- a/modules/src/alloc/Srealloc.c +++ b/modules/src/alloc/Srealloc.c @@ -8,11 +8,8 @@ /* The memory allocation routines offered in this file are: char *Srealloc(ptr, n) : reallocate buffer to n bytes - - This file imports routines from "system". */ -#include #include "in_all.h" #include "alloc.h" diff --git a/modules/src/alloc/alloc.3 b/modules/src/alloc/alloc.3 index e2d6fecc7..4d169f804 100644 --- a/modules/src/alloc/alloc.3 +++ b/modules/src/alloc/alloc.3 @@ -85,6 +85,8 @@ These last two routines are best used in a macro. ~em/modules/h/alloc.h ~em/modules/lib/liballoc.a .fi +.SH "MODULES USED" +system(3) .SH "SEE ALSO" malloc(3) .SH DIAGNOSTICS