include files -- help needed
Brad Willcott
bxw at ccadfa.adfa.oz.au
Sun Jun 9 00:08:27 AEST 1991
Your problem seems to me to be simple of solution. That is unless I misread
your article. Why don't you use preprocessor defines in your source files,
and test for them in your include files. Here is an example:
---------- source.c ---------
#define BIT_to_DBMS
#include <header.h>
...
-----------------------------
---------- major.c ----------
#define SYSTEM_ACCESS
#include <header.h>
...
-----------------------------
--------- header.h ----------
#ifdef BIT_to_DBMS
...
#endif /* BIT_to_DBMS */
#ifdef SYSTEM_ACCESS
...
#endif /* SYSTEM_ACCESS */
#ifdef DBMS_to_BIT
...
#endif /* DBMS_to_BIT */
-----------------------------
If this is NOT a solution to your problem, then I DON'T understand it.
--
Brad Willcott, ACSnet: bxw at ccadfa.cc.adfa.oz
Computing Services, Internet: bxw at ccadfa.cc.adfa.oz.au
Australian Defence Force Academy, UUCP:!uunet!munnari.oz.au!ccadfa.oz!bxw
Northcott Dr. Campbell ACT Australia 2600 +61 6 268 8584 +61 6 268 8150 (Fax)
More information about the Comp.lang.c
mailing list