Path: utzoo!utgpu!water!watmath!clyde!rutgers!ucsd!ames!amdahl!dlb!megatest!djones From: djones@megatest.UUCP (Dave Jones) Newsgroups: comp.lang.c Subject: Re: do you like? Message-ID: <277@goofy.megatest.UUCP> Date: 22 Feb 88 01:26:09 GMT References: <906@PT.CS.CMU.EDU> Organization: Megatest Corporation, San Jose, Ca Lines: 66 in article <906@PT.CS.CMU.EDU>, edw@IUS1.CS.CMU.EDU (Eddie Wyatt) says: > > > I'm soliticing comments on two new macro I added to my repetoire of > useful things. > > > #define IMPORT(from) extern > #define EXPORT(to) > > > example of usage: > > IMPORT (geometry.c) TOKEN vw_trans_at(); > EXPORT (tokenf.c main.c) void add_to_frametable(); > -- > > Eddie Wyatt e-mail: edw@ius1.cs.cmu.edu Did you say what you meant to say? I think not. If so I don't understand. So I don't know if the following comment is applicatble or not. But here goes, anyway: Macros constitute a flawed but useful mechanism for abstraction. Use them for that purpose. Macros which effectively make changes to C syntax are a pain in the butt. I too find many deficits in C syntax. But trying to correct them with SLM's (silly little macros) just forces the code maintainer to grep around in your .h files trying to figure out what you REALY were saying. I a m p u t t i n g t h i s h e r e f o r i n e w s , to make my reply as long as the original. Phfft!