zsh-workers
 help / color / mirror / code / Atom feed
* ANSI C standard of zsh
@ 2024-03-12 21:44 Clinton Bunch
  2024-03-13  1:50 ` Clinton Bunch
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Clinton Bunch @ 2024-03-12 21:44 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 1012 bytes --]

I was looking at the development guide and saw this:

The primary language is ANSI C as defined by the 1989 standard, but the
   code should always be compatible with late K&R era compilers ("The C
   Programming Language" 1st edition, plus "void" and "enum").  There are
   many hacks to avoid the need to actually restrict the code to K&R C --
   check out the configure tests -- but always bear the compatibility
   requirements in mind.  In particular, preprocessing directives must
   have the "#" unindented, and string pasting is not available.

5.9 does not compile with gcc's c89 on EL 8 or 9 (Rocky specifically).
I intend to test FreeBSD and Solaris as well, but haven't yet.


I will point out the C99 standard is now a quarter century old. I 
propose that we update the development guide to remove the bit about the 
1989 standard (much less K&R compatibility) since it is no longer true, 
and I personally question if it even makes sense as a goal 30+ years in 
to development.

[-- Attachment #2: Type: text/html, Size: 1251 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-04-04 22:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-12 21:44 ANSI C standard of zsh Clinton Bunch
2024-03-13  1:50 ` Clinton Bunch
2024-03-13  4:16 ` Bart Schaefer
2024-03-13  4:22 ` Bart Schaefer
2024-03-13 16:49   ` Oliver Kiddle
2024-03-23 21:26     ` Clinton Bunch
2024-03-25 23:47       ` Oliver Kiddle
2024-03-26  0:32         ` Clinton Bunch
2024-03-26 23:16           ` Clinton Bunch
2024-03-28  9:16             ` Jun T
2024-03-28 12:29               ` Clinton Bunch
2024-04-04  0:00                 ` Vincent Lefevre
2024-04-04 22:57                   ` Clinton Bunch

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).