Several fixes for ANSI

This commit is contained in:
ceriel 1991-12-02 13:43:59 +00:00
parent 9248d14195
commit 3388e4deb6
2 changed files with 7 additions and 7 deletions

View file

@ -50,7 +50,7 @@ c.llb: $(SRC_DIR)/unix7.c
ansi_c.llb: $(SRC_DIR)/unix7.c ansi_c.llb: $(SRC_DIR)/unix7.c
cp $(SRC_DIR)/ansi_c.llb ansi_c.llb cp $(SRC_DIR)/ansi_c.llb ansi_c.llb
chmod +w ansi_c.llb chmod +w ansi_c.llb
$(LINT) -ansi -Lansi_c.llb -o $(SRC_DIR)/unix7.c $(LINT) -ansi -Lansi_c.llb $(SRC_DIR)/unix7.c
curses.llb: curses.llb:
$(LINT) -Lcurses.llb $(CURSESDIR)/*.c $(LINT) -Lcurses.llb $(CURSESDIR)/*.c

View file

@ -88,20 +88,20 @@ int abort() {/*NOTREACHED*/ }
%c = int %s = char * %c = int %s = char *
$ */ $ */
#ifdef __STDC__ #ifdef __STDC__
int printf(const char *_format, ...); int printf(const char *_format, ...) { return(0); }
#else #else
printf(fmt) char *fmt; { ; } printf(fmt) char *fmt; { ; }
#endif #endif
/* FORMAT1 */ /* FORMAT1 */
#ifdef __STDC__ #ifdef __STDC__
int fprintf(FILE *_stream, const char *_format, ...); int fprintf(FILE *_stream, const char *_format, ...) { return(0); }
#else #else
fprintf(fp, fmt) FILE *fp; char *fmt; { ; } fprintf(fp, fmt) FILE *fp; char *fmt; { ; }
#endif #endif
/* FORMAT1 */ /* FORMAT1 */
#ifdef __STDC__ #ifdef __STDC__
int sprintf(char *_s, const char *_format, ...); int sprintf(char *_s, const char *_format, ...) { return(0); }
#else #else
sprintf(s, fmt) char *s; char *fmt; { ; } sprintf(s, fmt) char *s; char *fmt; { ; }
#endif #endif
@ -114,19 +114,19 @@ sprintf(s, fmt) char *s; char *fmt; { ; }
%c = char * %s = char * %[[] = char * %c = char * %s = char * %[[] = char *
$ */ $ */
#ifdef __STDC__ #ifdef __STDC__
int scanf(const char *_format, ...); int scanf(const char *_format, ...) { return(0); }
#else #else
int scanf(fmt) char *fmt; { return(0); } int scanf(fmt) char *fmt; { return(0); }
#endif #endif
/* FORMAT1 */ /* FORMAT1 */
#ifdef __STDC__ #ifdef __STDC__
int fscanf(FILE *_stream, const char *_format, ...); int fscanf(FILE *_stream, const char *_format, ...) { return(0); }
#else #else
int fscanf(fp, fmt) FILE *fp; char *fmt; { return(0); } int fscanf(fp, fmt) FILE *fp; char *fmt; { return(0); }
#endif #endif
/* FORMAT1 */ /* FORMAT1 */
#ifdef __STDC__ #ifdef __STDC__
int sscanf(const char *_s, const char *_format, ...); int sscanf(const char *_s, const char *_format, ...) { return(0); }
#else #else
int sscanf(s, fmt) char *s; char *fmt; { return(0); } int sscanf(s, fmt) char *s; char *fmt; { return(0); }
#endif #endif