1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Remove leftover pre-C89 code (re: a1f5c992)

I'd forgotten to check for uses of the __STDC__ macro. This is
defined on all C compilers that support C89/C90 or later standards.
So we can remove all fallback code disabled by that macro.
This commit is contained in:
Martijn Dekker 2021-12-27 05:43:07 +00:00
parent e072e7c170
commit 2027648f1a
12 changed files with 4 additions and 104 deletions

View file

@ -20,9 +20,7 @@
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#if __STDC__
#include "FEATURE/standards"
#endif
#include "sfhdr.h"
/* Convert a floating point value to ASCII.

View file

@ -1206,30 +1206,6 @@ extern Sfdouble_t ldexpl(Sfdouble_t, int);
#if !_PACKAGE_ast
#if !__STDC__ && !_hdr_stdlib
extern void abort(void);
extern int atexit(void(*)(void));
extern char* getenv(const char*);
extern void* malloc(size_t);
extern void* realloc(void*, size_t);
extern void free(void*);
extern size_t strlen(const char*);
extern char* strcpy(char*, const char*);
extern void* memset(void*, int, size_t);
extern void* memchr(const void*, int, size_t);
extern void* memccpy(void*, const void*, int, size_t);
#ifndef memcpy
extern void* memcpy(void*, const void*, size_t);
#endif
#if !defined(strtod)
extern double strtod(const char*, char**);
#endif
#if !defined(remove)
extern int sysremovef(const char*);
#endif
#endif /* !__STDC__ && !_hdr_stdlib */
#if !_hdr_unistd
extern int sysclosef(int);
extern ssize_t sysreadf(int, void*, size_t);