home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!secapl!Cookie!frank
- From: frank@Cookie.secapl.com (Frank Adams)
- Subject: Re: Tool for measuring size (no. of statements) of C/C++ programs
- Message-ID: <1992Sep11.200457.69784@Cookie.secapl.com>
- Date: Fri, 11 Sep 1992 20:04:57 GMT
- References: <1992Aug31.230930.16232@gtephx.UUCP> <1992Sep1.141255.15547@organpipe.uug.arizona.edu>
- Organization: Security APL, Inc.
- Keywords: metrics, size, complexity, comparing versions
- Lines: 16
-
- In article <1992Sep1.141255.15547@organpipe.uug.arizona.edu> dave@cs.arizona.edu (Dave Schaumann) writes:
- > /* Presumably, no human would write a program with >65536
- > * statements, but there's also code out there not (directly)
- > * written by humans.
- > */
- > unsigned long Statement_Count = 0 ;
- >
- > main() {
- >
- > yyparse() ; printf( "%d statements.\n", Statement_Count ) ;
- ^
- Make that "%ld".
- >
- > }
-
-
-