public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc/traditionnal-cpp/esqlc/types.h
@ 2000-01-18  9:26 Biondi Philippe
  2000-04-01  0:00 ` gcc/traditionnal-cpp/esqlc/types.h Biondi Philippe
  0 siblings, 1 reply; 2+ messages in thread
From: Biondi Philippe @ 2000-01-18  9:26 UTC (permalink / raw)
  To: gcc-help

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)
-<fill this one...>

thanks in advance,
best regards, Phil.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* gcc/traditionnal-cpp/esqlc/types.h
  2000-01-18  9:26 gcc/traditionnal-cpp/esqlc/types.h Biondi Philippe
@ 2000-04-01  0:00 ` Biondi Philippe
  0 siblings, 0 replies; 2+ messages in thread
From: Biondi Philippe @ 2000-04-01  0:00 UTC (permalink / raw)
  To: gcc-help

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)
-<fill this one...>

thanks in advance,
best regards, Phil.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-04-01  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-18  9:26 gcc/traditionnal-cpp/esqlc/types.h Biondi Philippe
2000-04-01  0:00 ` gcc/traditionnal-cpp/esqlc/types.h Biondi Philippe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).