This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

HETP produces #define with invalid characters in identifier

HETP doesn't strip the pathname out from the command line when generating the #include ...

This produces a header file with a #define containing an identifier with invalid characters (from the path name '..' and '\')

For example running:

c:\ti\NHETAS~1\v1.4\bin\hetp.exe -v2 -n1 -hc32 ..\het_pgm.het

Produces the following lines (invalid) in the generated het_pgm.h file:

     #ifndef  __..\het_pgm_h

     #define __..\het_pgm_h

Build produces this warning:

"..\het_pgm.h", line 3: warning: extra text after expected end of preprocessing directive

BTW the ..\ in front of the file name is needed when building the het program through CCS,

since the build directory is 'Debug' for example, and all the sources are a level above this.