Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Dropping C Date: Thu, 22 Mar 2018 10:39:09 -0700 Organization: None to speak of Lines: 27 Message-ID: References: <20180320022902.6d9a903062a2fca49d7801b9@gmail.com> <20180321213202.d6ec8ec04d895adda7481249@gmail.com> <20180321230831.fcfbf1fcbaed3b9a243a5d00@gmail.com> <20180322154145.fa9f180bb833a164cac7b7bd@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="a03e916da479e9abd5a2279b5a8d427e"; logging-data="16309"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kxQSLie7V06Co/Xb4Pvp+" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:2w12PyBBO/6eFd47sHGEKO6hfeg= sha1:8jFsOggUKwBFPwZc5drl6H9EPSo= Xref: csiph.com comp.lang.c:128207 scott@slp53.sl.home (Scott Lurndal) writes: > bartc writes: [...] >>Do you really have each function in its own file? >> >>You must have many thousands of such files floating around then. Aren't >>they organised into modules? >> >>Are they split up into separate 'modules' using directories? (Which >>seems to be complicated way of implementing a normal 'source file'.) > > Here's an example source tree browser with thousands of source files. > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/?h=v4.16-rc6 > > I suggest you spend some time studying it to see how large portable codebases > are managed. That's the Linux kernel. It has multiple functions per source file, so it's not relevant to bart's question, which was specifically about having each function in its own source file. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"