Re: Now 376175 lines of code

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: Hannu Krosing <hannu(at)tm(dot)ee>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Now 376175 lines of code
Date: 2000-10-20 17:48:41
Message-ID: Pine.LNX.3.96.1001020192900.13898C-100000@ara.zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On Fri, 20 Oct 2000, Hannu Krosing wrote:

> Peter Eisentraut wrote:
> >
> > Bruce Momjian writes:
> >
> > > FYI, it is 376k lines of C code, not bytes.
> >
> > How did you calculate that? I get this using c_count over all .c and .h
> > files:
> >
> > 20903 lines had comments 25.4 %
> > 6603 comments are inline -8.0 %
> > 11911 lines were blank 14.5 %
> > 7287 lines for preprocessor 8.9 %
> > 48716 lines containing code 59.3 %
> > 82214 total lines 100.0 %
> >
> > Surely we don't have 294000 lines of Java, C++, Shell, and Perl???
>
> doing the following in version 6.5.3 in src/backend
>
> [hannu(at)hu backend]$ cat */*.[ch] */*/*.[ch] */*/*/*.[ch]| wc
>
> gives
>
> 208284 658632 5249304
>
> So you (or c_count ;) must be missing some files
>
> in src/ ther result was
> [hannu(at)hu src]$ cat */*.[ch] */*/*.[ch] */*/*/*.[ch] */*/*/*/*.[ch]| wc
> 311469 1069935 8440682

Just now downloaded from ftp.postgresql.org:

$ tar -zxvf postgresql-6.5.3.tar.gz

$ cd postgresql-6.5.3
$ wc `find -name "*.[ch]"`
318131 1089740 8585092 total
$ wc `find -name "*"`
756810 3037982 25583644 total

$ cd src
$ wc `find -name "*.[ch]"`
311469 1069935 8440682 total
$ wc `find -name "*"`
519318 2024262 16656475 total

$ tar -zxvf postgresql-7.0.2.tar.gz

$ cd postgresql-7.0.2
$ wc `find -name "*.[ch]"`
368502 1263333 9910813 total
$ wc `find -name "*"`
756810 3037982 25583644 total

$ cd src
$ wc `find -name "*.[ch]"`
361297 1240788 9751161 total
$ wc `find -name "*"`
596772 2360555 18574015 total


Karel

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Karel Zak 2000-10-20 17:53:41 Re: Re: [HACKERS] to_char() dumps core
Previous Message Bruce Momjian 2000-10-20 17:33:21 Re: Re: [HACKERS] to_char() dumps core