Compilers should recognize void by now
This commit is contained in:
parent
067ad0cc22
commit
cee6ab37e7
|
@ -6,6 +6,7 @@
|
||||||
#include <system.h>
|
#include <system.h>
|
||||||
#include "alloc.h"
|
#include "alloc.h"
|
||||||
|
|
||||||
|
void
|
||||||
No_Mem()
|
No_Mem()
|
||||||
{
|
{
|
||||||
sys_write(STDERR, "Out of memory\n", 14);
|
sys_write(STDERR, "Out of memory\n", 14);
|
||||||
|
|
|
@ -38,13 +38,14 @@ Malloc, Salloc, Realloc, Srealloc, st_alloc, st_free\ \-\ low level memory alloc
|
||||||
.br
|
.br
|
||||||
.B unsigned int size;
|
.B unsigned int size;
|
||||||
.PP
|
.PP
|
||||||
.br
|
.B void clear(ptr, size)
|
||||||
.B clear(ptr, size)
|
|
||||||
.br
|
.br
|
||||||
.B char *ptr;
|
.B char *ptr;
|
||||||
.br
|
.br
|
||||||
.B unsigned int size;
|
.B unsigned int size;
|
||||||
.PP
|
.PP
|
||||||
|
.void No_Mem()
|
||||||
|
.PP
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
This set of routines provides a checking memory allocation mechanism.
|
This set of routines provides a checking memory allocation mechanism.
|
||||||
.PP
|
.PP
|
||||||
|
|
|
@ -24,12 +24,13 @@ char *Srealloc(char *, unsigned int);
|
||||||
char *Realloc(char *, unsigned int);
|
char *Realloc(char *, unsigned int);
|
||||||
char *st_alloc(char **, unsigned int, int);
|
char *st_alloc(char **, unsigned int, int);
|
||||||
char *std_alloc(char **, unsigned int, int, int *);
|
char *std_alloc(char **, unsigned int, int, int *);
|
||||||
int No_Mem(void);
|
void No_Mem(void);
|
||||||
void clear(char *, unsigned int);
|
void clear(char *, unsigned int);
|
||||||
void botch(char *, unsigned int);
|
void botch(char *, unsigned int);
|
||||||
#else
|
#else
|
||||||
extern char *Salloc(), *Malloc(), *Srealloc(), *Realloc();
|
extern char *Salloc(), *Malloc(), *Srealloc(), *Realloc();
|
||||||
extern char *st_alloc(), *std_alloc();
|
extern char *st_alloc(), *std_alloc();
|
||||||
|
void clear(), botch(), No_Mem();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* S T R U C T U R E - S T O R A G E D E F I N I T I O N S */
|
/* S T R U C T U R E - S T O R A G E D E F I N I T I O N S */
|
||||||
|
|
|
@ -9,9 +9,7 @@
|
||||||
|
|
||||||
#include "alloc.h"
|
#include "alloc.h"
|
||||||
|
|
||||||
#if __STDC__
|
|
||||||
void
|
void
|
||||||
#endif
|
|
||||||
botch(ptr, n)
|
botch(ptr, n)
|
||||||
register char *ptr;
|
register char *ptr;
|
||||||
register unsigned int n;
|
register unsigned int n;
|
||||||
|
|
|
@ -10,9 +10,7 @@
|
||||||
|
|
||||||
/* instead of Calloc: */
|
/* instead of Calloc: */
|
||||||
|
|
||||||
#if __STDC__
|
|
||||||
void
|
void
|
||||||
#endif
|
|
||||||
clear(ptr, n)
|
clear(ptr, n)
|
||||||
register char *ptr;
|
register char *ptr;
|
||||||
register unsigned int n;
|
register unsigned int n;
|
||||||
|
|
Loading…
Reference in a new issue