version 1.7, 1997/08/23 01:59:21 |
version 1.8, 1997/09/11 11:21:52 |
|
|
#include <unistd.h> |
#include <unistd.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <stdio.h> |
#include <stdio.h> |
|
#include <string.h> |
|
#include <ctype.h> |
#include <err.h> |
#include <err.h> |
|
|
unsigned long total_text, total_data, total_bss, total_total; |
unsigned long total_text, total_data, total_bss, total_total; |
|
|
|
|
int process_file __P((int, char *)); |
int process_file __P((int, char *)); |
int show_archive __P((int, char *, FILE *)); |
int show_archive __P((int, char *, FILE *)); |
|
int show_objfile __P((int, char *, FILE *)); |
int show_object __P((int, char *, FILE *)); |
int show_object __P((int, char *, FILE *)); |
void *emalloc __P((size_t)); |
void *emalloc __P((size_t)); |
void *erealloc __P((void *, size_t)); |
void *erealloc __P((void *, size_t)); |
|
|
char *p; |
char *p; |
|
|
/* NOSTRICT */ |
/* NOSTRICT */ |
if (p = malloc(size)) |
if ((p = malloc(size))) |
return(p); |
return(p); |
err(1, NULL); |
err(1, NULL); |
} |
} |
|
|
size_t size; |
size_t size; |
{ |
{ |
/* NOSTRICT */ |
/* NOSTRICT */ |
if (p = realloc(p, size)) |
if ((p = realloc(p, size))) |
return(p); |
return(p); |
err(1, NULL); |
err(1, NULL); |
} |
} |