Re:My personal C coding style as of late 2023
by trealira on Sunday October 08, 2023 @11:14PM
(#37816564)
Yeah, old C compilers would only look at the first 6 characters of a name, and the rest were insignificant. That's how you get nanrs like "strcpy" and "malloc" instead of something like "string_copy" or "mem_allocate" (I still think "memory_allocate" would be long enough to be annoying to type).
[ Parent
| on HN ]
Re:My personal C coding style as of late 2023
by lifthrasiir on Monday October 09, 2023 @01:11AM
(#37817085)
Last vestiges of this fact AFAIK were libjpeg, which had a macro NEED_SHORT_EXTERNAL_NAMES that shortens all public identifiers to have unique 6-letter-long prefixes. Libjpeg-turbo nowadays has removed them though [1].
[1] https://github.com/libjpeg-turbo/libjpeg-turbo/commit/52ded8...