Zurück zu Willert.de

multiple includes

Is a wide field

multiple includes

Postby harq » August 11th, 2008, 9:25 am

I want to reverse engineer a file with multiple includes [it includes the same header file more than once] and I want to preserve them.

For examlple, if I have #include "head.h" more than once in a source file, it leaves me only one #include "head.h".

Can I set Rhapsody to do this?
harq
 
Posts: 5
Joined: August 11th, 2008, 9:18 am

Postby Farquad » August 11th, 2008, 1:50 pm

Do you really want to get Rhapsody to 'look after' and forward generate this code?

If not then just reverse engineer it as 'external'.
Farquad
 
Posts: 407
Joined: September 13th, 2007, 9:34 pm
Location: London

Postby harq » August 11th, 2008, 3:50 pm

I also want to get Rhapsody generate that code.
harq
 
Posts: 5
Joined: August 11th, 2008, 9:18 am

Postby Farquad » August 11th, 2008, 8:54 pm

OK Rhapsody's very flexible but why is it important to preserve duplicate #includes?

I can get Rhapsody to generate the code but I can't yet find a way of getting it preserve the duplication during rev eng.

I don't understand why it might be necessary.
Farquad
 
Posts: 407
Joined: September 13th, 2007, 9:34 pm
Location: London

Postby harq » August 14th, 2008, 12:30 pm

I have a sequence like this

#define D 1

#include "header.h"

#undef D

header.h contains an #ifdef D.

So I need to preserve multiple includes.
harq
 
Posts: 5
Joined: August 11th, 2008, 9:18 am


Return to ReverseEngineering

Who is online

Users browsing this forum: No registered users and 2 guests

cron