A
Alexander Gorshenev
I am looking for an elegant solution for the following problem:
I have two projects for which I have to create a kind of bridge
or translator between. For each of the projects there exist a set of headers
included by practicaly all of the member .c files.
For my bridge I would be using all those "main" headers from
both of the projects included together.
But unfortunately, due to historical reasons, those headers
conflict in many points. The conflicts are as:
project A: enum {Monday, Friday, Sunday};
project B: enum {Friday, Sunday, Sausidge, HotDog };
I have no rights to modify the headers because those
constitute the public interfaces.
And it is required for me to make minimal changes to existing code.
So what would smart guys advise?
I have two projects for which I have to create a kind of bridge
or translator between. For each of the projects there exist a set of headers
included by practicaly all of the member .c files.
For my bridge I would be using all those "main" headers from
both of the projects included together.
But unfortunately, due to historical reasons, those headers
conflict in many points. The conflicts are as:
project A: enum {Monday, Friday, Sunday};
project B: enum {Friday, Sunday, Sausidge, HotDog };
I have no rights to modify the headers because those
constitute the public interfaces.
And it is required for me to make minimal changes to existing code.
So what would smart guys advise?