I am trying to force gnu - cpp to keep special comments like /*+ ... / because I need them for optimiser hints. It worked well with cpp of xlc (AIX) but now I get an addtional space between slash and plus (/) ?
e.g.:
$ cat cpp-test.sql
#define _STAR *
#define OPT_HINT(x) /_STAR+ x _STAR/
select OPT_HINT(INDEX(TABLE table_pk)) * from table
$ /usr/bin/cpp -E < cpp-test.sql
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "<stdin>"
select / *+ INDEX(TABLE table_pk) */ * from table
$
I would desire to get "select /*+ INDEX(TABLE table_pk) */ * from table".
Any suggestions ?
Best regards
Dirk