Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Malcolm McLean Newsgroups: comp.lang.c Subject: Re: Running an editor from ANSI C Date: Sat, 8 Jun 2024 12:32:06 +0100 Organization: A noiseless patient Spider Lines: 26 Message-ID: References: <87o78dzw1a.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 08 Jun 2024 13:32:06 +0200 (CEST) Injection-Info: dont-email.me; posting-host="8b6752f00a378e9a22da030b3b8d942a"; logging-data="2720853"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NXq3+mUyuIV4zIzWyynnTpiWpCHfuyvU=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:Y7gwF9PCpSdFxrcXTfQQqz8hwiM= In-Reply-To: Content-Language: en-GB Bytes: 2797 On 08/06/2024 06:40, James Kuyper wrote: > I've been programming on Unix-like operating systems for more than 30 > years, and most of that time was on Linux systems, but even I'm not > foolish enough to make such a claim for Linux. The last few years before > I retired I worked on Windows systems doing maintenance on huge code > bases that were required to work on both Windows and Linux systems. They > didn't do so by being written to use only POSIX functionality, and rely > upon POSIX-compatible wrappers on to work on Windows systems. They > relied upon non-POSIX functions that did different things on POSIX and > Windows systems. The code was built quite differently on the two > operating systems - CMake was involved. I don't know a lot of the > details of how all of that worked, my assigned tasks kept me far away > from that part of the code - but I was aware of the complications that > it caused for building the software. And that is exactly what Baby X is trying to get away from. I've isolated the Posix dependent functions into single function files. Currently there a "readirectory_posix.c" file. If someone could write the corresponding "readdirectory_win.c" for Windows, I can switch eveything from Posix to Windows. I hope. -- Check out Basic Algorithms and my other books: https://www.lulu.com/spotlight/bgy1mm