home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!darwin.sura.net!mips!swrinde!cs.utexas.edu!mercury.unt.edu!sol!kenc
- From: kenc@sol.acs.unt.edu (Ken Corey - Operator)
- Newsgroups: gnu.gcc.help
- Subject: cpp question: (Yes, I try to duck flames at the end)
- Message-ID: <1992Jul28.192753.19315@mercury.unt.edu>
- Date: 28 Jul 92 19:27:53 GMT
- Sender: usenet@mercury.unt.edu (UNT USENet Adminstrator)
- Organization: University of North Texas
- Lines: 32
-
- Well, I was trying to compile a program yesterday, and ran into a problem I
- never saw before. The c file had the following definition:
-
- #define MUL(x,y) ((x) << (y/**/Shift))
-
- Which, when this line of code is processed:
-
- x = MUL(this,that);
-
- will return this after CPP:
-
- x = ((this) << (that Shift));
- ^
- |
- This is the problem.
-
- The result that's desired is the variable 'thatShift' in this case.
-
- Is there a setting for the gcc frontend that will help this along? (the man
- page didn't say much of nothing about cpp.)
-
- Anyway, I'd appreciate it if y'all could email any answers, as I don't
- regularly read this group.
-
- -Thanks!
- Ken
-
- --
- Ken == kenc@sol.acs.unt.edu == kenc@vaxb.acs.unt.edu
- Rule of the Great:
- When people you greatly admire appear to be thinking deep
- thoughts, they probably are thinking about lunch.
-