Add prototypes for static functions. Remove unnecessary casts to (char *); add casts to (U_CHAR *). Add parentheses suggested by `gcc -Wparentheses'. Rename local variables as suggested by `gcc -Wshadow'. <fcntl.h>, <stdlib.h>, <string.h>, <unistd.h>: New includes. <sys/time.h>, <sys/resource.h>: Include only if defined(RLIMIT_STACK). <time.h>: Include, unless <sys/time.h> already does. (HAVE_FCNTL_H, HAVE_STDLIB_H, HAVE_SYS_TIME_H): New symbols. (HAVE_UNISTD_H, STDC_HEADERS, TIME_WITH_SYS_TIME): Likewise. (__attribute__, PROTO, VA_START, PRINTF_ALIST, PRINTF_DCL): New macros. (PRINTF_PROTO{,_1,_2,_3}, DO_PROTO): Likewise. (bcopy, bzero, bcmp): If #defined by configuration file, use that. If STDC_HEADERS is defined, use standard C functions. If BSTRING is defined, or USG and VMS are not defined, use the C library. Otherwise, use my_bcopy, my_bzero, my_bcmp. (localtime): Remove no-longer-necessary explicit declaration. (getenv, index, rindex): Don't declare explicitly if the appropriate system eader should declare it. (fdopen): Remove no-longer-used declaration. (vprintf): Define a subsitute macro if !defined(HAVE_VPRINTF). (main): Replace `fdopen (dup (fileno (stdout)), "w"))' with `stdout'. (get_lintcmd, rescan, create_definition): Use bcmp instead of strncmp when both operands are known to be free of null bytes. (check_macro_name, compare_defs, collect_expansion): Likewise. (do_assert, compare_token_lists, assertion_lookup, do_line): Likewise. (skip_if_group, lookup): Likewise. (rescan): Remove unused label `startagain'. Abort instead of printing nonsense if the stack is corrupted when there was an unterminated successful conditional. (pcfinclude): Include explicit double-cast through GENERICPTR to identify particularly egregious type puns. (create_definition, do_define, check_macro_name): Use %.*s printf format to avoid painful copying-and-casting. (do_once): Return void, not (unused) int. (do_ident, do_pragma, do_sccs): Accept extra arguments so that all directive-handler's types match. (do_sccs): Define only if SCCS_DIRECTIVE is defined. (skip_if_group, dump_single_macro): Add `default: break;' to keep -Wswitch happy. (error, warning, error_with_line, vwarning_with_line, pedwarn): Use stdarg/vararg/vfprintf instead of passing bogus char * args around. (pedwarn_with_line, pedwarn_with_file_and_line, fatal): Likewise. (verror, vwarning, verror_with_line, vwarning_with_line): New fcns. (dump_single_macro): Abort if ap points to garbage. (make_definition, make_undef, make_assertion): Parameter now char *. (xmalloc, xrealloc, xcalloc, savestring, index0): Make sizes size_t instead of unsigned; make pointer parameters GENERICPTR, not char *. (xcalloc): Use bzero to clear memory instead of using own loop. From-SVN: r9278
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
config | Loading commit data... | |
cp | Loading commit data... | |
ginclude | Loading commit data... | |
objc | Loading commit data... | |
Makefile.in | Loading commit data... | |
PROBLEMS | Loading commit data... | |
PROJECTS | Loading commit data... | |
README-fixinc | Loading commit data... | |
README.ACORN | Loading commit data... | |
README.ALTOS | Loading commit data... | |
README.APOLLO | Loading commit data... | |
README.TRAD | Loading commit data... | |
README.X11 | Loading commit data... | |
alloca.c | Loading commit data... | |
assert.h | Loading commit data... | |
basic-block.h | Loading commit data... | |
bc-emit.c | Loading commit data... | |
bc-emit.h | Loading commit data... | |
bc-optab.c | Loading commit data... | |
bc-optab.h | Loading commit data... | |
bc-typecd.def | Loading commit data... | |
bc-typecd.h | Loading commit data... | |
bi-arity.c | Loading commit data... | |
bi-defs.h | Loading commit data... | |
bi-lexer.c | Loading commit data... | |
bi-opcode.c | Loading commit data... | |
bi-opname.c | Loading commit data... | |
bi-parser.y | Loading commit data... | |
bi-reverse.c | Loading commit data... | |
bi-run.h | Loading commit data... | |
build-make | Loading commit data... | |
bytecode.def | Loading commit data... | |
bytecode.h | Loading commit data... | |
bytetypes.h | Loading commit data... | |
c-aux-info.c | Loading commit data... | |
c-common.c | Loading commit data... | |
c-convert.c | Loading commit data... | |
c-decl.c | Loading commit data... | |
c-iterate.c | Loading commit data... | |
c-lang.c | Loading commit data... | |
c-lex.c | Loading commit data... | |
c-lex.h | Loading commit data... | |
c-parse.gperf | Loading commit data... | |
c-parse.in | Loading commit data... | |
c-pragma.c | Loading commit data... | |
c-tree.h | Loading commit data... | |
c-typeck.c | Loading commit data... | |
caller-save.c | Loading commit data... | |
calls.c | Loading commit data... | |
cccp.c | Loading commit data... | |
cexp.y | Loading commit data... | |
collect2.c | Loading commit data... | |
combine.c | Loading commit data... | |
conditions.h | Loading commit data... | |
config.guess | Loading commit data... | |
config.sub | Loading commit data... | |
configure.bat | Loading commit data... | |
convert.c | Loading commit data... | |
convert.h | Loading commit data... | |
cpp.1 | Loading commit data... | |
cppalloc.c | Loading commit data... | |
cpperror.c | Loading commit data... | |
cppexp.c | Loading commit data... | |
cpphash.c | Loading commit data... | |
cpphash.h | Loading commit data... | |
cpplib.c | Loading commit data... | |
cpplib.h | Loading commit data... | |
cppmain.c | Loading commit data... | |
cross-make | Loading commit data... | |
crtstuff.c | Loading commit data... | |
cse.c | Loading commit data... | |
dbxout.c | Loading commit data... | |
dbxstclass.h | Loading commit data... | |
defaults.h | Loading commit data... | |
dostage2 | Loading commit data... | |
dostage3 | Loading commit data... | |
dwarf.h | Loading commit data... | |
dwarfout.c | Loading commit data... | |
emit-rtl.c | Loading commit data... | |
enquire.c | Loading commit data... | |
explow.c | Loading commit data... | |
expmed.c | Loading commit data... | |
expr.c | Loading commit data... | |
expr.h | Loading commit data... | |
final.c | Loading commit data... | |
fix-header.c | Loading commit data... | |
fixcpp | Loading commit data... | |
fixinc.dgux | Loading commit data... | |
fixinc.ptx | Loading commit data... | |
fixinc.sco | Loading commit data... | |
fixinc.svr4 | Loading commit data... | |
fixinc.winnt | Loading commit data... | |
fixincludes | Loading commit data... | |
fixproto | Loading commit data... | |
flags.h | Loading commit data... | |
flow.c | Loading commit data... | |
fold-const.c | Loading commit data... | |
function.c | Loading commit data... | |
function.h | Loading commit data... | |
future.options | Loading commit data... | |
gbl-ctors.h | Loading commit data... | |
gcc.c | Loading commit data... | |
gen-protos.c | Loading commit data... | |
genattr.c | Loading commit data... | |
genattrtab.c | Loading commit data... | |
gencodes.c | Loading commit data... | |
genconfig.c | Loading commit data... | |
genemit.c | Loading commit data... | |
genextract.c | Loading commit data... | |
genflags.c | Loading commit data... | |
genmultilib | Loading commit data... | |
genopinit.c | Loading commit data... | |
genoutput.c | Loading commit data... | |
genpeep.c | Loading commit data... | |
genrecog.c | Loading commit data... | |
getpwd.c | Loading commit data... | |
glimits.h | Loading commit data... | |
global.c | Loading commit data... | |
gsyms.h | Loading commit data... | |
gsyslimits.h | Loading commit data... | |
halfpic.c | Loading commit data... | |
halfpic.h | Loading commit data... | |
hard-reg-set.h | Loading commit data... | |
input.h | Loading commit data... | |
integrate.c | Loading commit data... | |
integrate.h | Loading commit data... | |
jump.c | Loading commit data... | |
just-fixinc | Loading commit data... | |
libgcc1-test.c | Loading commit data... | |
libgcc1.c | Loading commit data... | |
libgcc2.c | Loading commit data... | |
limitx.h | Loading commit data... | |
limity.h | Loading commit data... | |
listing | Loading commit data... | |
local-alloc.c | Loading commit data... | |
longlong.h | Loading commit data... | |
loop.c | Loading commit data... | |
loop.h | Loading commit data... | |
machmode.def | Loading commit data... | |
machmode.h | Loading commit data... | |
make-cc1.com | Loading commit data... | |
make-cccp.com | Loading commit data... | |
make-gcc.com | Loading commit data... | |
make-l2.com | Loading commit data... | |
mips-tdump.c | Loading commit data... | |
mips-tfile.c | Loading commit data... | |
modemap.def | Loading commit data... | |
optabs.c | Loading commit data... | |
output.h | Loading commit data... | |
pcp.h | Loading commit data... | |
print-rtl.c | Loading commit data... | |
print-tree.c | Loading commit data... | |
protoize.c | Loading commit data... | |
real.c | Loading commit data... | |
real.h | Loading commit data... | |
recog.c | Loading commit data... | |
recog.h | Loading commit data... | |
reg-stack.c | Loading commit data... | |
regclass.c | Loading commit data... | |
regs.h | Loading commit data... | |
reload.c | Loading commit data... | |
reload.h | Loading commit data... | |
reload1.c | Loading commit data... | |
reorg.c | Loading commit data... | |
rtl.c | Loading commit data... | |
rtl.def | Loading commit data... | |
rtl.h | Loading commit data... | |
rtlanal.c | Loading commit data... | |
scan-decls.c | Loading commit data... | |
scan-types.sh | Loading commit data... | |
scan.c | Loading commit data... | |
scan.h | Loading commit data... | |
sched.c | Loading commit data... | |
sdbout.c | Loading commit data... | |
sort-protos | Loading commit data... | |
stack.h | Loading commit data... | |
stmt.c | Loading commit data... | |
stor-layout.c | Loading commit data... | |
stupid.c | Loading commit data... | |
sys-protos.h | Loading commit data... | |
sys-types.h | Loading commit data... | |
toplev.c | Loading commit data... | |
tree.c | Loading commit data... | |
tree.def | Loading commit data... | |
tree.h | Loading commit data... | |
typeclass.h | Loading commit data... | |
unprotoize.c | Loading commit data... | |
unroll.c | Loading commit data... | |
varasm.c | Loading commit data... | |
vmsconfig.com | Loading commit data... | |
xcoffout.c | Loading commit data... | |
xcoffout.h | Loading commit data... |