Re: doc: Add appendix about Gnulib history

2024-05-04 Thread Bruno Haible
Hi Collin, > > doc: Add appendix about Gnulib history. > > * doc/gnulib-history.texi: New file. > > * doc/gnulib.texi: Include it. > > Interesting section, thanks. I wrote it also as an answer to misguided statements that "gnulib is mainly about porti

Re: doc: Add appendix about Gnulib history

2024-05-04 Thread Collin Funk
On 5/3/24 11:32 PM, Paul Eggert wrote: > Not quite, because it doesn't check for padding bits. Sorry, I should have clarified excluding that part... > Also, your code assumes that preprocessor arithmetic works the same as > runtime arithmetic. Although C23 guarantees this (because it > guarantees

Re: doc: Add appendix about Gnulib history

2024-05-03 Thread Paul Eggert
On 2024-05-03 17:14, Collin Funk wrote: Also about this comment in intprops-internal.h: /* This include file assumes that signed types are two's complement without padding bits; the above macros have undefined behavior otherwise. If this is a problem for you, please let us k

Re: doc: Add appendix about Gnulib history

2024-05-03 Thread Collin Funk
Hi Paul, On 5/3/24 2:50 PM, Paul Eggert wrote: >> The macros for compilers who don't support GCC's builtins are >> really clever. They don't look like they were too much fun to write >> though. :) > > Actually they were fun in a twisted sort of way. My secret was to not > work on them more than 3

Re: doc: Add appendix about Gnulib history

2024-05-03 Thread Bruno Haible
Collin Funk wrote: > Maybe intprops.h and the stdckdint.h replacement are worth a mention > too. intprops.h is a masterpiece. But Gnulib has more than 1000 modules; therefore in a history section, we can only mention groups of modules (like "multithreading", "", etc.). Otherwise it would be too lo

Re: doc: Add appendix about Gnulib history

2024-05-03 Thread Paul Eggert
On 2024-05-03 14:14, Collin Funk wrote: The macros for compilers who don't support GCC's builtins are really clever. They don't look like they were too much fun to write though. :) Actually they were fun in a twisted sort of way. My secret was to not work on them more than 30 minutes at a time

Re: doc: Add appendix about Gnulib history

2024-05-03 Thread Collin Funk
Hi Bruno, On 5/2/24 11:15 AM, Bruno Haible wrote: > doc: Add appendix about Gnulib history. > * doc/gnulib-history.texi: New file. > * doc/gnulib.texi: Include it. Interesting section, thanks. > Providing a substitute / override for a system function was rel

doc: Add appendix about Gnulib history

2024-05-02 Thread Bruno Haible
Paul and Jim, feel free to correct this where I'm wrong... 2024-05-02 Bruno Haible doc: Add appendix about Gnulib history. * doc/gnulib-history.texi: New file. * doc/gnulib.texi: Include it. diff --git a/doc/gnulib.texi b/doc/gnulib.texi index aa0eb57f62..55cf6