The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] main
@ 2020-05-25  0:11 Steve Simon
  2020-05-25  1:12 ` Clem Cole
  2020-05-25 11:37 ` Thomas Paulsen
  0 siblings, 2 replies; 3+ messages in thread
From: Steve Simon @ 2020-05-25  0:11 UTC (permalink / raw)
  To: tuhs


re: main.

i was surprised not to see any mention of the entry keyword reserved but, i believe, never used in early c. it is listed in k&r ed1.

i always assumed this was to allow the author to choose an alternative to main() for the program’s entry point,  but we all know what assumption is...

-Steve



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

* Re: [TUHS] main
  2020-05-25  0:11 [TUHS] main Steve Simon
@ 2020-05-25  1:12 ` Clem Cole
  2020-05-25 11:37 ` Thomas Paulsen
  1 sibling, 0 replies; 3+ messages in thread
From: Clem Cole @ 2020-05-25  1:12 UTC (permalink / raw)
  To: Steve Simon; +Cc: tuhs

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

No, it’s a FORTRAN-ism.  That allows multiple entries into a subroutine.

On Sun, May 24, 2020 at 8:53 PM Steve Simon <steve@quintile.net> wrote:

>
> re: main.
>
> i was surprised not to see any mention of the entry keyword reserved but,
> i believe, never used in early c. it is listed in k&r ed1.
>
> i always assumed this was to allow the author to choose an alternative to
> main() for the program’s entry point,  but we all know what assumption is...
>
> -Steve
>
>
> --
Sent from a handheld expect more typos than usual

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

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

* Re: [TUHS] main
  2020-05-25  0:11 [TUHS] main Steve Simon
  2020-05-25  1:12 ` Clem Cole
@ 2020-05-25 11:37 ` Thomas Paulsen
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Paulsen @ 2020-05-25 11:37 UTC (permalink / raw)
  To: Steve Simon; +Cc: tuhs

>i was surprised not to see any mention of the entry keyword reserved but,
>i believe, never used in early c. it is listed in k&r ed1.
>i always assumed this was to allow the author to choose an alternative to
>main() for the program’s entry point,  but we all know what assumption is...
older CC's came with the so-called startup code where one could increase the number of file handle and so on before compiling and linking the resulting .o to the application object files. Of course one could rename the invocation of main to something like beatles. ;-) Even M$ msc supplied the startup code.


-Steve






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

end of thread, other threads:[~2020-05-25 11:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-25  0:11 [TUHS] main Steve Simon
2020-05-25  1:12 ` Clem Cole
2020-05-25 11:37 ` Thomas Paulsen

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).