mfg@castle.ed.ac.uk (M Gordon) (06/07/90)
Most compilers I have used have entry as a reserved word but I've never been
able to find anywhere that tells me what it's for. My guess would be it was
supposed to be used to mark a function as the entry point for the program
i.e.
entry foo()
{
....
Was entry used in very early compilers or was it just an idea that has never
been taken up?
--
_ _ _ _ _
Michael Gordon - mfg@castle.ed.ac.uk OR ee.ed.ac.uk | |_| |_| |__| |_| |
| . . . . . . |
I spilt spot remover on my dog and now he's gone! |_________|~~|_____|
cjc@ulysses.att.com (Chris Calabrese[mav]) (06/08/90)
In article <4542@castle.ed.ac.uk>, mfg@castle.ed.ac.uk (M Gordon) writes: > Most compilers I have used have entry as a reserved word but I've never been > able to find anywhere that tells me what it's for. My guess would be it was > supposed to be used to mark a function as the entry point for the program > [...] That's funny, the test program I tried to catch this with had no problems at all under: gcc on a sun 3 with SunOS 4.0.3 cc on the same as above cc on a vax 8650 with BSD 4.3 cc on 3b2/600 running sVr3.2.2 Here's the test program: main() { int entry; } Here's what lint had to say about it (lint -p on sV is _very_ picky): lint -p foo.c foo.c ============== (1) warning: entry unused in function main (1) warning: main() returns random value to invocation environment Here's what gcc -Wall (als picky) had to say: /tmp/foo.c: In function main: /tmp/foo.c:1: warning: return-type defaults to `int' /tmp/foo.c:1: warning: unused variable `entry' /tmp/foo.c:1: warning: control reaches end of non-void function Name: Christopher J. Calabrese Brain loaned to: AT&T Bell Laboratories, Murray Hill, NJ att!ulysses!cjc cjc@ulysses.att.com Obligatory Quote: ``Anyone who would tell you that would also try and sell you the Brooklyn Bridge.''
jak@sactoh0.UUCP (Jay A. Konigsberg) (06/09/90)
In article <4542@castle.ed.ac.uk> mfg@castle.ed.ac.uk (M Gordon) writes: >Most compilers I have used have entry as a reserved word but >I've never been able to find anywhere that tells me what it's for. >My guess would be it was supposed to be used to mark a function as >the entry point for the program From K&R Appendix A, section 2.3: "The 'entry' keywork is not currently implemented by any complier but is reserved for future use." ------------------------------------------------------------- Jay @ SAC-UNIX, Sacramento, Ca. UUCP=...pacbell!sactoh0!jak
fmcwilli@oracle.oracle.com (Floyd McWilliams) (06/12/90)
In article <3235@sactoh0.UUCP> jak@sactoh0.UUCP (Jay A. Konigsberg) writes: >From K&R Appendix A, section 2.3: >"The 'entry' keywork is not currently implemented by any complier >but is reserved for future use." From K&R II, Appendix C, p. 259: "The stillborn 'entry' keyword is withdrawn." -- Floyd McWilliams -- fmcwilli@oracle.com Protest censorship -- buy an "obscene" album next time you're in the Florida Soviet Federated Socialist Republic.