From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,41100a78496a4c71 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-04 08:19:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!news.algonet.se!algonet!news.tele.dk!small.news.tele.dk!128.39.3.168!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Nethack! (was): AdaGames Date: Thu, 4 Apr 2002 16:19:03 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <98104da8.0203280310.143a1c18@posting.google.com> <4519e058.0203290613.73b55af4@posting.google.com> <6g4gaugv9a85i56kvgcgmu4h2jkjprutec@4ax.com> <4519e058.0204010704.ed2cd06@posting.google.com> <4519e058.0204021030.14127b06@posting.google.com> <4519e058.0204030750.78a30287@posting.google.com> NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1017937143 20928 129.241.83.78 (4 Apr 2002 16:19:03 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Thu, 4 Apr 2002 16:19:03 +0000 (UTC) User-Agent: slrn/0.9.7.3 (Linux) Xref: archiver1.google.com comp.lang.ada:22099 Date: 2002-04-04T16:19:03+00:00 List-Id: On 3 Apr 2002 07:50:45 -0800, Ted Dennison wrote: > Preben Randhol wrote in message news:... >> On 2 Apr 2002 10:30:14 -0800, Ted Dennison wrote: >> > Interesting. I usually use "grep -c ";"" for SLOC counting. "wc -l" >> >> shouldn't it be: grep -ce ";$" so you don't get all the semicolons in >> the definitions of functions/procedures? > > For me no, for two reasons: > > 1) It can be argued that defining the interface elemets for > subprograms is work on the same scale as any other ";"-ed line. > 2) ";$" (semi's at the end of the line, for those who don't speak > sed) doesn't get rid of them all anyway. In my code, it wouldn't be > likely to get rid of *any*, as I always put only one formal parameter > definition on a line. > 3) "-c" only counts the *lines* where it appears, not the number of > appearances. Thus even if ";$" *did* skip some single-line parameter > definitions, the resulting count would end up nearly the same. Yes and also you loose for: if sth then elsif sth then else end if; This would be 1, but it should be 3 ? I'm not sure how a SLOC is defined. Preben