- Text editor project in C - 4 Updates
| Kaz Kylheku <563-365-8930@kylheku.com>: Apr 27 05:13PM > There were no typedefs back then (at least I don't remember them that > far back, and they don't appear in either Ritchie's reference manual nor > Kernighan's tutorial). The preprocessor was used for type definitions; that's why FILE is capitalized. #define FILE struct _iobuf or something like that. The Indian Hill naming (typedefs are all caps) that spilled into MS Windows is probably inspired by that. -- TXR Programming Language: http://nongnu.org/txr Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal |
| Lew Pitcher <lew.pitcher@digitalfreehold.ca>: Apr 27 05:28PM On Tue, 27 Apr 2021 10:55:37 -0600, Joe Pfeiffer wrote: > There were no typedefs back then (at least I don't remember them that > far back, and they don't appear in either Ritchie's reference manual nor > Kernighan's tutorial). FWIW, my copy of K&R (Copyright 1978) has a whole section (Chapter 6.9) on typedefs The "C Programming Language - Reference Manual" (by Dennis M. Richie) published as Appendix A of that edition of K&R also includes a section (8.8 Typedef) on typedef, along with the BNF for it in section 18.2 ("Declarations"). -- Lew Pitcher "In Skills, We Trust" |
| scott@slp53.sl.home (Scott Lurndal): Apr 27 07:27PM >There were no typedefs back then (at least I don't remember them that >far back, and they don't appear in either Ritchie's reference manual nor >Kernighan's tutorial). At the time of the SVR4 conversion in 1989, typedef was part of the language, and pid_t, gid_t, and uid_t were used subsequently for those purposes respectively. In addition, all API's were modified to use those abstract types both in SVR4 and via the SVID into POSIX. |
| Keith Thompson <Keith.S.Thompson+u@gmail.com>: Apr 27 01:33PM -0700 > The "C Programming Language - Reference Manual" (by Dennis M. Richie) published as > Appendix A of that edition of K&R also includes a section (8.8 Typedef) on typedef, > along with the BNF for it in section 18.2 ("Declarations"). https://www.bell-labs.com/usr/dmr/www/cman.pdf (1975) doesn't mention typedef. K&R1 (1978) does. That's as far as I've been able to narrow it down. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips Healthcare void Void(void) { Void(); } /* The recursive call of the void */ |
| You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment