Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!cbnews!jbr0 From: jbr0@cbnews.att.com (joseph.a.brownlee) Newsgroups: comp.lang.c Subject: Re: cdecl and pascal keywords Message-ID: <1991Jan7.130250.18450@cbnews.att.com> Date: 7 Jan 91 13:02:50 GMT References: <12184@sybase.sybase.com> <11742@alice.att.com> <2847@cirrusl.UUCP> Reply-To: jbr@cblph.att.com Organization: AT&T Bell Laboratories Lines: 23 In article <2847@cirrusl.UUCP>, dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) writes: > Seriously, please don't assume that comp.lang.c readers will be able to > answer questions about nonstandard extensions of the C programming > language. The "pascal" keyword is used by MS-DOS-specific compilers, > and a better place to ask the question will be one of the MS-DOS > newsgroups. Well, it is also commonly used on the Macintosh, where the ROM software is all written assuming PASCAL calling conventions. The keyword "pascal" is generally used in one of two ways: . to prototype a ROM (or other library) routine. . to force one of your own functions to use PASCAL conventions. This is necessary, for example, when a ROM routine expects a procedure pointer and you pass a pointer to your own routine written in C. -- - _ Joe Brownlee, Analysts International Corp. @ AT&T Network Systems /_\ @ / ` 471 E Broad St, Suite 1610, Columbus, Ohio 43215 (614) 860-7461 / \ | \_, E-mail: jbr@cblph.att.com Who pays attention to what _I_ say? "Scotty, we need warp drive in 3 minutes or we're all dead!" --- James T. Kirk