mined: remove !__STDC__ code blocks.
__STDC__ is used to mitigate the differences between K&R C and the ANSI C standard. Nearly every compiler now supports ANSI C, so there is no need to support non-standard compilers. Change-Id: Ifc3381ecf1c43dfde9004bee48552d8b3ac4dcdc
This commit is contained in:
parent
f3734d6b31
commit
e6df9032b3
@ -258,11 +258,7 @@ int ask_save(void);
|
|||||||
int line_number(void);
|
int line_number(void);
|
||||||
void file_status(char *message, long count, char *file, int lines, FLAG
|
void file_status(char *message, long count, char *file, int lines, FLAG
|
||||||
writefl, FLAG changed );
|
writefl, FLAG changed );
|
||||||
#if __STDC__
|
|
||||||
void build_string(char *buf, char *fmt, ...);
|
void build_string(char *buf, char *fmt, ...);
|
||||||
#else
|
|
||||||
void build_string();
|
|
||||||
#endif
|
|
||||||
char *num_out(long number );
|
char *num_out(long number );
|
||||||
int get_number(char *message, int *result );
|
int get_number(char *message, int *result );
|
||||||
int input(char *inbuf, FLAG clearfl );
|
int input(char *inbuf, FLAG clearfl );
|
||||||
|
@ -411,11 +411,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#if __STDC__
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#else
|
|
||||||
#include <varargs.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern int errno;
|
extern int errno;
|
||||||
int ymax = YMAX;
|
int ymax = YMAX;
|
||||||
@ -1557,21 +1553,12 @@ void file_status(char *message, register long count, char *file, int lines,
|
|||||||
* Build_string() prints the arguments as described in fmt, into the buffer.
|
* Build_string() prints the arguments as described in fmt, into the buffer.
|
||||||
* %s indicates an argument string, %d indicated an argument number.
|
* %s indicates an argument string, %d indicated an argument number.
|
||||||
*/
|
*/
|
||||||
#if __STDC__
|
|
||||||
void build_string(char *buf, char *fmt, ...)
|
void build_string(char *buf, char *fmt, ...)
|
||||||
{
|
{
|
||||||
#else
|
|
||||||
void build_string(char *buf, char *fmt, va_dcl va_alist)
|
|
||||||
{
|
|
||||||
#endif
|
|
||||||
va_list argptr;
|
va_list argptr;
|
||||||
char *scanp;
|
char *scanp;
|
||||||
|
|
||||||
#if __STDC__
|
|
||||||
va_start(argptr, fmt);
|
va_start(argptr, fmt);
|
||||||
#else
|
|
||||||
va_start(argptr);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
while (*fmt) {
|
while (*fmt) {
|
||||||
if (*fmt == '%') {
|
if (*fmt == '%') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user