Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!necntc!ima!haddock!karl From: karl@haddock.ISC.COM (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: Unstylish #defines ?? Message-ID: <1251@haddock.ISC.COM> Date: Fri, 25-Sep-87 15:57:45 EDT Article-I.D.: haddock.1251 Posted: Fri Sep 25 15:57:45 1987 Date-Received: Sun, 27-Sep-87 03:03:16 EDT References: <325@petro.UUCP> <763@phoenix.PRINCETON.EDU> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Distribution: na Organization: Interactive Systems, Boston Lines: 14 Keywords: quotes, files Summary: quibble In article <763@phoenix.PRINCETON.EDU> rjchen@phoenix.UUCP (Raymond Juimong Chen) writes: >This expands to >stream = fopen("/usr/me" "/afile", "r"); > >which the preprocessor mushes together to make >stream = fopen("usr/me/afile", "r") A minor quibble here. (No, not the missing slash.) In compilers that maintain the traditional separation of cpp from compiler proper, the string pasting is likely to be done in the lexer, not the preprocessor. Otherwise the preprocessor has to avoid situations like ("\12" "3"), for which the naive answer ("\123") is wrong. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint