develooper Front page | perl.perl5.porters | Postings from April 2003

[patch] low hanging fruit from p6 tree

Thread Next
From:
Jim Cromie
Date:
April 16, 2003 11:24
Subject:
[patch] low hanging fruit from p6 tree
Message ID:
20030416182427.937E679B00@mail01.powweb.com
attached patch carries 'make lint' from parrot,
which uses lclint/splint for new & improved perl.fuzz

splint is distributed in RedHat 9, probly others.

patch includes one tiny hand-tweak not reflected below;
I removed perly.c from list, since its evidently in $(c) already.

[jimc@harpo bleadperl]$ make lintopts='-posixstrictlib +posixlib -isoreserved' lint
splint -weak +showscan +showsummary +posixstrictlib -abstract +aliasunique +ansireserved +ansireservedinternal +assignexpose +bitwisesigned +boolcompare +booltype BOOLVAL +casebreak -castfcnptr -charint +continuecomment +controlnestdepth 15 +cppnames +declundef +distinctinternalnames +evalorder +fielduse +forcehints -globs +imptype +includenest 8 +incondefs +incondefslib +linelen 9999 +longintegral +macroassign +macroempty +macroredef +matchanyintegral +nestedextern +noeffect +readonlystrings +realcompare +shadow -type -posixstrictlib +posixlib -isoreserved  perly.c  av.c scope.c op.c doop.c doio.c dump.c hv.c mg.c reentr.c perl.c perly.c pp.c pp_hot.c pp_ctl.c pp_sys.c regcomp.c regexec.c utf8.c gv.c sv.c taint.c toke.c util.c deb.c run.c universal.c xsutils.c pad.c globals.c perlio.c perlapi.c numeric.c locale.c pp_pack.c pp_sort.c miniperlmain.c perlmain.c > perl.fuzz
File listed multiple times: perly.c
...< preprocessing  >
< more preprocessing . >
< more preprocessing . >
< more preprocessing . >
< more preprocessing .... >
util.c:92:31: macro `PerlMem_realloc' used without args
< more preprocessing . >
Preprocessing error for file: /home/jimc/bleadperl/util.c
*** Cannot continue.
< cleaning .......... >
make: *** [lint] Error 1


[jimc@harpo bleadperl]$ more perl.fuzz
Splint 3.0.1.6 --- 27 Feb 2002

Warning: selecting library posixlib after library posixstrictlib was selected (only one library may be used)
< loading standard library /usr/local/share/splint/lib/posix.lcd  >
perl.h:563: Name memzero is reserved for future library extensions.  Functions that begin with "mem" or "wcs" and a lowercase letter letter may be added to <string.h>. (ISO:7.26.11)
  Internal name is reserved for system in ISO C99 standard (this should not be necessary unless you are worried about C library implementations that violate the standard and use macros). (Use either -isoreservedinternal or -namechecks to inhibit warning)
handy.h:84: Name bool is a keyword or reserved word in C++
  External name is a C++ keyword or reserved word. This could lead to problems if the code is compiled with a C++ compiler. (Use either -cppnames or -namechecks to inhibit warning)
handy.h:263: Name strnNE is reserved for future library extensions.  Functions that begin with "str" and a lowercase letter may be added to <stdlib.h> or <string.h>. (ISO99:7.26.9)
  Internal name is reserved for system in ISO C99 standard (this should not be necessary unless you are worried about C library implementations that violate the standard and use macros). (Use either -isoreservedinternal or -namechecks to inhibit warning)
handy.h:264: Name strnEQ is reserved for future library extensions.  Functions that begin with "str" and a lowercase letter may be added to <stdlib.h> or <string.h>. (ISO99:7.26.9)
  Internal name is reserved for system in ISO C99 standard (this should not be necessary unless you are worried about C library implementations that violate the standard and use macros). (Use either -isoreservedinternal or -namechecks to inhibit warning)
[jimc@harpo bleadperl]$ 

hth,
jimc

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About