AnsweredAssumed Answered

Include head file mistake??

Question asked by Peter Yu on Nov 10, 2016
Latest reply on Nov 10, 2016 by Alice_Yang

Hi, 

I'm using S12XEP100 with codewarrior IDE v5.9.0.

 

In general, we set classes, functions and contants.... to a special color in IDE preferences. 

My question is: 

I define a const. in system.c, but the color of const. stays in black after I compile the project.

does this issue cause by include??

by the way, can I put all include head file (#include xxx.h ) in same head file(for example CONFIG.h )

and then put '#include CONFIG.h' in every other head file??

 

in system.c:

#include system.h

#define HIGH_LEVEL 100

...

...

in system.h:

#ifndef __SYSTEM_H
#define __SYSTEM_H
#include <MC9S12XEP100.h>
#include <hidef.h>
#include "PE_Types.h"
#include "CONFIG.h"

...

...

Outcomes