double quotes
SCCS-vsn: old/pcc/lint/lpass1/lint.c 1.2
-static char sccsid[] = "@(#)lint.c 1.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)lint.c 1.2 (Berkeley) %G%";
#endif lint
# include "mfile1"
#endif lint
# include "mfile1"
static char x[BUFSIZ];
#endif
register char *p;
static char x[BUFSIZ];
#endif
register char *p;
+ static int stripping = 0;
+ if (stripping)
+ return(s);
+ stripping++;
- if( *s == '/' ) p=x;
- else if( *s != '"' ){
#ifndef FLEXNAMES
/* PATCHED by ROBERT HENRY on 8Jul80 to fix 14 character file name bug */
if( p >= &x[LFNM] )
#ifndef FLEXNAMES
/* PATCHED by ROBERT HENRY on 8Jul80 to fix 14 character file name bug */
if( p >= &x[LFNM] )
*p = '\0';
#ifndef FLEXNAMES
return( x );
*p = '\0';
#ifndef FLEXNAMES
return( x );
}
where(f){ /* print true location of error */
}
where(f){ /* print true location of error */
- if( f == 'u' && nerrors>1 ) --nerrors; /* don't get "too many errors" */
- fprintf( stderr, "%s(%d): ", (f == 'c') ? ftitle : strip(ftitle), lineno );
+ if( f == 'u' && nerrors > 1 )
+ --nerrors; /* don't get "too many errors" */
+ fprintf( stderr, "%s(%d): ", strip(ftitle), lineno);
}
/* a number of dummy routines, unneeded by lint */
}
/* a number of dummy routines, unneeded by lint */