Fixes for warnings related to -Wimplicit-int.

This commit is contained in:
Jose Rubio
2019-08-20 12:52:43 +02:00
parent 0d115796c2
commit f0c312b207
108 changed files with 177 additions and 177 deletions

View File

@@ -125,7 +125,7 @@ fi
mkdir suffix
cd suffix
for src in $probe_src
do echo "main(){return 0;}" > ../test.$src
do echo "int main(){return 0;}" > ../test.$src
rm -f test*
if $cc -c ../test.$src
then set test.*
@@ -157,7 +157,7 @@ cd ..
case $src in
c) ;;
*) echo '// (
main()
int main()
{
class { public: int i; } j;
j.i = 0;
@@ -217,7 +217,7 @@ do shift
done
echo '#include <stdio.h>
main(){printf("hello");return(0);}' > dynamic.$src
int main(){printf("hello");return(0);}' > dynamic.$src
if $cc -c dynamic.$src
then eval set x $probe_so
while :
@@ -297,7 +297,7 @@ then eval set x $probe_so
fi
fi
echo 'main(){return(0);}' > hosted.$src
echo 'int main(){return(0);}' > hosted.$src
$cc -o hosted.$exe hosted.$src && ./hosted.$exe && hosted=1
cp /bin/echo cpp

View File

@@ -129,7 +129,7 @@ done
case $src in
c) ;;
*) echo '#include <iostream.h>
main()
int main()
{
cout << "hello world";
return 0;
@@ -168,7 +168,7 @@ do shift
done
echo '#include <stdio.h>
main(){printf("hello");return(0);}' > dynamic.$src
int main(){printf("hello");return(0);}' > dynamic.$src
if $cc -c dynamic.$src
then eval set x $probe_so
while :
@@ -234,7 +234,7 @@ then eval set x $probe_so
fi
fi
echo 'main(){return(0);}' > hosted.$src
echo 'int main(){return(0);}' > hosted.$src
$cc -o hosted.$exe hosted.$src && ./hosted.$exe && hosted=1
cp /bin/echo cpp

View File

@@ -116,7 +116,7 @@ struct _s_
extern __MANGLE__ int printf __PROTO__((const char*, ...));
main()
int main()
{
int i;
int j;

View File

@@ -106,7 +106,7 @@
extern __MANGLE__ int getgroups __PROTO__((int, gid_t*));
extern __MANGLE__ int printf __PROTO__((const char*, ...));
main()
int main()
{
#if _lib_getgroups
if (sizeof(gid_t) < sizeof(int))

View File

@@ -116,7 +116,7 @@
extern __MANGLE__ int printf __PROTO__((const char*, ...));
main()
int main()
{
int f_local = 0;
int f_lck = 0;

View File

@@ -130,7 +130,7 @@ static struct
static int size[] = { 1, 2, 4, 8 };
main()
int main()
{
int t;
int s;

View File

@@ -152,7 +152,7 @@ static char* cmd[] = { "/bin/echo", 0 };
#define child() spawnve(cmd[0],cmd,(char**)0)
#endif
main()
int main()
{
int i;
int n;

View File

@@ -105,7 +105,7 @@
extern __MANGLE__ int printf __PROTO__((const char*, ...));
main()
int main()
{
int n;
int idperm;

View File

@@ -256,7 +256,7 @@ static int index[64];
extern __MANGLE__ int printf __PROTO__((const char*, ...));
main()
int main()
{
int i;
int j;

View File

@@ -131,7 +131,7 @@ __STDPP__directive pragma pp:nohide printf
extern __MANGLE__ int printf __PROTO__((const char*, ...));
#endif
main()
int main()
{
int sep = 0;
long val;

View File

@@ -108,7 +108,7 @@ struct _s_
extern __MANGLE__ int printf __PROTO__((const char*, ...));
main()
int main()
{
int i;
int j;

View File

@@ -98,7 +98,7 @@
extern __MANGLE__ int getgroups __PROTO__((int, gid_t*));
extern __MANGLE__ int printf __PROTO__((const char*, ...));
main()
int main()
{
#if _lib_getgroups
if (sizeof(gid_t) < sizeof(int))

View File

@@ -107,7 +107,7 @@
extern __MANGLE__ int printf __PROTO__((const char*, ...));
main()
int main()
{
int f_local = 0;
int f_lck = 0;

View File

@@ -122,7 +122,7 @@ static struct
static int size[] = { 1, 2, 4, 8 };
main()
int main()
{
int t;
int s;

View File

@@ -119,7 +119,7 @@ extern __MANGLE__ int printf __PROTO__((const char*, ...));
#include "conflib.h"
main()
int main()
{
int i;
int n;

View File

@@ -97,7 +97,7 @@
extern __MANGLE__ int printf __PROTO__((const char*, ...));
main()
int main()
{
int n;
int idperm;

View File

@@ -278,7 +278,7 @@ static int index[64];
extern __MANGLE__ int printf __PROTO__((const char*, ...));
main()
int main()
{
int i;
int j;

View File

@@ -118,7 +118,7 @@ extern __MANGLE__ int printf __PROTO__((const char*, ...));
#include "conflib.h"
main()
int main()
{
#include "confuni.h"
return(0);

View File

@@ -97,7 +97,7 @@
*/
int
hashwalk __PARAM__((Hash_table_t* tab, int flags, register(*walker)(const char*, char*, __V_*), __V_* handle), (tab, flags, walker, handle)) __OTORP__(Hash_table_t* tab; int flags; register(*walker)(); __V_* handle;){
hashwalk __PARAM__((Hash_table_t* tab, int flags, int register(*walker)(const char*, char*, __V_*), __V_* handle), (tab, flags, walker, handle)) __OTORP__(Hash_table_t* tab; int flags; int register(*walker)(); __V_* handle;){
Hash_bucket_t* b;
int v;
Hash_position_t* pos;

View File

@@ -416,6 +416,7 @@ static int resize __PARAM__((char** home, char** endbuf, char** path, char** bas
/*
The real thing.
*/
int
ftwalk __PARAM__((const char *cpath, int (*userf)(Ftw_t*), int flags, int (*comparf)(Ftw_t*, Ftw_t*)), (cpath, userf, flags, comparf)) __OTORP__(const char *cpath; int (*userf)(); int flags; int (*comparf)();){
char *path = (char*)cpath;
int cdrv; /* chdir value */

View File

@@ -46,7 +46,7 @@
#include "sfhdr.h"
#if __STD_C
static __sfclrerr(reg Sfio_t* f)
static int __sfclrerr(reg Sfio_t* f)
#else
static __sfclrerr(f)
reg Sfio_t *f;
@@ -58,7 +58,7 @@ reg Sfio_t *f;
#undef sfclrerr
#if __STD_C
sfclrerr(reg Sfio_t* f)
int sfclrerr(reg Sfio_t* f)
#else
sfclrerr(f)
reg Sfio_t *f;

View File

@@ -46,7 +46,7 @@
#include "sfhdr.h"
#if __STD_C
static __sfeof(reg Sfio_t* f)
static int __sfeof(reg Sfio_t* f)
#else
static __sfeof(f)
reg Sfio_t *f;
@@ -58,7 +58,7 @@ reg Sfio_t *f;
#undef sfeof
#if __STD_C
sfeof(reg Sfio_t* f)
int sfeof(reg Sfio_t* f)
#else
sfeof(f)
reg Sfio_t *f;

View File

@@ -46,7 +46,7 @@
#include "sfhdr.h"
#if __STD_C
static __sferror(reg Sfio_t* f)
static int __sferror(reg Sfio_t* f)
#else
static __sferror(f)
reg Sfio_t *f;
@@ -58,7 +58,7 @@ reg Sfio_t *f;
#undef sferror
#if __STD_C
sferror(reg Sfio_t* f)
int sferror(reg Sfio_t* f)
#else
sferror(f)
reg Sfio_t *f;

View File

@@ -46,7 +46,7 @@
#include "sfhdr.h"
#if __STD_C
static __sffileno(reg Sfio_t* f)
static int __sffileno(reg Sfio_t* f)
#else
static __sffileno(f)
reg Sfio_t *f;
@@ -58,7 +58,7 @@ reg Sfio_t *f;
#undef sffileno
#if __STD_C
sffileno(reg Sfio_t* f)
int sffileno(reg Sfio_t* f)
#else
sffileno(f)
reg Sfio_t *f;

View File

@@ -46,7 +46,7 @@
#include "sfhdr.h"
#if __STD_C
static __sfgetc(reg Sfio_t* f)
static int __sfgetc(reg Sfio_t* f)
#else
static __sfgetc(f)
reg Sfio_t *f;
@@ -58,7 +58,7 @@ reg Sfio_t *f;
#undef sfgetc
#if __STD_C
sfgetc(reg Sfio_t* f)
int sfgetc(reg Sfio_t* f)
#else
sfgetc(f)
reg Sfio_t *f;

View File

@@ -46,7 +46,7 @@
#include "sfhdr.h"
#if __STD_C
static __sfputc(reg Sfio_t* f, reg int c)
static int __sfputc(reg Sfio_t* f, reg int c)
#else
static __sfputc(f,c)
reg Sfio_t *f;
@@ -59,7 +59,7 @@ reg int c;
#undef sfputc
#if __STD_C
sfputc(reg Sfio_t* f, reg int c)
int sfputc(reg Sfio_t* f, reg int c)
#else
sfputc(f,c)
reg Sfio_t *f;

View File

@@ -46,7 +46,7 @@
#include "sfhdr.h"
#if __STD_C
static __sfputd(reg Sfio_t* f, reg double v)
static int __sfputd(reg Sfio_t* f, reg double v)
#else
static __sfputd(f,v)
reg Sfio_t *f;
@@ -59,7 +59,7 @@ reg double v;
#undef sfputd
#if __STD_C
sfputd(reg Sfio_t* f, reg double v)
int sfputd(reg Sfio_t* f, reg double v)
#else
sfputd(f,v)
reg Sfio_t *f;

View File

@@ -46,7 +46,7 @@
#include "sfhdr.h"
#if __STD_C
static __sfputl(reg Sfio_t* f, reg long v)
static int __sfputl(reg Sfio_t* f, reg long v)
#else
static __sfputl(f,v)
reg Sfio_t *f;
@@ -59,7 +59,7 @@ reg long v;
#undef sfputl
#if __STD_C
sfputl(reg Sfio_t* f, reg long v)
int sfputl(reg Sfio_t* f, reg long v)
#else
sfputl(f,v)
reg Sfio_t *f;

View File

@@ -46,7 +46,7 @@
#include "sfhdr.h"
#if __STD_C
static __sfputu(reg Sfio_t* f, reg ulong v)
static int __sfputu(reg Sfio_t* f, reg ulong v)
#else
static __sfputu(f,v)
reg Sfio_t *f;
@@ -59,7 +59,7 @@ reg ulong v;
#undef sfputu
#if __STD_C
sfputu(reg Sfio_t* f, reg ulong v)
int sfputu(reg Sfio_t* f, reg ulong v)
#else
sfputu(f,v)
reg Sfio_t *f;

View File

@@ -46,7 +46,7 @@
#include "sfhdr.h"
#if __STD_C
static __sfslen(void)
static int __sfslen(void)
#else
static __sfslen()
#endif
@@ -57,7 +57,7 @@ static __sfslen()
#undef sfslen
#if __STD_C
sfslen(void)
int sfslen(void)
#else
sfslen()
#endif

View File

@@ -46,7 +46,7 @@
#include "sfhdr.h"
#if __STD_C
static __sfstacked(reg Sfio_t* f)
static int __sfstacked(reg Sfio_t* f)
#else
static __sfstacked(f)
reg Sfio_t *f;
@@ -58,7 +58,7 @@ reg Sfio_t *f;
#undef sfstacked
#if __STD_C
sfstacked(reg Sfio_t* f)
int sfstacked(reg Sfio_t* f)
#else
sfstacked(f)
reg Sfio_t *f;

View File

@@ -46,7 +46,7 @@
#include "sfhdr.h"
#if __STD_C
static __sfulen(reg ulong v)
static int __sfulen(reg ulong v)
#else
static __sfulen(v)
reg ulong v;
@@ -58,7 +58,7 @@ reg ulong v;
#undef sfulen
#if __STD_C
sfulen(reg ulong v)
int sfulen(reg ulong v)
#else
sfulen(v)
reg ulong v;

View File

@@ -51,7 +51,7 @@
*/
#if __STD_C
sfclose(reg Sfio_t* f)
int sfclose(reg Sfio_t* f)
#else
sfclose(f)
reg Sfio_t* f;

View File

@@ -52,7 +52,7 @@
** Written by Kiem-Phong Vo (07/20/90).
*/
#if __STD_C
sfclrlock(reg Sfio_t* f)
int sfclrlock(reg Sfio_t* f)
#else
sfclrlock(f)
reg Sfio_t *f;

View File

@@ -51,7 +51,7 @@
*/
#if __STD_C
sfdlen(reg double v)
int sfdlen(reg double v)
#else
sfdlen(v)
reg double v;

View File

@@ -49,7 +49,7 @@
** Written by Kiem-Phong Vo (8/18/90)
*/
#if __STD_C
_sfexcept(reg Sfio_t* f, reg int type, reg int io, reg Sfdisc_t* disc)
int _sfexcept(reg Sfio_t* f, reg int type, reg int io, reg Sfdisc_t* disc)
#else
_sfexcept(f,type,io,disc)
reg Sfio_t *f; /* stream where the exception happened */

View File

@@ -56,7 +56,7 @@
*/
#if __STD_C
_sffilbuf(reg Sfio_t* f, reg int n)
int _sffilbuf(reg Sfio_t* f, reg int n)
#else
_sffilbuf(f,n)
reg Sfio_t *f; /* fill the read buffer of this stream */

View File

@@ -52,7 +52,7 @@
*/
#if __STD_C
_sfflsbuf(reg Sfio_t* f, reg int c)
int _sfflsbuf(reg Sfio_t* f, reg int c)
#else
_sfflsbuf(f,c)
reg Sfio_t *f; /* write out the buffered content of this stream */

View File

@@ -50,7 +50,7 @@
** Written by Kiem-Phong Vo (06/27/90)
*/
#if __STD_C
sfllen(reg long v)
int sfllen(reg long v)
#else
sfllen(v)
reg long v;

View File

@@ -95,7 +95,7 @@ static void _sfcleanup()
/* put into discrete pool */
#if __STD_C
_sfsetpool(Sfio_t* f)
int _sfsetpool(Sfio_t* f)
#else
_sfsetpool(f)
Sfio_t* f;
@@ -214,7 +214,7 @@ typedef struct _sfp_
static Sfpopen_t* _Sfprocess;
#if __STD_C
_sfpopen(reg Sfio_t* f, int fd, int pid)
int _sfpopen(reg Sfio_t* f, int fd, int pid)
#else
_sfpopen(f, fd, pid)
reg Sfio_t* f;
@@ -245,7 +245,7 @@ int pid;
}
#if __STD_C
_sfpclose(reg Sfio_t* f)
int _sfpclose(reg Sfio_t* f)
#else
_sfpclose(f)
reg Sfio_t* f; /* stream to close */
@@ -307,7 +307,7 @@ reg Sfio_t* f; /* stream to close */
}
#if __STD_C
static _sfpmode(Sfio_t* f, int type)
static int _sfpmode(Sfio_t* f, int type)
#else
static _sfpmode(f,type)
Sfio_t* f;
@@ -413,7 +413,7 @@ int stack;
}
#if __STD_C
_sfmode(reg Sfio_t* f, reg int wanted, reg int local)
int _sfmode(reg Sfio_t* f, reg int wanted, reg int local)
#else
_sfmode(f, wanted, local)
reg Sfio_t* f; /* change r/w mode and sync file pointer for this stream */

View File

@@ -51,7 +51,7 @@
** Written by Kiem-Phong Vo (01/06/91)
*/
#if __STD_C
sfnotify(void (*notify)(Sfio_t*, int, int))
int sfnotify(void (*notify)(Sfio_t*, int, int))
#else
sfnotify(notify)
void (*notify)();

View File

@@ -51,7 +51,7 @@
*/
#if __STD_C
sfnputc(reg Sfio_t* f, reg int c, reg int n)
int sfnputc(reg Sfio_t* f, reg int c, reg int n)
#else
sfnputc(f,c,n)
reg Sfio_t *f; /* file to write */

View File

@@ -113,7 +113,7 @@ reg char *mode; /* mode of the stream */
}
#if __STD_C
_sftype(reg const char *mode, int *oflagsp)
int _sftype(reg const char *mode, int *oflagsp)
#else
_sftype(mode, oflagsp)
reg char *mode;

View File

@@ -52,7 +52,7 @@
*/
#if __STD_C
sfpeek(reg Sfio_t* f, Void_t** bp, reg int size)
int sfpeek(reg Sfio_t* f, Void_t** bp, reg int size)
#else
sfpeek(f,bp,size)
reg Sfio_t* f; /* file to peek */

View File

@@ -61,7 +61,7 @@
#define SOCKET_PEEK 002
#if __STD_C
sfpkrd(int fd, Void_t* argbuf, int n, int rc, long tm, int action)
int sfpkrd(int fd, Void_t* argbuf, int n, int rc, long tm, int action)
#else
sfpkrd(fd, argbuf, n, rc, tm, action)
int fd; /* file descriptor */

View File

@@ -51,7 +51,7 @@
*/
#if __STD_C
sfpoll(Sfio_t** fa, reg int n, int tm)
int sfpoll(Sfio_t** fa, reg int n, int tm)
#else
sfpoll(fa, n, tm)
Sfio_t** fa; /* array of streams to poll */

View File

@@ -106,7 +106,7 @@ reg int mode;
/* move a stream to head */
#if __STD_C
static _sfphead(Sfpool_t* p, Sfio_t* f, int n)
static int _sfphead(Sfpool_t* p, Sfio_t* f, int n)
#else
static _sfphead(p, f, n)
Sfpool_t* p; /* the pool */

View File

@@ -51,7 +51,7 @@
*/
#if __STD_C
sfprintf(Sfio_t *f, const char *form, ...)
int sfprintf(Sfio_t *f, const char *form, ...)
#else
sfprintf(va_alist)
va_dcl
@@ -76,7 +76,7 @@ va_dcl
}
#if __STD_C
sfsprintf(char *s, int n, const char *form, ...)
int sfsprintf(char *s, int n, const char *form, ...)
#else
sfsprintf(va_alist)
va_dcl

View File

@@ -51,7 +51,7 @@
*/
#if __STD_C
sfpurge(reg Sfio_t* f)
int sfpurge(reg Sfio_t* f)
#else
sfpurge(f)
reg Sfio_t *f;

View File

@@ -51,7 +51,7 @@
*/
#if __STD_C
_sfputd(Sfio_t* f, reg double v)
int _sfputd(Sfio_t* f, reg double v)
#else
_sfputd(f,v)
Sfio_t *f;

View File

@@ -51,7 +51,7 @@
*/
#if __STD_C
_sfputl(reg Sfio_t* f, reg long v)
int _sfputl(reg Sfio_t* f, reg long v)
#else
_sfputl(f,v)
reg Sfio_t *f; /* write a portable long to this stream */

View File

@@ -53,7 +53,7 @@
** Written by Kiem-Phong Vo
*/
#if __STD_C
sfputr(reg Sfio_t* f, const char* s, reg int rc)
int sfputr(reg Sfio_t* f, const char* s, reg int rc)
#else
sfputr(f,s,rc)
reg Sfio_t* f; /* write to this stream. r11 on Vax */

View File

@@ -51,7 +51,7 @@
*/
#if __STD_C
_sfputu(reg Sfio_t* f, reg ulong v)
int _sfputu(reg Sfio_t* f, reg ulong v)
#else
_sfputu(f,v)
reg Sfio_t *f; /* write a portable ulong to this stream */

View File

@@ -77,7 +77,7 @@ static void _sfwrsync()
}
#if __STD_C
sfrd(reg Sfio_t* f, reg Void_t* buf, reg int n, reg Sfdisc_t* disc)
int sfrd(reg Sfio_t* f, reg Void_t* buf, reg int n, reg Sfdisc_t* disc)
#else
sfrd(f,buf,n,disc)
reg Sfio_t *f;

View File

@@ -54,7 +54,7 @@
*/
#if __STD_C
sfread(reg Sfio_t* f, Void_t* buf, reg int n)
int sfread(reg Sfio_t* f, Void_t* buf, reg int n)
#else
sfread(f,buf,n)
reg Sfio_t* f; /* read from this stream. r11 on Vax */

View File

@@ -51,7 +51,7 @@
*/
#if __STD_C
sfscanf(Sfio_t *f, const char *form, ...)
int sfscanf(Sfio_t *f, const char *form, ...)
#else
sfscanf(va_alist)
va_dcl
@@ -76,7 +76,7 @@ va_dcl
}
#if __STD_C
sfsscanf(const char *s, const char *form,...)
int sfsscanf(const char *s, const char *form,...)
#else
sfsscanf(va_alist)
va_dcl

View File

@@ -51,7 +51,7 @@
*/
#if __STD_C
sfset(reg Sfio_t* f, reg int flags, reg int set)
int sfset(reg Sfio_t* f, reg int flags, reg int set)
#else
sfset(f,flags,set)
reg Sfio_t *f;

View File

@@ -51,7 +51,7 @@
*/
#if __STD_C
static _sfdup(reg int fd, reg int newfd)
static int _sfdup(reg int fd, reg int newfd)
#else
static _sfdup(fd,newfd)
reg int fd;
@@ -80,7 +80,7 @@ reg int newfd;
}
#if __STD_C
sfsetfd(reg Sfio_t* f, reg int newfd)
int sfsetfd(reg Sfio_t* f, reg int newfd)
#else
sfsetfd(f,newfd)
reg Sfio_t *f;

View File

@@ -51,7 +51,7 @@
** Written by Kiem-Phong Vo (06/27/90)
*/
static _sfall()
static int _sfall()
{
reg Sfpool_t *p, *next;
reg Sfio_t* f;
@@ -102,7 +102,7 @@ static _sfall()
}
#if __STD_C
sfsync(reg Sfio_t* f)
int sfsync(reg Sfio_t* f)
#else
sfsync(f)
reg Sfio_t* f; /* stream to be synchronized */

View File

@@ -130,7 +130,7 @@ char *name;
#endif /*_PACKAGE_ast*/
#if __STD_C
static _tmpexcept(Sfio_t* f, int type, Sfdisc_t* disc)
static int _tmpexcept(Sfio_t* f, int type, Sfdisc_t* disc)
#else
static _tmpexcept(f,type,disc)
Sfio_t* f;

View File

@@ -50,7 +50,7 @@
** Written by Kiem-Phong Vo (03/02/91)
*/
#if __STD_C
static _uexcept(reg Sfio_t* f, reg int type, reg Sfdisc_t* disc)
static int _uexcept(reg Sfio_t* f, reg int type, reg Sfdisc_t* disc)
#else
static _uexcept(f,type,disc)
reg Sfio_t *f;
@@ -70,7 +70,7 @@ reg Sfdisc_t *disc;
}
#if __STD_C
sfungetc(reg Sfio_t* f, reg int c)
int sfungetc(reg Sfio_t* f, reg int c)
#else
sfungetc(f,c)
reg Sfio_t *f; /* push back one byte to this stream */

View File

@@ -99,7 +99,7 @@
}
#if __STD_C
sfvprintf(Sfio_t* f, const char* form, va_list args)
int sfvprintf(Sfio_t* f, const char* form, va_list args)
#else
sfvprintf(f,form,args)
Sfio_t* f; /* file to print to */

View File

@@ -136,7 +136,7 @@ int* rs;
}
#if __STD_C
sfvscanf(Sfio_t* f, reg const char* form, va_list args)
int sfvscanf(Sfio_t* f, reg const char* form, va_list args)
#else
sfvscanf(f,form,args)
Sfio_t *f; /* file to be scanned */

View File

@@ -52,7 +52,7 @@
/* hole preserving writes */
#if __STD_C
static sfoutput(Sfio_t* f, reg char* buf, reg int n)
static int sfoutput(Sfio_t* f, reg char* buf, reg int n)
#else
static sfoutput(f,buf,n)
Sfio_t* f;
@@ -144,7 +144,7 @@ reg int n;
}
#if __STD_C
sfwr(reg Sfio_t* f, reg const Void_t* buf, reg int n, reg Sfdisc_t* disc)
int sfwr(reg Sfio_t* f, reg const Void_t* buf, reg int n, reg Sfdisc_t* disc)
#else
sfwr(f,buf,n,disc)
reg Sfio_t* f;

View File

@@ -54,7 +54,7 @@
*/
#if __STD_C
sfwrite(reg Sfio_t* f, const Void_t* buf, reg int n)
int sfwrite(reg Sfio_t* f, const Void_t* buf, reg int n)
#else
sfwrite(f,buf,n)
reg Sfio_t* f; /* write to this stream. r11 on Vax */

View File

@@ -53,7 +53,7 @@
*/
#if __STD_C
_stdprintf(const char *form, ...)
int _stdprintf(const char *form, ...)
#else
_stdprintf(va_alist)
va_dcl

View File

@@ -52,7 +52,7 @@
*/
#if __STD_C
_stdscanf(const char *form, ...)
int _stdscanf(const char *form, ...)
#else
_stdscanf(va_alist)
va_dcl

View File

@@ -54,7 +54,7 @@
#if __STD_C
_stdsprintf(char *s, const char *form, ...)
int _stdsprintf(char *s, const char *form, ...)
#else
_stdsprintf(va_alist)
va_dcl

View File

@@ -52,7 +52,7 @@
*/
#if __STD_C
_stdsetvbuf(Sfio_t* f, char *buf, int type, int size)
int _stdsetvbuf(Sfio_t* f, char *buf, int type, int size)
#else
_stdsetvbuf(f,buf,type,size)
Sfio_t *f;

View File

@@ -46,7 +46,7 @@
#include "sfhdr.h"
#if __STD_C
_stdvsnprintf(char* s, int n, const char* form, va_list args)
int _stdvsnprintf(char* s, int n, const char* form, va_list args)
#else
_stdvsnprintf(s,n,form,args)
reg char* s;

View File

@@ -46,7 +46,7 @@
#include "sfhdr.h"
#if __STD_C
_stdvsprintf(char *s, const char *form, va_list args)
int _stdvsprintf(char *s, const char *form, va_list args)
#else
_stdvsprintf(s,form,args)
char *s;

View File

@@ -46,7 +46,7 @@
#include "sfhdr.h"
#if __STD_C
_stdvsscanf(char *s, const char *form, va_list args)
int _stdvsscanf(char *s, const char *form, va_list args)
#else
_stdvsscanf(s,form,args)
char *s;

View File

@@ -169,7 +169,7 @@ char* ends;
}
#if __STD_C
static createfile(char* file)
static int createfile(char* file)
#else
static createfile(file)
char* file;
@@ -212,7 +212,7 @@ static void pfprint()
vmprofile(Vmregion,_Vmpffd);
}
static vmflinit()
static int vmflinit()
{
char* env;
Vmalloc_t* vm;

View File

@@ -325,7 +325,7 @@ Block_t* wanted;
/* Reclaim all delayed free blocks into the free tree */
#if __STD_C
static bestreclaim(reg Vmdata_t* vd, Block_t* wanted, int c)
static int bestreclaim(reg Vmdata_t* vd, Block_t* wanted, int c)
#else
static bestreclaim(vd, wanted, c)
reg Vmdata_t* vd;
@@ -687,7 +687,7 @@ done:
}
#if __STD_C
static bestfree(Vmalloc_t* vm, Void_t* data )
static int bestfree(Vmalloc_t* vm, Void_t* data )
#else
static bestfree(vm, data )
Vmalloc_t* vm;
@@ -924,7 +924,7 @@ done:
}
#if __STD_C
static bestcompact(Vmalloc_t* vm)
static int bestcompact(Vmalloc_t* vm)
#else
static bestcompact(vm)
Vmalloc_t* vm;

View File

@@ -50,7 +50,7 @@
** Written by (Kiem-)Phong Vo, kpv@research.att.com, 01/16/94.
*/
#if __STD_C
vmclear(Vmalloc_t* vm)
int vmclear(Vmalloc_t* vm)
#else
vmclear(vm)
Vmalloc_t* vm;

View File

@@ -50,7 +50,7 @@
** Written by (Kiem-)Phong Vo, kpv@research.att.com, 01/16/94.
*/
#if __STD_C
vmclose(Vmalloc_t* vm)
int vmclose(Vmalloc_t* vm)
#else
vmclose(vm)
Vmalloc_t* vm;

View File

@@ -542,7 +542,7 @@ int flags; /* VM_RS* */
/* compact any residual free space */
#if __STD_C
static dbcompact(Vmalloc_t* vm)
static int dbcompact(Vmalloc_t* vm)
#else
static dbcompact(vm)
Vmalloc_t* vm;
@@ -553,7 +553,7 @@ Vmalloc_t* vm;
/* check for memory overwrites over all live blocks */
#if __STD_C
vmdbcheck(Vmalloc_t* vm)
int vmdbcheck(Vmalloc_t* vm)
#else
vmdbcheck(vm)
Vmalloc_t* vm;

View File

@@ -327,7 +327,7 @@ Void_t* addr;
}
#if __STD_C
static lastcompact(Vmalloc_t* vm)
static int lastcompact(Vmalloc_t* vm)
#else
static lastcompact(vm)
Vmalloc_t* vm;

View File

@@ -265,7 +265,7 @@ Void_t* addr;
}
#if __STD_C
static poolcompact(Vmalloc_t* vm)
static int poolcompact(Vmalloc_t* vm)
#else
static poolcompact(vm)
Vmalloc_t* vm;

View File

@@ -213,7 +213,7 @@ Vmsearch_f searchf; /* tree search function */
/* Truncate a segment if possible */
#if __STD_C
vmtruncate(Vmalloc_t* vm, Seg_t* seg, size_t size, int exact)
int vmtruncate(Vmalloc_t* vm, Seg_t* seg, size_t size, int exact)
#else
vmtruncate(vm, seg, size, exact)
Vmalloc_t* vm; /* containing region */

View File

@@ -369,7 +369,7 @@ ulong size;
/* print profile data */
#if __STD_C
vmprofile(Vmalloc_t* vm, int fd)
int vmprofile(Vmalloc_t* vm, int fd)
#else
vmprofile(vm, fd)
Vmalloc_t* vm;

View File

@@ -51,7 +51,7 @@
** Written by (Kiem-)Phong Vo, kpv@research.att.com, 01/16/94.
*/
#if __STD_C
vmset(reg Vmalloc_t* vm, int flags, int on)
int vmset(reg Vmalloc_t* vm, int flags, int on)
#else
vmset(vm, flags, on)
reg Vmalloc_t* vm; /* region being worked on */

View File

@@ -51,7 +51,7 @@
*/
#if __STD_C
vmstat(Vmalloc_t* vm, Vmstat_t* st)
int vmstat(Vmalloc_t* vm, Vmstat_t* st)
#else
vmstat(vm, st)
Vmalloc_t* vm;

View File

@@ -162,7 +162,7 @@ size_t size; /* size of piece */
}
#if __STD_C
vmtrace(int file)
int vmtrace(int file)
#else
vmtrace(file)
int file;

View File

@@ -76,7 +76,7 @@ make FEATURE/symlink implicit
make features/symlink
done features/symlink
make cmd.req
exec - echo 'main(){return(0);}' > 1.${COTEMP}.c
exec - echo 'int main(){return(0);}' > 1.${COTEMP}.c
exec - ${CC} ${CCFLAGS} -c 1.${COTEMP}.c &&
exec - set +x
exec - x=`${CC} ${CCFLAGS} ${LDFLAGS} -o 1.${COTEMP}.x 1.${COTEMP}.o -l'*' 2>&1 | sed -e 's/[][()+@?]/#/g' || :` &&

View File

@@ -116,7 +116,7 @@ Wc_t *wc_init __PARAM__((char *space), (space)) __OTORP__(char *space;){
/*
* compute the line, word, and character count for file <fd>
*/
wc_count __PARAM__((Wc_t *wp, Sfio_t *fd), (wp, fd)) __OTORP__(Wc_t *wp; Sfio_t *fd;){
int wc_count __PARAM__((Wc_t *wp, Sfio_t *fd), (wp, fd)) __OTORP__(Wc_t *wp; Sfio_t *fd;){
signed char *space = wp->space;
unsigned char *cp;
long nwords;

View File

@@ -80,7 +80,7 @@ struct _table_s
/* encode and output delta instructions */
#if __STD_C
static vdputinst(Table_t* tab, uchar* begs, uchar* here, Match_t* match, int n_copy)
static int vdputinst(Table_t* tab, uchar* begs, uchar* here, Match_t* match, int n_copy)
#else
static vdputinst(tab, begs, here, match, n_copy)
Table_t* tab;
@@ -181,7 +181,7 @@ int n_copy; /* length of match */
/* Fold a string */
#if __STD_C
static vdfold(Table_t* tab, int output)
static int vdfold(Table_t* tab, int output)
#else
static vdfold(tab, output)
Table_t* tab;

View File

@@ -51,7 +51,7 @@
*/
#if __STD_C
static _vdinit(reg Vdio_t* io)
static int _vdinit(reg Vdio_t* io)
#else
static _vdinit(io)
reg Vdio_t* io;
@@ -69,7 +69,7 @@ reg Vdio_t* io;
#if __STD_C
static _vdfilbuf(reg Vdio_t* io)
static int _vdfilbuf(reg Vdio_t* io)
#else
static _vdfilbuf(io)
reg Vdio_t* io;
@@ -90,7 +90,7 @@ reg Vdio_t* io;
}
#if __STD_C
static _vdflsbuf(reg Vdio_t* io)
static int _vdflsbuf(reg Vdio_t* io)
#else
static _vdflsbuf(io)
reg Vdio_t* io;
@@ -131,7 +131,7 @@ reg ulong v;
}
#if __STD_C
static _vdputu(reg Vdio_t* io, ulong v)
static int _vdputu(reg Vdio_t* io, ulong v)
#else
static _vdputu(io, v)
reg Vdio_t* io;
@@ -165,7 +165,7 @@ reg ulong v;
}
#if __STD_C
static _vdread(Vdio_t* io, reg uchar* s, reg int n)
static int _vdread(Vdio_t* io, reg uchar* s, reg int n)
#else
static _vdread(io, s, n)
Vdio_t* io;
@@ -192,7 +192,7 @@ reg int n;
}
#if __STD_C
static _vdwrite(Vdio_t* io, reg uchar* s, reg int n)
static int _vdwrite(Vdio_t* io, reg uchar* s, reg int n)
#else
static _vdwrite(io, s, n)
Vdio_t* io;

View File

@@ -75,7 +75,7 @@ typedef struct _table_s
} Table_t;
#if __STD_C
static vdunfold(Table_t* tab)
static int vdunfold(Table_t* tab)
#else
static vdunfold(tab)
Table_t* tab;