Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site cwruecmp.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!cwruecmp!ryan From: ryan@cwruecmp.UUCP (Ryan McGuire) Newsgroups: net.unix-wizards,net.lang.c Subject: #define kinda stuff Message-ID: <1458@cwruecmp.UUCP> Date: Wed, 9-Apr-86 09:03:02 EST Article-I.D.: cwruecmp.1458 Posted: Wed Apr 9 09:03:02 1986 Date-Received: Fri, 11-Apr-86 00:50:41 EST Distribution: net Organization: CWRU Dept. Computer Eng., Cleveland, OH Lines: 42 Xref: watmath net.unix-wizards:17531 net.lang.c:8490 *** REPLACE THIS LINE WITH YOUR MESSAGE *** O.K. all you people out there who think you know everything, I got one for ya: Here's what I wanna do: #define (-: /* #define :-) */ Obviously I want to make (-: and :-) my comment delimiters. One problem, though, is that the compiler or preprocessor (or whatever it is that does it) interprets most of the above as a comment containing '\n#define :-)'. How do I get around this??? Here are the other things I tried (which didn't work). #define (-: \/* this didn't work because it put \/* in for every (-: #define (-: "/*" ditto but with a "/*" #define (-: '/*' ditto but with a '/*' #define (-: /\* ditto but with a /\* #define (- / this pair was rejected for a number of reasons: #define : * 1. It would mean I would have to make my smileys like this (- : 2. To make matters worse that got interpreted as / * (notice the space) instead of /*. 3. And lastly something like 5 / (-3 * a) would become 5 / /3 * a) . Of course I could do something along the lines of... %alias cc 'sed {sed commands} $1 | cc' ...or something like that, but I wanted to put something in an include files that I could send to all my friends to use; I don't want to make them all put a new alias in their .login files. If anyone could help me on this one, it would be greatly appreciated. One thing, however: before you mail me any suggestions try them to make SURE they work. Thanks Ryan McGuire