do you like?
Rich Salz
rsalz at bbn.com
Sun Feb 21 07:05:56 AEST 1988
In article <906 at PT.CS.CMU.EDU> edw at IUS1.CS.CMU.EDU (Eddie Wyatt) asks for
feedback on:
#define IMPORT(from) extern
#define EXPORT(to)
with this sample usage;
IMPORT (geometry.c) TOKEN vw_trans_at();
EXPORT (tokenf.c main.c) void add_to_frametable();
Cute, but I don't like them because they violate the "write once" rule.
If you move a routine, you have to remember to change the header file
where the #define's appear.
It's much better to use information abstractors on the primary source to
get the data you seek. In less jargon, use ctags or something similar;
it was published in comp.sources.unix some while ago, and can be freely
redistributed.
--
For comp.sources.unix stuff, mail to sources at uunet.uu.net.
More information about the Comp.lang.c
mailing list