From mboxrd@z Thu Jan 1 00:00:00 1970 From: Biondi Philippe To: gcc-help@gcc.gnu.org Subject: gcc/traditionnal-cpp/esqlc/types.h Date: Tue, 18 Jan 2000 09:26:00 -0000 Message-id: X-SW-Source: 2000-01/msg00138.html Hi all! I'm trying to port a c appli from HP-UX to linux. I have c sources with embedded Ingres SQL inside. The following line (and others) confuse the gcc preprocessor EXEC SQL SELECT a INTO :b FROM c WHERE (a like :e escape '\'); because of the '\'. But it doesn't confuse it anymore with the -traditional-cpp option. The problem is that this option make the cpp not regognize some syntax in sys/types.h file : # define __intN_t(N, MODE) \ typedef int int##N##_t __attribute__ ((__mode__ (MODE))) become (when called) typedef int int##8##_t __attribute__ ((__mode__ ( __QI__))); instead of typedef int int8_t __attribute__ ((__mode__ ( __QI__ ))) ; What is the correct behaviour in face of that ? -Am I wrong with my -traditional-cpp ? -Have I forgotten a flag not to execute this part of sys/types.h -Must I choose between sql and sys/types ? -Must I modify sys/types.h (arrgh) - thanks in advance, best regards, Phil. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Biondi Philippe To: gcc-help@gcc.gnu.org Subject: gcc/traditionnal-cpp/esqlc/types.h Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: X-SW-Source: 2000-q1/msg00138.html Message-ID: <20000401000000.t-DNfg_ShYmSST6bYPU5eb4HXu9Cx5_d92iTkiQEVWw@z> Hi all! I'm trying to port a c appli from HP-UX to linux. I have c sources with embedded Ingres SQL inside. The following line (and others) confuse the gcc preprocessor EXEC SQL SELECT a INTO :b FROM c WHERE (a like :e escape '\'); because of the '\'. But it doesn't confuse it anymore with the -traditional-cpp option. The problem is that this option make the cpp not regognize some syntax in sys/types.h file : # define __intN_t(N, MODE) \ typedef int int##N##_t __attribute__ ((__mode__ (MODE))) become (when called) typedef int int##8##_t __attribute__ ((__mode__ ( __QI__))); instead of typedef int int8_t __attribute__ ((__mode__ ( __QI__ ))) ; What is the correct behaviour in face of that ? -Am I wrong with my -traditional-cpp ? -Have I forgotten a flag not to execute this part of sys/types.h -Must I choose between sql and sys/types ? -Must I modify sys/types.h (arrgh) - thanks in advance, best regards, Phil.